Skip to main content
POST
/
attachments
/
temporary
/
assign
Assign temporary attachments to records
curl --request POST \
  --url https://api.gospott.com/attachments/temporary/assign \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "attachments": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440003",
      "type": "cv",
      "name": "John_Doe_CV_2026.pdf"
    }
  ],
  "candidateId": "550e8400-e29b-41d4-a716-446655440000",
  "companyId": "550e8400-e29b-41d4-a716-446655440001",
  "vacancyId": "550e8400-e29b-41d4-a716-446655440002"
}
'

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.

candidateId
string

ID of the candidate to link the attachments to. At least one of candidateId, companyId, or vacancyId must be provided.

Example:

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

companyId
string

ID of the company to link the attachments to. At least one of candidateId, companyId, or vacancyId must be provided.

Example:

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

vacancyId
string

ID of the vacancy/job to link the attachments to. At least one of candidateId, companyId, or vacancyId must be provided.

Example:

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

Response

Attachments assigned successfully