Arguments
addTicketPayloadInput
AddTicketPayloadInputDetails required to create a ticket.
Response
_custom_json
JSONCustom json relevant to the ticket.
_id
StringUnique identifier for the ticket.
assigned_to
JSONDetails of support staff to whom ticket is assigned.
category
TicketCategoryCategory assigned to the ticket.
content
TicketContentContent for the ticket.
context
TicketContextDetails of company and application related to the ticket.
created_at
StringTime when the ticket was created.
created_by
JSONUser details of ticket creator.
created_on
CreatedOnTime of creation of the history event.
integration
JSONIntegration type and its details of the ticket.
is_feedback_pending
BooleanIf feedback submission is pending for the ticket.
priority
PriorityDenotes the priority of ticket.
response_id
StringDetails of company and application related to the ticket.
source
TicketSourceEnumDenotes if the ticket was created at company or application level.
status
StatusDenotes in what state is the ticket.
sub_category
StringSub-category assigned to the ticket.
tags
[String]Tags relevant to ticket.
updated_at
StringTime when the ticket was last updated.
Mutation
1mutation createTicket($addTicketPayloadInput: AddTicketPayloadInput) {2 createTicket(addTicketPayloadInput: $addTicketPayloadInput) {3 _custom_json4 _id5 assigned_to6 category {7 display8 group_id9 key10 }11 content {12 description13 title14 }15 context {16 application_id17 company_id18 }19 created_at20 created_by21 created_on {22 user_agent23 }24 integration25 is_feedback_pending26 priority {27 color28 display29 key30 }31 response_id32 source33 status {34 color35 display36 key37 }38 sub_category39 tags40 updated_at41 }42}
Try it
Input Variables
1{2 "addTicketPayloadInput": {3 "_custom_json": {},4 "category": "category",5 "content": {6 "attachments": [7 {8 "display": "display",9 "type": "image",10 "value": "value"11 }12 ],13 "description": "A description",14 "title": "title"15 },16 "created_by": {},17 "priority": "low",18 "status": "status",19 "subscribers": [20 "subscribers"21 ]22 }23}
Response
1{2 "createTicket": {3 "_custom_json": {},4 "_id": "_id",5 "assigned_to": {},6 "category": {7 "display": "display",8 "group_id": 30.7,9 "key": "key"10 },11 "content": {12 "description": "A description",13 "title": "title"14 },15 "context": {16 "application_id": "application_id",17 "company_id": "company_id"18 },19 "created_at": "created_at",20 "created_by": {},21 "created_on": {22 "user_agent": "user_agent"23 },24 "integration": {},25 "is_feedback_pending": true,26 "priority": {27 "color": "#e10098",28 "display": "display",29 "key": "low"30 },31 "response_id": "response_id",32 "source": "platform_panel",33 "status": {34 "color": "#e10098",35 "display": "display",36 "key": "key"37 },38 "sub_category": "sub_category",39 "tags": [40 "tags"41 ],42 "updated_at": "updated_at"43 }44}
Was this section helpful?