attachments create

POST {{baseUrl}}/attachments

Creates a TicketingAttachment 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"=>"19202938", "datatype"=>"number"}, {"name"=>"file_name", "value"=>"Screenshot.png", "datatype"=>"string"}, {"name"=>"ticket", "value"=>"0958cbc6-6040-430a-848e-aafacbadf4ae", "datatype"=>"string"}, {"name"=>"file_url", "value"=>"http://alturl.com/p749b", "datatype"=>"string"}, {"name"=>"content_type", "value"=>"jpeg", "datatype"=>"string"}, {"name"=>"uploaded_by", "value"=>"28b54125-287f-494d-965e-3c5b330c9a68", "datatype"=>"string"}, {"name"=>"remote_created_at", "value"=>"1990-11-10T00:00:00Z", "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":"Lorem"}},{"detail":"custom_fields is a required field on model.","problem_type":"MISSING_REQUIRED_FIELD","title":"Missing Required Field","source":{"pointer":"non"}}],"model":{"id":"17a54124-287f-494d-965e-3c5b330c9a68","remote_id":"19202938","file_name":"Screenshot.png","ticket":"0958cbc6-6040-430a-848e-aafacbadf4ae","file_url":"http://alturl.com/p749b","content_type":"jpeg","uploaded_by":"28b54125-287f-494d-965e-3c5b330c9a68","remote_created_at":"1990-11-10T00:00:00Z"},"warnings":[{"detail":"An unrecognized field, age, was passed in with request data.","problem_type":"UNRECOGNIZED_FIELD","title":"Unrecognized Field","source":{"pointer":"laborum fugiat"}},{"detail":"An unrecognized field, age, was passed in with request data.","problem_type":"UNRECOGNIZED_FIELD","title":"Unrecognized Field","source":{"pointer":"laboris ipsum Duis"}}],"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/"}}]}