Skip to content

Commit 5de6196

Browse files
authored
fix doc for /tickets/enqueue (#234)
1 parent ad58c94 commit 5de6196

File tree

1 file changed

+70
-77
lines changed

1 file changed

+70
-77
lines changed

descriptions/0/api.intercom.io.yaml

Lines changed: 70 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -11504,77 +11504,80 @@ paths:
1150411504
_default_title_: example
1150511505
_default_description_: there is a problem
1150611506
"/tickets/enqueue":
11507-
post:
11508-
summary: Enqueue create ticket
11509-
parameters:
11510-
- name: Intercom-Version
11511-
in: header
11512-
schema:
11513-
"$ref": "#/components/schemas/intercom_version"
11514-
tags:
11515-
- Tickets
11516-
description: 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.
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:
11507+
post:
11508+
summary: Enqueue create ticket
11509+
description: Enqueues ticket creation for asynchronous processing, returning if the job was enqueued successfully to be processed. We attempt to perform a best-effort validation on inputs before tasks are enqueued. If the given parameters are incorrect, we won't enqueue the job.
11510+
operationId: enqueueCreateTicket
11511+
tags:
11512+
- Tickets
11513+
parameters:
11514+
- name: Intercom-Version
11515+
in: header
11516+
schema:
11517+
"$ref": "#/components/schemas/intercom_version"
11518+
requestBody:
11519+
content:
11520+
application/json:
11521+
schema:
11522+
allOf:
11523+
- "$ref": "#/components/schemas/create_ticket_request"
11524+
properties:
11525+
skip_notifications:
11526+
type: boolean
11527+
description: Option to disable notifications when a Ticket is created.
11528+
example: true
11529+
examples:
11530+
successful_response:
11531+
summary: Successful response
11532+
value:
11533+
ticket_type_id: 88
11534+
contacts:
11535+
- id: 6762f2d81bb69f9f2193bc54
11536+
ticket_attributes:
11537+
_default_title_: example
11538+
_default_description_: there is a problem
11539+
responses:
11540+
'200':
11541+
description: Successful response
11542+
content:
11543+
application/json:
1155011544
examples:
11551-
Bad Request:
11545+
Successful response:
11546+
value:
11547+
type: enqueue_status
11548+
status: success
11549+
job_id: 20
11550+
job_url: https://api.intercom.io/jobs/status/20
11551+
schema:
11552+
"$ref": "#/components/schemas/enqueue_status"
11553+
'401':
11554+
description: Unauthorized
11555+
content:
11556+
application/json:
11557+
examples:
11558+
Unauthorized:
1155211559
value:
1155311560
type: error.list
11554-
request_id: c7bf358f-135e-48d7-8286-a4988a8a1456
11561+
request_id: c7bf358f-135e-48d7-8286-a4988a8a1d9b
1155511562
errors:
11556-
- code: parameter_invalid
11557-
message: "Missing required ticket }/attributes"
11563+
- code: unauthorized
11564+
message: Access Token Invalid
1155811565
schema:
1155911566
"$ref": "#/components/schemas/error"
11560-
requestBody:
11567+
'400':
11568+
description: Bad Request
1156111569
content:
1156211570
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
1157111571
examples:
11572-
successful_response:
11573-
summary: Successful response
11572+
Bad Request:
1157411573
value:
11575-
status: success
11576-
job_id: 20
11577-
job_url: https://api.intercom.io/jobs/status/20
11574+
type: error.list
11575+
request_id: c7bf358f-135e-48d7-8286-a4988a8a1456
11576+
errors:
11577+
- code: parameter_invalid
11578+
message: "Missing required ticket attributes"
11579+
schema:
11580+
"$ref": "#/components/schemas/error"
1157811581
"/tickets/{id}":
1157911582
put:
1158011583
summary: Update a ticket
@@ -17242,31 +17245,21 @@ components:
1724217245
- type
1724317246
- errors
1724417247
enqueue_status:
17245-
title: Enqueue Status
17246-
type: enqueue_status
17247-
description: Status of the enqueued job.
17248+
title: Enqueue status
17249+
type: object
17250+
description: Details of the job that was enqueued.
1724817251
properties:
17249-
type:
17250-
type: string
17251-
description: Always enqueue_status
17252-
enum:
17253-
- enqueue_status
17254-
default: enqueue_status
17255-
example: enqueue_status
1725617252
status:
1725717253
type: string
17258-
description: Result of the enqueue
17259-
enum:
17260-
- success
17261-
- failed
17254+
description: Indicates if the job was successfully enqueued. The status can be either 'success' or 'failed'.
1726217255
example: success
1726317256
job_id:
1726417257
type: string
17265-
description: Id of the job that was created. Note this is not the id of the resource being created (i.e. ticket)
17258+
description: Id of the job that was enqueued.
1726617259
example: 20
1726717260
job_url:
1726817261
type: string
17269-
description: Url of the job that was created. This url should be used to fetch the status of the job.
17262+
description: API endpoint URL to check the job status.
1727017263
example: https://api.intercom.io/jobs/status/20
1727117264
external_page:
1727217265
title: External Page

0 commit comments

Comments
 (0)