Assign temporary attachments to records
Step 2 of the two-step upload flow: assigns temporary attachments previously created via POST /attachments/temporary to one or more records (candidate, company, or vacancy), making them permanent. The attachment’s type is intended to be set here — each attachment specifies a type, either a predefined type ({ name }) or a custom, tenant-defined type ({ id }), and can optionally be renamed. At least one of candidateId, companyId, or vacancyId must be provided. The type must be allowed for all records the attachment is linked to: the predefined CV type can only be assigned to attachments linked to a candidate, and custom types define which record types they support.
Authorizations
API key for authentication. Get your API key from Settings → API Keys in your Spott dashboard.
Body
List of temporary attachments to assign. Each attachment must include the ID returned from the upload endpoint, the desired attachment type, and optionally a new name for the file.
IDs of the candidates to link the attachments to. Fully replaces the existing candidate links. At least one of candidateIds, companyIds, or vacancyIds must be provided.
1001IDs of the companies to link the attachments to. Fully replaces the existing company links. At least one of candidateIds, companyIds, or vacancyIds must be provided.
1001IDs of the vacancies/jobs to link the attachments to. Fully replaces the existing vacancy links. At least one of candidateIds, companyIds, or vacancyIds must be provided.
1001[DEPRECATED] Use candidateIds instead. ID of a single candidate to link the attachments to; merged into candidateIds.
1"550e8400-e29b-41d4-a716-446655440000"
[DEPRECATED] Use companyIds instead. ID of a single company to link the attachments to; merged into companyIds.
1"550e8400-e29b-41d4-a716-446655440001"
[DEPRECATED] Use vacancyIds instead. ID of a single vacancy/job to link the attachments to; merged into vacancyIds.
1"550e8400-e29b-41d4-a716-446655440002"
Response
Attachments assigned successfully

