Create Many Tickets
POST {{baseUrl}}/api/v2/tickets/create_many
Accepts an array of up to 100 ticket objects. Note: Every ticket created with this endpoint may be affected by your business rules, which can include sending email notifications to your end users. If you are importing historical tickets or creating more than 1000 tickets, consider using the Ticket Bulk Import endpoint.
This endpoint returns a job_status
JSON object and queues a background job to do the work. Use the Show Job Status endpoint to check for the job's completion.
Allowed For
- Agents
Request Body
{"tickets"=>[{"brand_id"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "collaborators"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "email_cc_ids"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "follower_ids"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "macro_ids"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "raw_subject"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "recipient"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "submitter_id"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "ticket_form_id"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "via"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "via_followup_source_id"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}, {"brand_id"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "collaborators"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "email_cc_ids"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "follower_ids"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "macro_ids"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "raw_subject"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "recipient"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "submitter_id"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "ticket_form_id"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "via"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "via_followup_source_id"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"job_status":{"id":"82de0b044094f0c67893ac9fe64f1a99","message":"Completed at 2018-03-08 10:07:04 +0000","progress":2,"results":[{"action":"update","id":244,"status":"Updated","success":true},{"action":"update","id":245,"status":"Updated","success":true}],"status":"completed","total":2,"url":"https://example.zendesk.com/api/v2/job_statuses/82de0b0467893ac9fe64f1a99.json"}}