Drive > Files > File/Directory > Upload > Session
Cancel session
Changed onCancel an upload by its token. If you want to stop the upload and close the session to explicitly erase the file/upload. <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>
delete/2/drive/{drive_id}/upload/session/{session_token}
Request
- Base URLhttps://api.infomaniak.com
- URLhttps://api.infomaniak.com/2/drive/{drive_id}/upload/session/{session_token}
- AuthHTTP bearer
Path parameters
drive_idinteger required
Drive identifier
session_tokeninteger required
Session token uuid
Response
OK
Example response
{
"result": "success"
}Changes
- warning
added the new
forbidden_errorenum value to the//response property for the response status - warning
added the new
invalid_upload_token_errorenum value to the//response property for the response status - warning
added the new
upload_errorenum value to the//response property for the response status
- warning