You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dd67e26
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: descriptions/0/api.intercom.io.yaml
+142Lines changed: 142 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -33091,6 +33091,136 @@ paths:
33091
33091
message: Not authorized to access resource
33092
33092
schema:
33093
33093
"$ref": "#/components/schemas/error"
33094
+
put:
33095
+
summary: Archive or unarchive a tag
33096
+
parameters:
33097
+
- name: Intercom-Version
33098
+
in: header
33099
+
schema:
33100
+
"$ref": "#/components/schemas/intercom_version"
33101
+
- name: id
33102
+
in: path
33103
+
description: The unique identifier of a given tag
33104
+
example: '123'
33105
+
required: true
33106
+
schema:
33107
+
type: string
33108
+
tags:
33109
+
- Tags
33110
+
operationId: updateTag
33111
+
description: |
33112
+
You can archive or unarchive a tag by passing in its id. Archived tags are still returned by `GET /tags`, with `archived` set to `true`.
33113
+
33114
+
You can't archive a tag that is still in use elsewhere in your workspace, such as in a segment or rule; the request returns a 400 that lists them. Unarchiving always succeeds. Archiving a tag that is already archived, or unarchiving one that isn't, returns the tag unchanged.
33115
+
33116
+
Requires the `write_tags` or `write_users_companies` OAuth scope.
33117
+
requestBody:
33118
+
content:
33119
+
application/json:
33120
+
schema:
33121
+
"$ref": "#/components/schemas/update_tag_request"
33122
+
examples:
33123
+
archive_tag:
33124
+
summary: Archive a tag
33125
+
value:
33126
+
archived: true
33127
+
unarchive_tag:
33128
+
summary: Unarchive a tag
33129
+
value:
33130
+
archived: false
33131
+
responses:
33132
+
'200':
33133
+
description: Tag updated
33134
+
content:
33135
+
application/json:
33136
+
examples:
33137
+
Tag archived:
33138
+
value:
33139
+
type: tag
33140
+
id: '113'
33141
+
name: Manual tag
33142
+
archived: true
33143
+
schema:
33144
+
"$ref": "#/components/schemas/tag"
33145
+
'400':
33146
+
description: Bad request
33147
+
content:
33148
+
application/json:
33149
+
examples:
33150
+
Missing archived:
33151
+
value:
33152
+
type: error.list
33153
+
request_id: 3f6b2e1a-8c4d-4f7e-9a2b-5d1c0e8f7a63
33154
+
errors:
33155
+
- code: parameter_not_found
33156
+
message: archived is required
33157
+
Invalid archived:
33158
+
value:
33159
+
type: error.list
33160
+
request_id: 7a2d9c4e-1b3f-4e8a-b6d5-0c9f2e1a4b87
33161
+
errors:
33162
+
- code: parameter_invalid
33163
+
message: archived must be a boolean
33164
+
Tag has dependent objects:
33165
+
value:
33166
+
type: error.list
33167
+
request_id: c4e8a1f2-6d3b-4a9e-8f7c-2b5d0e9a1c36
33168
+
errors:
33169
+
- code: tag_has_dependent_objects
33170
+
message: 'Unable to delete Tag with dependent objects. Segments:
33171
+
Seg 1.'
33172
+
schema:
33173
+
"$ref": "#/components/schemas/error"
33174
+
'404':
33175
+
description: Tag not found
33176
+
content:
33177
+
application/json:
33178
+
examples:
33179
+
Tag not found:
33180
+
value:
33181
+
type: error.list
33182
+
request_id: 9b1e5d3a-2c7f-4b8e-a4d6-1f0c3e9b2a75
33183
+
errors:
33184
+
- code: not_found
33185
+
message: Resource Not Found
33186
+
schema:
33187
+
"$ref": "#/components/schemas/error"
33188
+
'409':
33189
+
description: Tag is being applied
33190
+
content:
33191
+
application/json:
33192
+
examples:
33193
+
Tagging in progress:
33194
+
value:
33195
+
type: error.list
33196
+
request_id: 2e7c4a9f-5b1d-4c3e-9a8f-6d0b2e1c7f49
33197
+
errors:
33198
+
- code: conflict
33199
+
message: An ongoing import or bulk operation is using this
33200
+
tag. Please wait for it to complete before archiving.
33201
+
schema:
33202
+
"$ref": "#/components/schemas/error"
33203
+
'401':
33204
+
description: Unauthorized
33205
+
content:
33206
+
application/json:
33207
+
examples:
33208
+
Unauthorized:
33209
+
value:
33210
+
type: error.list
33211
+
request_id: 5d9a2c7e-3f1b-4e6a-8c4d-0b7e2f9a1c58
33212
+
errors:
33213
+
- code: unauthorized
33214
+
message: Access Token Invalid
33215
+
Token lacks required scope:
33216
+
value:
33217
+
type: error.list
33218
+
request_id: 8f3c1e6a-4d2b-4a7e-9b5c-1e0d3f8a2c64
33219
+
errors:
33220
+
- code: token_unauthorized
33221
+
message: Not authorized to access resource
33222
+
schema:
33223
+
"$ref": "#/components/schemas/error"
33094
33224
"/teams":
33095
33225
get:
33096
33226
summary: List all teams
@@ -49389,6 +49519,18 @@ components:
49389
49519
example:
49390
49520
order_number: ORDER-12345
49391
49521
total_amount: 99.99
49522
+
update_tag_request:
49523
+
description: You can archive or unarchive a tag.
49524
+
type: object
49525
+
title: Update Tag Request Payload
49526
+
properties:
49527
+
archived:
49528
+
type: boolean
49529
+
description: Set to `true` to archive the tag, or `false` to unarchive
49530
+
it.
49531
+
example: true
49532
+
required:
49533
+
- archived
49392
49534
create_or_update_tag_request:
49393
49535
description: You can create or update an existing tag, and optionally apply
0 commit comments