---
title: "Attach files to a candidate."
method: POST
path: "/candidates/{id}/attachments"
tags: ["candidates"]
deprecated: true
---

# Attach files to a candidate.

`POST /candidates/{id}/attachments`

> **Deprecated.**

Attach files to a candidate.

## Response `201`

Candidate's attachment

- Attachment
  - `id` string, required
  - `name` string
  - `type` string
  - `contentType` string
  - `actions` object, required
    - `download` Action, required
      - `url` string, required
      - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'OPTIONS' | 'DELETE' | 'HEAD' | 'CONNECT', required

## Other responses

- `400` — with codes: * **FILE_ALREADY_EXIST** when file aleady exists, * **INVALID_FILE** when file extension not allowed, corrupted file or wrong file type.
- `401` — Candidate access denied
- `422` — with code **ATTACHMENT_LIMIT_EXCEEDED** when no more files can be added to candidate.

---

[API](https://skmtc.net/smartrecruiters/apis/apply-api.md) · [All operations](https://skmtc.net/smartrecruiters/apis/apply-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smartrecruiters/apply-api/versions/449bdc2516c9/schema)
