Upload a single file to an existing candidate.
Uploaded files are available on the candidate's Application tab.
Request
POST https://api.comeet.co/candidates/{uid}/files
Request path parameters:
Name | Type | Optional | Description |
---|---|---|---|
uid | string | Required | UID of the candidate |
Request body parameters:
Name | Type | Optional | Description |
---|---|---|---|
name | string | Required | File name, for example: home-assignment-task.pdf |
file | string | Required | The content of the file encoded as a Base64 string |
Restrictions on candidate filesThe request will fail if a file doesn't meet these requirements:
- Maximum size of 6MB
- Image file types allowed: .jpeg, .jpg, .tiff, .tif, .png, .gif, .bmp, .jfif, .ico
- Other file types allowed: .xlsx, .zip, .pptx, .msg, .rar, .xls, .csv, .gsheet, .xml, .7z, .txt, .gz, .gdoc, .ppsx, .ppt, .ics, .html, .htm, .eml, .dwg, .gl, .cs, .css, .py, .java, .json, .mp3, .mp4, .psd, .odt, .pem, .cpp, .swf, .apk, .sql, .mov, .dash, .p7s, .dat, .ipynb, .pdf, .doc, .docx, .rtf, .log, .pages
Note: The list of allowed file types can be customized for Recruit accounts on the Enterprise plan.
{
"name": "home-assignment-task.docx",
"file": "BASE64"
}
Response
[
{
"url": "https://app.comeet.co/api/v1/download/...",
"name": "home-assignment-task.docx"
}
]
{
"status":409,
"error":"candidate_post_conflict",
"message":"Candidate with provided partner_candidate_id already exists in position with status in progress",
"candidate_uid":5555
}