Upload contact document
curl --request POST \
--url https://my.jobin.cloud/api/openapi/v1/contacts/{contactId}/documents \
--header 'Content-Type: multipart/form-data' \
--header 'x-api-key: <api-key>' \
--form file=@example-file \
--form 'type=<string>'const form = new FormData();
form.append('file', '<string>');
form.append('type', '<string>');
const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
options.body = form;
fetch('https://my.jobin.cloud/api/openapi/v1/contacts/{contactId}/documents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.jobin.cloud/api/openapi/v1/contacts/{contactId}/documents"
files = { "file": ("example-file", open("example-file", "rb")) }
payload = { "type": "<string>" }
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, data=payload, files=files, headers=headers)
print(response.text)$headers=@{}
$headers.Add("x-api-key", "<api-key>")
$headers.Add("Content-Type", "multipart/form-data")
$response = Invoke-WebRequest -Uri 'https://my.jobin.cloud/api/openapi/v1/contacts/{contactId}/documents' -Method POST -Headers $headers -ContentType 'multipart/form-data' -Body '-----011000010111000001101001
Content-Disposition: form-data; name="file"; filename="example-file"
Content-Type: application/octet-stream
<string>
-----011000010111000001101001
Content-Disposition: form-data; name="type"
<string>
-----011000010111000001101001--'{
"message": "<string>"
}{
"code": "UNHANDLED_EXCEPTION",
"error": "Unexpected error"
}{
"code": "UNHANDLED_EXCEPTION",
"error": "Unexpected error"
}{
"code": "UNHANDLED_EXCEPTION",
"error": "Unexpected error"
}{
"statusCode": 429,
"error": "Too Many Requests",
"message": "<string>",
"retryAfterSeconds": 123
}{
"code": "UNHANDLED_EXCEPTION",
"error": "Unexpected error"
}{
"code": "UNHANDLED_EXCEPTION",
"error": "Unexpected error"
}Contacts
Upload contact document
Upload a CV or attachment for an existing Jobin contact.
POST
/
contacts
/
{contactId}
/
documents
Upload contact document
curl --request POST \
--url https://my.jobin.cloud/api/openapi/v1/contacts/{contactId}/documents \
--header 'Content-Type: multipart/form-data' \
--header 'x-api-key: <api-key>' \
--form file=@example-file \
--form 'type=<string>'const form = new FormData();
form.append('file', '<string>');
form.append('type', '<string>');
const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
options.body = form;
fetch('https://my.jobin.cloud/api/openapi/v1/contacts/{contactId}/documents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.jobin.cloud/api/openapi/v1/contacts/{contactId}/documents"
files = { "file": ("example-file", open("example-file", "rb")) }
payload = { "type": "<string>" }
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, data=payload, files=files, headers=headers)
print(response.text)$headers=@{}
$headers.Add("x-api-key", "<api-key>")
$headers.Add("Content-Type", "multipart/form-data")
$response = Invoke-WebRequest -Uri 'https://my.jobin.cloud/api/openapi/v1/contacts/{contactId}/documents' -Method POST -Headers $headers -ContentType 'multipart/form-data' -Body '-----011000010111000001101001
Content-Disposition: form-data; name="file"; filename="example-file"
Content-Type: application/octet-stream
<string>
-----011000010111000001101001
Content-Disposition: form-data; name="type"
<string>
-----011000010111000001101001--'{
"message": "<string>"
}{
"code": "UNHANDLED_EXCEPTION",
"error": "Unexpected error"
}{
"code": "UNHANDLED_EXCEPTION",
"error": "Unexpected error"
}{
"code": "UNHANDLED_EXCEPTION",
"error": "Unexpected error"
}{
"statusCode": 429,
"error": "Too Many Requests",
"message": "<string>",
"retryAfterSeconds": 123
}{
"code": "UNHANDLED_EXCEPTION",
"error": "Unexpected error"
}{
"code": "UNHANDLED_EXCEPTION",
"error": "Unexpected error"
}Send the request as
multipart/form-data with:
file: the binary uploadtype: a label such ascv,resume, orportfolio
cv or resume to replace the contact’s primary CV. Other types add a supporting attachment.
Rate limit: 30 requests/minute per endpoint and workgroup. Details.Authorizations
Body
multipart/form-data
