# attachCandidateDocument (/api/reference/mutations/attach-candidate-document)

Attach an uploaded file to a candidate. Kith ATS reads it with the model, keeps a short summary, and fills in what it learns on the candidate: their title, company, location and years when read, their skills, certifications and languages added to their tags, and the file as their CV when it is one and they have none. The upload is prepared first (its key must have been issued to this workspace). An upload's key is attached once: a repeat naming the same key for the same candidate answers the document the first call made, with no fields changed, and reads nothing again; the key on another candidate's document is `UPLOAD_IN_USE`. The model's reading is paid for whatever becomes of the request.

```graphql
attachCandidateDocument(
  input: AttachCandidateDocumentInput!
): AttachCandidateDocumentPayload!
```

### Arguments [#arguments]

#### [`attachCandidateDocument.input`](#input) · [`AttachCandidateDocumentInput!`](/api/reference/inputs/attach-candidate-document-input) `non-null` `input` [#input]
The candidate and the file.

### Type [#type]

#### [`AttachCandidateDocumentPayload`](/api/reference/objects/attach-candidate-document-payload) `object` [#attachcandidatedocumentpayload-object]
The attached document.