4.3.5 Change the file status: `complete`, `cancel`, `reopen` or `restore`
POST/v1/files/:fileId/transition
Requires Files.Cancel for cancel and Files.Update for the other actions.
restore is only allowed for the file owner, a team manager or an org admin.
Use GET /v1/files/{fileId}/action-eligibility to see which actions are currently allowed.
A transition that is not allowed in the file's current state returns 409 with the reason.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 429
- 500
- 503
Status changed
Invalid action
Unauthorized
Forbidden
The file does not exist in the caller's organization
The action is not allowed in the file's current state
Too Many Requests
Internal Server Error
Service Unavailable