delete_pending_dataset_reload_files

DatasetsApi.delete_pending_dataset_reload_files(id, role_id, files_delete_obj, content_type=None, _request_timeout=None, _request_auth=None, _content_type=None, _headers=None, _host_index=0)

Delete pending dataset reload files

Synchronously deletes pending reload files for the dataset. Caller must be owner or editor. Body Files must reference pending files.

Parameters:
  • id (str) – Dataset ID whose pending reload files will be deleted. (required)

  • role_id (str) – Amorphic role ID. Caller must be owner or editor. (required)

  • files_delete_obj (FilesDeleteObj) – (required)

  • content_type (str) – Must be application/json.

  • _request_timeout (int, tuple(int, int), optional) – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • _request_auth (dict, optional) – set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.

  • _content_type (str, Optional) – force content-type for the request.

  • _headers (dict, optional) – set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.

  • _host_index (int, optional) – set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.

Return type:

DataReloadPostResponse

Returns:

Returns the result object.

Request and Response Examples

HTTP: PUT /datasets/{id}/datareloads

Request

Request / response example

{
  "Files": [
    "pending/reload1.csv"
  ]
}

Success (HTTP 200)

Pending reload files deleted.

Request / response example

{
  "Message": "Files deleted successfully for the dataset",
  "DatasetId": "49e02003-289e-41e9-a9f2-28a733349481"
}

Errors

Documented error codes: AUTH-1002, GE-1034.

HTTP 400

Validation/auth failure. Codes include AUTH-1002, GE-1034 (invalid/non-pending files).

Not owner/editor

{
  "Message": "AUTH-1002 - User is not authorized to perform this operation"
}

HTTP 500

Backend/generic failure.