Create Ticket Export

POST {{baseUrl}}/ticket-exports

Create a new export job to download tickets. Use the exportId provided in a successful response to begin polling for the export status.

A single user is allowed to have 3 running exports at a given time. The API returns 409 error if a new export request is sent when there are already 3 running exports. You should wait for one of them to finish before creating a new export.

Request Body

{"fileType"=>"json", "filename"=>"<string>", "delimiter"=>";", "decimalSeparator"=>",", "sourceIds"=>["<string>", "<string>"], "ticketStatusIds"=>["<integer>", "<integer>"], "priorityIds"=>["<integer>", "<integer>"], "ownerIds"=>["<string>", "<string>"], "roleIds"=>["<string>", "<string>"], "ticketGroupIds"=>["<string>", "<string>"], "createdAtDates"=>{"startDate"=>"1970-01-01T01:00:00Z", "endDate"=>"2100-01-01T01:00:00Z"}, "updatedAtDates"=>{"startDate"=>"1970-01-01T01:00:00Z", "endDate"=>"2100-01-01T01:00:00Z"}, "timezone"=>"UTC"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;meta&quot;:{&quot;httpStatus&quot;:&quot;\u003cstring\u003e&quot;,&quot;requestId&quot;:&quot;\u003cstring\u003e&quot;,&quot;notice&quot;:&quot;\u003cstring\u003e&quot;},&quot;result&quot;:{&quot;exportId&quot;:&quot;\u003cstring\u003e&quot;}}