Skip to main content
POST
Assign temporary attachments to records

Authorizations

x-api-key
string
header
required

API key for authentication. Get your API key from Settings → API Keys in your Spott dashboard.

Body

application/json
attachments
object[]
required

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.

candidateIds
string[]

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.

Maximum array length: 100
Minimum string length: 1
companyIds
string[]

IDs 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.

Maximum array length: 100
Minimum string length: 1
vacancyIds
string[]

IDs 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.

Maximum array length: 100
Minimum string length: 1
candidateId
string
deprecated

[DEPRECATED] Use candidateIds instead. ID of a single candidate to link the attachments to; merged into candidateIds.

Minimum string length: 1
Example:

"550e8400-e29b-41d4-a716-446655440000"

companyId
string
deprecated

[DEPRECATED] Use companyIds instead. ID of a single company to link the attachments to; merged into companyIds.

Minimum string length: 1
Example:

"550e8400-e29b-41d4-a716-446655440001"

vacancyId
string
deprecated

[DEPRECATED] Use vacancyIds instead. ID of a single vacancy/job to link the attachments to; merged into vacancyIds.

Minimum string length: 1
Example:

"550e8400-e29b-41d4-a716-446655440002"

Response

Attachments assigned successfully