workspaceRemoveMailMessageLabelWithHttpInfo method

Future<Response> workspaceRemoveMailMessageLabelWithHttpInfo(
  1. String org,
  2. String workspace,
  3. String messageId,
  4. String labelId,
)

Performs an HTTP 'DELETE /v1/organizations/{org}/workspaces/{workspace}/mail/{messageId}/labels/{labelId}' operation and returns the Response. Parameters:

Implementation

Future<Response> workspaceRemoveMailMessageLabelWithHttpInfo(String org, String workspace, String messageId, String labelId,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/organizations/{org}/workspaces/{workspace}/mail/{messageId}/labels/{labelId}'
    .replaceAll('{org}', org)
    .replaceAll('{workspace}', workspace)
    .replaceAll('{messageId}', messageId)
    .replaceAll('{labelId}', labelId);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'DELETE',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}