Drive > Files > File/Directory > Upload > Session

Batch : cancel sessions

Cancel multiple session tokens. If you want to stop the upload and close one or more sessions to explicitly erase file(s)/upload(s). <br/><br/><note> When a session is started, it can be used for a maximum of 4 hours. It will be automatically canceled afterwards. </note> <br/><note> The batch cannot exceed 1,000 sessions. </note>

delete/2/drive/{drive_id}/upload/session/batch

Path parameters

drive_idinteger required

Drive identifier

Query parameters

tokensstring[] required

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.