Close a job
POST/v1/jobs/:id/close
Closes a job. With reject_candidates, also rejects the job's active applications.
Request
Responses
- 200
- 401
- 403
- 404
- 409
- 422
Job closed
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 edit this job, or the API key lacks the jobs:write scope (err_insufficient_scope). With reject_candidates, the API key also needs the applications:reject scope.
Job not found (err_job_not_found).
The job can't be closed in its current status (err_invalid_state_transition).
Validation failed. Error codes:
err_close_reason_not_found— unknown close reasonerr_close_reason_inactive— the close reason is disablederr_reject_candidates_not_enabled— rejecting candidates when closing a job is not enabled for your accounterr_rejection_reason_not_found— unknown rejection reasonerr_rejection_reason_inactive— the rejection reason is disablederr_rejection_reason_system— the rejection reason is reserved for automatic rejectionserr_email_template_not_found— unknown email template, or one the acting user can't useerr_email_template_invalid_category— the template is not a rejection email templateerr_email_template_requires_survey— the template contains a survey linkerr_sender_mailbox_not_connected— the acting user has no mailbox to send fromerr_project_not_found— unknown project, or one the acting user can't add candidates toerr_system_project— the project is a system projecterr_project_archived— the project is archivederr_on_behalf_of_not_allowed— a personal access token passed another user's IDerr_user_not_found—on_behalf_ofis not an active user in the accounterr_on_behalf_of_forbidden— that user is not allowed to perform this action