Close a requisition
POST/v1/requisitions/:id/close
Closes a requisition, optionally with a reason. Closed and archived requisitions can't be closed again.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 422
Requisition closed
The requisition couldn't be closed. Error codes:
err_invalid_state_transition- the requisition is already closed or archivederr_requisition_close_failed- the requisition couldn't be saved; the message gives the reason
Missing or invalid bearer token.
The public API is not enabled for this account (err_feature_not_enabled), the acting user is not allowed to manage this requisition, or the API key lacks the requisitions:close scope (err_insufficient_scope). Also returned when requisitions are not enabled for your account (err_requisition_feature_not_enabled).
Requisition not found (err_requisition_not_found).
Validation failed.