Skip to content

Commit a8161c7

Browse files
committed
Update OpenAPI doc for POST /enqueue/tickets
1 parent c6abdf5 commit a8161c7

File tree

1 file changed

+99
-0
lines changed

1 file changed

+99
-0
lines changed

descriptions/0/api.intercom.io.yaml

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11503,6 +11503,78 @@ paths:
1150311503
ticket_attributes:
1150411504
_default_title_: example
1150511505
_default_description_: there is a problem
11506+
"/tickets/enqueue":
11507+
post:
11508+
summary: Enqueues ticket creation and returns the enqueue status. We recommend using this endpoint if you'd like to create tickets without waiting for immediate processing.
11509+
parameters:
11510+
- name: Intercom-Version
11511+
in: header
11512+
schema:
11513+
"$ref": "#/components/schemas/intercom_version"
11514+
tags:
11515+
- Tickets
11516+
description: You can enqueue a job to create a new ticket.
11517+
operationId: enqueueCreateTicket
11518+
responses:
11519+
'200':
11520+
description: Successful response
11521+
content:
11522+
application/json:
11523+
examples:
11524+
Successful response:
11525+
value:
11526+
type: enqueue_status
11527+
status: success
11528+
job_id: 20
11529+
job_url: https://api.intercom.io/jobs/status/20
11530+
schema:
11531+
"$ref": "#/components/schemas/enqueue_status"
11532+
'401':
11533+
description: Unauthorized
11534+
content:
11535+
application/json:
11536+
examples:
11537+
Unauthorized:
11538+
value:
11539+
type: error.list
11540+
request_id: c7bf358f-135e-48d7-8286-a4988a8a1d9b
11541+
errors:
11542+
- code: unauthorized
11543+
message: Access Token Invalid
11544+
schema:
11545+
"$ref": "#/components/schemas/error"
11546+
'400':
11547+
description: Bad Request
11548+
content:
11549+
application/json:
11550+
examples:
11551+
Bad Request:
11552+
value:
11553+
type: error.list
11554+
request_id: c7bf358f-135e-48d7-8286-a4988a8a1456
11555+
errors:
11556+
- code: parameter_invalid
11557+
message: "Missing required ticket }/attributes"
11558+
schema:
11559+
"$ref": "#/components/schemas/error"
11560+
requestBody:
11561+
content:
11562+
application/json:
11563+
schema:
11564+
allOf:
11565+
- "$ref": "#/components/schemas/create_ticket_request"
11566+
properties:
11567+
skip_notifications:
11568+
type: boolean
11569+
description: Option to disable notifications when a Ticket is created.
11570+
example: true
11571+
examples:
11572+
successful_response:
11573+
summary: Successful response
11574+
value:
11575+
status: success
11576+
job_id: 20
11577+
job_url: https://api.intercom.io/jobs/status/20
1150611578
"/tickets/{id}":
1150711579
put:
1150811580
summary: Update a ticket
@@ -17152,6 +17224,33 @@ components:
1715217224
required:
1715317225
- type
1715417226
- errors
17227+
enqueue_status:
17228+
title: Enqueue Status
17229+
type: enqueue_status
17230+
description: Status of the enqueued job.
17231+
properties:
17232+
type:
17233+
type: string
17234+
description: Always enqueue_status
17235+
enum:
17236+
- enqueue_status
17237+
default: enqueue_status
17238+
example: enqueue_status
17239+
status:
17240+
type: string
17241+
description: Result of the enqueue
17242+
enum:
17243+
- success
17244+
- failed
17245+
example: success
17246+
job_id:
17247+
type: string
17248+
description: Id of the job that was created. Note this is not the id of the resource being created (i.e. ticket)
17249+
example: 20
17250+
job_url:
17251+
type: string
17252+
description: Url of the job that was created. This url should be used to fetch the status of the job.
17253+
example: https://api.intercom.io/jobs/status/20
1715517254
external_page:
1715617255
title: External Page
1715717256
type: object

0 commit comments

Comments
 (0)