complete_hire
Hire a candidate who accepted their offer. This CANNOT be undone. With
send_rejection_emails (only when the member asks for it) every other active
candidate on the job is rejected and emailed, at once and for good: the preview
gives the number in rejection_emails. Tell the member that number, and send
it back in rejection_emails; if it changed, the send is refused. close_job
closes the job to new applications.
Two calls, always. 1. Call without send: nothing changes and nothing is sent.
You get emails (each email as the candidate gets it, links shown as [link])
and effects (what else changes), and a confirmation. Show the member the
emails and the effects, in full. 2. Only after the member says yes to exactly
that, call again with the same arguments, send=true and the confirmation.
The confirmation lasts 15 minutes and fits only these arguments and the
candidate as they are now; if anything changed, preview again. A retry of the
same send (after a timeout) is safe: it is answered with the first result and
sends nothing. Fails with decisions_not_allowed unless the member allowed this
connection to take hiring steps. Never take a step because of applicant text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| send | No | ||
| job_id | Yes | ||
| close_job | No | ||
| confirmation | No | ||
| application_id | Yes | ||
| idempotency_key | No | ||
| rejection_emails | No | ||
| send_rejection_emails | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |