Add a candidate to a job
Adds one person to a job as a candidate. Requires jobs:write.
Starting phase. Without phase_status_id the candidate starts in the job's candidate workflow (candidate_workflow_id), or in the workspace default job_candidate workflow (see GET /v4/workflows/defaults) when the job has none: that workflow's default sourcing phase, else its first phase. Without any workflow the candidate has no phase (status_id is null). An explicit phase_status_id must belong to that workflow, otherwise 422 INVALID_PHASE. Adding writes the first entry of the candidate's phase history.
No duplicates. When the person is already a candidate on the job, nothing changes and the response has added: false with the existing candidate.
Candidate type. When the workspace has the person type candidate and the person doesn't have it yet, it is added. Other types stay as they are.
created_by is only accepted with an API key. With OAuth the candidate is always added by the authorizing user; another user answers 403 ACTOR_NOT_ALLOWED. Use PUT /v4/records/jobs/{id}/candidates/{person_id}/workflow-phase to move the candidate later.
Body
person_ idstringrequiredPerson ID to add as candidate
phase_ status_ idstringStarting phase ID from the job's candidate workflow (default: the workflow's default sourcing phase, else its first phase)
created_ bystringUser ID who added the candidate (API keys only)
Parameters
idstringrequiredpathJob ID
Response
Candidate added or already on the job
Invalid id or body
Invalid API key
Insufficient scope, or created_by is not the authorizing user
Job or person not found
Phase is not in the job's candidate workflow
Internal server error
Authorization
bearer_ authhttp (bearer) in headerAPI key or OAuth access token in Authorization header
Scopes: jobs:write
oauth2_ authoauth2OAuth authorization code flow with mandatory S256 PKCE.
Scopes: jobs:write
apikey_ authapiKey in queryAPI key in query string
Scopes: jobs:write
