hires_upload_attachment
Upload a file to create an attachment for candidates, applications, comments, job notes, or company records, with strict ownership checks and category-specific rules.
Instructions
Upload a file and create an attachment. Supported categories: voicemail (wav/mp3, max 20 MB, no object_id — returned uuid is usable as attachment_uuid in nurture voicemail steps); candidate (candidate ID); application (application ID); candidate_comment (comment ID); job_note (job-note ID); company_favicon/company_header/company_link_preview (company ID). Object ownership is strictly verified against the authenticated API key's company. Returns {uuid, url, file, relative_time}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | File payload. | |
| category | Yes | Attachment category. Determines allowed extensions and object_id semantics. | |
| object_id | No | Target object ID (candidate/application/comment/job-note/company, per category). Omit for `voicemail`. | |
| company_id | No | Target company ID. Needed for partner API keys managing multiple client companies. Omitted → defaults to the authenticated company. The object_id must belong to this company (strict match). |