Skip to content

Commit 9e52ccc

Browse files
authored
Document that ticket comments are not supported on internal ticket types (#671)
* Document that ticket comments are not supported on internal ticket types POST /tickets/{id}/reply does not support message_type: comment on tracker tickets, or on back-office tickets that are not shared with the customer. Both are internal ticket types with no customer to send a comment to, but the reference did not say so. The same wording is added to every version that documents an admin reply: Preview (descriptions/0) and 2.10 through 2.16. Earlier versions define no admin reply schema. * Document the 400 returned when a ticket reply is rejected The reply endpoint's 400 response was described as "User reply" and carried a single example, so it covered only a user reply on a back-office ticket. It now also describes the rejections for an admin comment on a back-office ticket that is not shared with the customer, and on a tracker ticket. Version 2.10 declared no 400 on this operation at all, so the response is added there.
1 parent 9c51ac7 commit 9e52ccc

8 files changed

Lines changed: 165 additions & 7 deletions

File tree

‎descriptions/0/api.intercom.io.yaml‎

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23512,7 +23512,7 @@ paths:
2351223512
- Tickets
2351323513
responses:
2351423514
'400':
23515-
description: User reply
23515+
description: Bad Request
2351623516
content:
2351723517
application/json:
2351823518
examples:
@@ -23523,6 +23523,21 @@ paths:
2352323523
errors:
2352423524
- code: parameter_mismatch
2352523525
message: User replies are not allowed on Backoffice tickets
23526+
Admin comment on a back-office ticket:
23527+
value:
23528+
type: error.list
23529+
request_id: 7a1c9f02-5d3e-4b8a-9c21-6f0d84e5b713
23530+
errors:
23531+
- code: parameter_mismatch
23532+
message: Comments are not allowed on Backoffice tickets not
23533+
shared with user
23534+
Admin comment on a tracker ticket:
23535+
value:
23536+
type: error.list
23537+
request_id: c4e2a980-31bf-4d76-8a05-2e9cb17f4d6a
23538+
errors:
23539+
- code: parameter_mismatch
23540+
message: Comments are not allowed on Tracker tickets
2352623541
schema:
2352723542
"$ref": "#/components/schemas/error"
2352823543
'200':
@@ -28207,6 +28222,9 @@ components:
2820728222
properties:
2820828223
message_type:
2820928224
type: string
28225+
description: The type of reply. Tracker tickets and back-office tickets
28226+
that are not shared with the customer do not support `comment`; use
28227+
`note` instead.
2821028228
enum:
2821128229
- comment
2821228230
- note

‎descriptions/2.10/api.intercom.io.yaml‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9445,6 +9445,35 @@ paths:
94459445
tags:
94469446
- Tickets
94479447
responses:
9448+
'400':
9449+
description: Bad Request
9450+
content:
9451+
application/json:
9452+
examples:
9453+
User reply:
9454+
value:
9455+
type: error.list
9456+
request_id: b8b42c55-347c-4704-b4c1-92220c01f4ac
9457+
errors:
9458+
- code: parameter_mismatch
9459+
message: User replies are not allowed on Backoffice tickets
9460+
Admin comment on a back-office ticket:
9461+
value:
9462+
type: error.list
9463+
request_id: 7a1c9f02-5d3e-4b8a-9c21-6f0d84e5b713
9464+
errors:
9465+
- code: parameter_mismatch
9466+
message: Comments are not allowed on Backoffice tickets not
9467+
shared with user
9468+
Admin comment on a tracker ticket:
9469+
value:
9470+
type: error.list
9471+
request_id: c4e2a980-31bf-4d76-8a05-2e9cb17f4d6a
9472+
errors:
9473+
- code: parameter_mismatch
9474+
message: Comments are not allowed on Tracker tickets
9475+
schema:
9476+
"$ref": "#/components/schemas/error"
94489477
'200':
94499478
description: Admin quick_reply reply
94509479
content:
@@ -11248,6 +11277,9 @@ components:
1124811277
properties:
1124911278
message_type:
1125011279
type: string
11280+
description: The type of reply. Tracker tickets and back-office tickets
11281+
that are not shared with the customer do not support `comment`; use
11282+
`note` instead.
1125111283
enum:
1125211284
- comment
1125311285
- note

‎descriptions/2.11/api.intercom.io.yaml‎

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9534,7 +9534,7 @@ paths:
95349534
- Tickets
95359535
responses:
95369536
'400':
9537-
description: User reply
9537+
description: Bad Request
95389538
content:
95399539
application/json:
95409540
examples:
@@ -9545,6 +9545,21 @@ paths:
95459545
errors:
95469546
- code: parameter_mismatch
95479547
message: User replies are not allowed on Backoffice tickets
9548+
Admin comment on a back-office ticket:
9549+
value:
9550+
type: error.list
9551+
request_id: 7a1c9f02-5d3e-4b8a-9c21-6f0d84e5b713
9552+
errors:
9553+
- code: parameter_mismatch
9554+
message: Comments are not allowed on Backoffice tickets not
9555+
shared with user
9556+
Admin comment on a tracker ticket:
9557+
value:
9558+
type: error.list
9559+
request_id: c4e2a980-31bf-4d76-8a05-2e9cb17f4d6a
9560+
errors:
9561+
- code: parameter_mismatch
9562+
message: Comments are not allowed on Tracker tickets
95489563
schema:
95499564
"$ref": "#/components/schemas/error"
95509565
'200':
@@ -11364,6 +11379,9 @@ components:
1136411379
properties:
1136511380
message_type:
1136611381
type: string
11382+
description: The type of reply. Tracker tickets and back-office tickets
11383+
that are not shared with the customer do not support `comment`; use
11384+
`note` instead.
1136711385
enum:
1136811386
- comment
1136911387
- note

‎descriptions/2.12/api.intercom.io.yaml‎

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10247,7 +10247,7 @@ paths:
1024710247
- Tickets
1024810248
responses:
1024910249
'400':
10250-
description: User reply
10250+
description: Bad Request
1025110251
content:
1025210252
application/json:
1025310253
examples:
@@ -10258,6 +10258,21 @@ paths:
1025810258
errors:
1025910259
- code: parameter_mismatch
1026010260
message: User replies are not allowed on Backoffice tickets
10261+
Admin comment on a back-office ticket:
10262+
value:
10263+
type: error.list
10264+
request_id: 7a1c9f02-5d3e-4b8a-9c21-6f0d84e5b713
10265+
errors:
10266+
- code: parameter_mismatch
10267+
message: Comments are not allowed on Backoffice tickets not
10268+
shared with user
10269+
Admin comment on a tracker ticket:
10270+
value:
10271+
type: error.list
10272+
request_id: c4e2a980-31bf-4d76-8a05-2e9cb17f4d6a
10273+
errors:
10274+
- code: parameter_mismatch
10275+
message: Comments are not allowed on Tracker tickets
1026110276
schema:
1026210277
"$ref": "#/components/schemas/error"
1026310278
'200':
@@ -12089,6 +12104,9 @@ components:
1208912104
properties:
1209012105
message_type:
1209112106
type: string
12107+
description: The type of reply. Tracker tickets and back-office tickets
12108+
that are not shared with the customer do not support `comment`; use
12109+
`note` instead.
1209212110
enum:
1209312111
- comment
1209412112
- note

‎descriptions/2.13/api.intercom.io.yaml‎

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11475,7 +11475,7 @@ paths:
1147511475
- Tickets
1147611476
responses:
1147711477
'400':
11478-
description: User reply
11478+
description: Bad Request
1147911479
content:
1148011480
application/json:
1148111481
examples:
@@ -11486,6 +11486,21 @@ paths:
1148611486
errors:
1148711487
- code: parameter_mismatch
1148811488
message: User replies are not allowed on Backoffice tickets
11489+
Admin comment on a back-office ticket:
11490+
value:
11491+
type: error.list
11492+
request_id: 7a1c9f02-5d3e-4b8a-9c21-6f0d84e5b713
11493+
errors:
11494+
- code: parameter_mismatch
11495+
message: Comments are not allowed on Backoffice tickets not
11496+
shared with user
11497+
Admin comment on a tracker ticket:
11498+
value:
11499+
type: error.list
11500+
request_id: c4e2a980-31bf-4d76-8a05-2e9cb17f4d6a
11501+
errors:
11502+
- code: parameter_mismatch
11503+
message: Comments are not allowed on Tracker tickets
1148911504
schema:
1149011505
"$ref": "#/components/schemas/error"
1149111506
'200':
@@ -13459,6 +13474,9 @@ components:
1345913474
properties:
1346013475
message_type:
1346113476
type: string
13477+
description: The type of reply. Tracker tickets and back-office tickets
13478+
that are not shared with the customer do not support `comment`; use
13479+
`note` instead.
1346213480
enum:
1346313481
- comment
1346413482
- note

‎descriptions/2.14/api.intercom.io.yaml‎

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12883,7 +12883,7 @@ paths:
1288312883
- Tickets
1288412884
responses:
1288512885
'400':
12886-
description: User reply
12886+
description: Bad Request
1288712887
content:
1288812888
application/json:
1288912889
examples:
@@ -12894,6 +12894,21 @@ paths:
1289412894
errors:
1289512895
- code: parameter_mismatch
1289612896
message: User replies are not allowed on Backoffice tickets
12897+
Admin comment on a back-office ticket:
12898+
value:
12899+
type: error.list
12900+
request_id: 7a1c9f02-5d3e-4b8a-9c21-6f0d84e5b713
12901+
errors:
12902+
- code: parameter_mismatch
12903+
message: Comments are not allowed on Backoffice tickets not
12904+
shared with user
12905+
Admin comment on a tracker ticket:
12906+
value:
12907+
type: error.list
12908+
request_id: c4e2a980-31bf-4d76-8a05-2e9cb17f4d6a
12909+
errors:
12910+
- code: parameter_mismatch
12911+
message: Comments are not allowed on Tracker tickets
1289712912
schema:
1289812913
"$ref": "#/components/schemas/error"
1289912914
'200':
@@ -15076,6 +15091,9 @@ components:
1507615091
properties:
1507715092
message_type:
1507815093
type: string
15094+
description: The type of reply. Tracker tickets and back-office tickets
15095+
that are not shared with the customer do not support `comment`; use
15096+
`note` instead.
1507915097
enum:
1508015098
- comment
1508115099
- note

‎descriptions/2.15/api.intercom.io.yaml‎

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12866,7 +12866,7 @@ paths:
1286612866
- Tickets
1286712867
responses:
1286812868
'400':
12869-
description: User reply
12869+
description: Bad Request
1287012870
content:
1287112871
application/json:
1287212872
examples:
@@ -12877,6 +12877,21 @@ paths:
1287712877
errors:
1287812878
- code: parameter_mismatch
1287912879
message: User replies are not allowed on Backoffice tickets
12880+
Admin comment on a back-office ticket:
12881+
value:
12882+
type: error.list
12883+
request_id: 7a1c9f02-5d3e-4b8a-9c21-6f0d84e5b713
12884+
errors:
12885+
- code: parameter_mismatch
12886+
message: Comments are not allowed on Backoffice tickets not
12887+
shared with user
12888+
Admin comment on a tracker ticket:
12889+
value:
12890+
type: error.list
12891+
request_id: c4e2a980-31bf-4d76-8a05-2e9cb17f4d6a
12892+
errors:
12893+
- code: parameter_mismatch
12894+
message: Comments are not allowed on Tracker tickets
1288012895
schema:
1288112896
"$ref": "#/components/schemas/error"
1288212897
'200':
@@ -15709,6 +15724,9 @@ components:
1570915724
properties:
1571015725
message_type:
1571115726
type: string
15727+
description: The type of reply. Tracker tickets and back-office tickets
15728+
that are not shared with the customer do not support `comment`; use
15729+
`note` instead.
1571215730
enum:
1571315731
- comment
1571415732
- note

‎descriptions/2.16/api.intercom.io.yaml‎

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19506,7 +19506,7 @@ paths:
1950619506
- Tickets
1950719507
responses:
1950819508
'400':
19509-
description: User reply
19509+
description: Bad Request
1951019510
content:
1951119511
application/json:
1951219512
examples:
@@ -19517,6 +19517,21 @@ paths:
1951719517
errors:
1951819518
- code: parameter_mismatch
1951919519
message: User replies are not allowed on Backoffice tickets
19520+
Admin comment on a back-office ticket:
19521+
value:
19522+
type: error.list
19523+
request_id: 7a1c9f02-5d3e-4b8a-9c21-6f0d84e5b713
19524+
errors:
19525+
- code: parameter_mismatch
19526+
message: Comments are not allowed on Backoffice tickets not
19527+
shared with user
19528+
Admin comment on a tracker ticket:
19529+
value:
19530+
type: error.list
19531+
request_id: c4e2a980-31bf-4d76-8a05-2e9cb17f4d6a
19532+
errors:
19533+
- code: parameter_mismatch
19534+
message: Comments are not allowed on Tracker tickets
1952019535
schema:
1952119536
"$ref": "#/components/schemas/error"
1952219537
'200':
@@ -22959,6 +22974,9 @@ components:
2295922974
properties:
2296022975
message_type:
2296122976
type: string
22977+
description: The type of reply. Tracker tickets and back-office tickets
22978+
that are not shared with the customer do not support `comment`; use
22979+
`note` instead.
2296222980
enum:
2296322981
- comment
2296422982
- note

0 commit comments

Comments
 (0)