Drive > Files > Action

Undo action

Cancel an action with a token or cancel actions with tokens. An action token is a token returned with a CancelResource. Used in bulk processes or specific actions like renaming a file.

post/2/drive/{drive_id}/cancel

Path parameters

drive_idinteger required

Drive identifier

Request body

cancel_idstring

The cancel identifier

cancel_idsstring[]

The cancel identifiers

Example request

{
  "cancel_id": "00000000-e89b-12d3-a456-000000000000",
  "cancel_ids": [
    "00000000-e89b-12d3-a456-000000000000"
  ]
}

Response

OK

result'success' | 'error' | 'asynchronous' required

Result of the HTTP request

Example response

{
  "result": "success",
  "data": {
    "id": "96df2a1c-xxxx-441c-ae3a-2191f91fdc7",
    "message": "error_already_exist"
  }
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.