attachments create

POST {{baseUrl}}/attachments

Creates an Attachment object with the given values.

Request Params

KeyDatatypeRequiredDescription
is_debug_modebooleanWhether to include debug fields (such as log file links) in the response.
run_asyncbooleanWhether or not third-party updates should be run asynchronously.

Request Body

[{"name"=>"remote_id", "value"=>"11167", "datatype"=>"number"}, {"name"=>"file_name", "value"=>"Candidate Resume", "datatype"=>"string"}, {"name"=>"file_url", "value"=>"http://alturl.com/p749b", "datatype"=>"string"}, {"name"=>"candidate", "value"=>"2872ba14-4084-492b-be96-e5eee6fc33ef", "datatype"=>"string"}, {"name"=>"attachment_type", "value"=>"OTHER", "datatype"=>"string"}, {"name"=>"integration_params", "value"=>"{\"culpa56\":{}}", "datatype"=>"string"}, {"name"=>"linked_account_params", "value"=>"{\"ut_78\":{}}", "datatype"=>"string"}, {"name"=>"remote_user_id", "value"=>"mollit magna", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
X-Account-Tokenstring(Required) Token identifying the end user.
Content-Typestring
Acceptstring

RESPONSES

status: Created

{"errors":[{"detail":"custom_fields is a required field on model.","problem_type":"MISSING_REQUIRED_FIELD","title":"Missing Required Field","source":{"pointer":"anim dolor"}},{"detail":"custom_fields is a required field on model.","problem_type":"MISSING_REQUIRED_FIELD","title":"Missing Required Field","source":{"pointer":"tempor fugiat esse"}}],"model":{"id":"c640b80b-fac9-409f-aa19-1f9221aec445","remote_id":"11167","file_name":"Candidate Resume","file_url":"http://alturl.com/p749b","candidate":"2872ba14-4084-492b-be96-e5eee6fc33ef","attachment_type":"OTHER"},"warnings":[{"detail":"An unrecognized field, age, was passed in with request data.","problem_type":"UNRECOGNIZED_FIELD","title":"Unrecognized Field","source":{"pointer":"minim sunt"}},{"detail":"An unrecognized field, age, was passed in with request data.","problem_type":"UNRECOGNIZED_FIELD","title":"Unrecognized Field","source":{"pointer":"culpa officia eu ex"}}],"logs":[{"dashboard_view":"https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832","log_id":"99433219-8017-4acd-bb3c-ceb23d663832","log_summary":{"method":"POST","status_code":200,"url":"https://harvest.greenhouse.io/v1/candidates/"}},{"dashboard_view":"https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832","log_id":"99433219-8017-4acd-bb3c-ceb23d663832","log_summary":{"method":"POST","status_code":200,"url":"https://harvest.greenhouse.io/v1/candidates/"}}]}