Create a document

POST/ats/{connection_id}/document

Parameters

fieldsstring array
Fields to return
rawstring
Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
connection_idstring required
ID of the connection

Payload

idstring
created_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
document_urlstring
This link expires after 1 hour.
document_datastring
base64 encoded file contents used for create/update actions. Use this field to send an attachment e.g. a resume, a profile, or other text content
filenamestring
type enum
Valid values:
"RESUME"
"COVER_LETTER"
"OFFER_PACKET"
"OFFER_LETTER"
"TAKE_HOME_TEST"
candidate_idstring
application_idstring
job_idstring
user_idstring
(reference to HrisEmployee)

Returns

idstring
created_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
document_urlstring
This link expires after 1 hour.
document_datastring
base64 encoded file contents used for create/update actions. Use this field to send an attachment e.g. a resume, a profile, or other text content
filenamestring
type enum
Valid values:
"RESUME"
"COVER_LETTER"
"OFFER_PACKET"
"OFFER_LETTER"
"TAKE_HOME_TEST"
candidate_idstring
application_idstring
job_idstring
user_idstring
(reference to HrisEmployee)
const options = {
  method: 'POST',
  url: 'https://api.unified.to/ats/5de520f96e439b002043d8dc/document',
  headers: {
    authorization: 'bearer .....'
  },
  data: undefined,
  params: {
    fields: '',
    raw: '',
  }
};

const results = await axios.request(options);
Are we missing anything? Let us know
Was this page helpful?