Ticket Import

POST {{baseUrl}}/api/v2/imports/tickets?archive_immediately=<boolean>

Allowed For

  • Admins

Request Params

KeyDatatypeRequiredDescription
archive_immediatelystringIf true, any ticket created with a closed status bypasses the normal ticket lifecycle and will be created directly in your ticket archive

Request Body

{"ticket"=>{"assignee_id"=>"<integer>", "comments"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "description"=>"<string>", "requester_id"=>"<integer>", "subject"=>"<string>", "tags"=>["<string>", "<string>"]}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;ticket&quot;:{&quot;assignee_id&quot;:235323,&quot;collaborator_ids&quot;:[35334,234],&quot;created_at&quot;:&quot;2009-07-20T22:55:29Z&quot;,&quot;custom_fields&quot;:[{&quot;id&quot;:27642,&quot;value&quot;:&quot;745&quot;},{&quot;id&quot;:27648,&quot;value&quot;:&quot;yes&quot;}],&quot;custom_status_id&quot;:123,&quot;description&quot;:&quot;The fire is very colorful.&quot;,&quot;due_at&quot;:null,&quot;external_id&quot;:&quot;ahg35h3jh&quot;,&quot;follower_ids&quot;:[35334,234],&quot;group_id&quot;:98738,&quot;has_incidents&quot;:false,&quot;id&quot;:35436,&quot;organization_id&quot;:509974,&quot;priority&quot;:&quot;high&quot;,&quot;problem_id&quot;:9873764,&quot;raw_subject&quot;:&quot;{{dc.printer_on_fire}}&quot;,&quot;recipient&quot;:&quot;support@company.com&quot;,&quot;requester_id&quot;:20978392,&quot;satisfaction_rating&quot;:{&quot;comment&quot;:&quot;Great support!&quot;,&quot;id&quot;:1234,&quot;score&quot;:&quot;good&quot;},&quot;sharing_agreement_ids&quot;:[84432],&quot;status&quot;:&quot;open&quot;,&quot;subject&quot;:&quot;Help, my printer is on fire!&quot;,&quot;submitter_id&quot;:76872,&quot;tags&quot;:[&quot;enterprise&quot;,&quot;other_tag&quot;],&quot;type&quot;:&quot;incident&quot;,&quot;updated_at&quot;:&quot;2011-05-05T10:38:52Z&quot;,&quot;url&quot;:&quot;https://company.zendesk.com/api/v2/tickets/35436.json&quot;,&quot;via&quot;:{&quot;channel&quot;:&quot;web&quot;}}}