mutation

createTicket

Create a new customer ticket for a user query.
Arguments
addTicketPayloadInput
AddTicketPayloadInput
Details required to create a ticket.
Response
_custom_json
JSON
Custom json relevant to the ticket.
Unique identifier for the ticket.
assigned_to
JSON
Details of support staff to whom ticket is assigned.
Category assigned to the ticket.
Content for the ticket.
Details of company and application related to the ticket.
created_at
String
Time when the ticket was created.
created_by
JSON
User details of ticket creator.
created_on
CreatedOn
Time of creation of the history event.
integration
JSON
Integration type and its details of the ticket.
is_feedback_pending
Boolean
If feedback submission is pending for the ticket.
priority
Priority
Denotes the priority of ticket.
response_id
String
Details of company and application related to the ticket.
Denotes if the ticket was created at company or application level.
status
Status
Denotes in what state is the ticket.
sub_category
String
Sub-category assigned to the ticket.
Tags relevant to ticket.
updated_at
String
Time when the ticket was last updated.
Mutation
1mutation createTicket($addTicketPayloadInput: AddTicketPayloadInput) {
2 createTicket(addTicketPayloadInput: $addTicketPayloadInput) {
3 _custom_json
4 _id
5 assigned_to
6 category {
7 display
8 group_id
9 key
10 }
11 content {
12 description
13 title
14 }
15 context {
16 application_id
17 company_id
18 }
19 created_at
20 created_by
21 created_on {
22 user_agent
23 }
24 integration
25 is_feedback_pending
26 priority {
27 color
28 display
29 key
30 }
31 response_id
32 source
33 status {
34 color
35 display
36 key
37 }
38 sub_category
39 tags
40 updated_at
41 }
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}