@celigo/api-specs 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +119 -0
- package/dist/account.yml +592 -0
- package/dist/agent.yml +908 -0
- package/dist/ai-agent.yml +5471 -0
- package/dist/api.yml +4140 -0
- package/dist/apim.yml +1286 -0
- package/dist/asynchelper.yml +3391 -0
- package/dist/audit.yml +2006 -0
- package/dist/connection.yml +8665 -0
- package/dist/connector.yml +1406 -0
- package/dist/ediprofile.yml +911 -0
- package/dist/editransaction.yml +1210 -0
- package/dist/enduser.yml +1724 -0
- package/dist/environment.yml +568 -0
- package/dist/eventreport.yml +692 -0
- package/dist/export.yml +17610 -0
- package/dist/filedefinition.yml +1396 -0
- package/dist/filestorage.yml +3102 -0
- package/dist/flow.yml +7928 -0
- package/dist/guardrail.yml +2763 -0
- package/dist/httpconnector.yml +2277 -0
- package/dist/httpconnectorendpoint.yml +722 -0
- package/dist/httpconnectorresource.yml +396 -0
- package/dist/iclient.yml +4452 -0
- package/dist/import.yml +15381 -0
- package/dist/integration.yml +4406 -0
- package/dist/job.yml +2014 -0
- package/dist/lookupcache.yml +1325 -0
- package/dist/marketplace.yml +685 -0
- package/dist/mcp-oauth-provider.yml +590 -0
- package/dist/mcp-server.yml +2656 -0
- package/dist/notification.yml +488 -0
- package/dist/processor.yml +1253 -0
- package/dist/profile.yml +455 -0
- package/dist/recyclebin.yml +768 -0
- package/dist/script.yml +1128 -0
- package/dist/stack.yml +1291 -0
- package/dist/state.yml +894 -0
- package/dist/subscription.yml +1405 -0
- package/dist/sync.yml +4857 -0
- package/dist/tag.yml +553 -0
- package/dist/template.yml +897 -0
- package/dist/tool.yml +33656 -0
- package/dist/tradingpartnerconnector.yml +1490 -0
- package/dist/user.yml +831 -0
- package/package.json +41 -0
- package/schemas.json +8420 -0
package/dist/tag.yml
ADDED
|
@@ -0,0 +1,553 @@
|
|
|
1
|
+
openapi: 3.2.0
|
|
2
|
+
info:
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
title: Tags
|
|
5
|
+
description: API for managing the account-level tag catalog — short-code labels applied to flow-step errors for triage.
|
|
6
|
+
servers:
|
|
7
|
+
- url: https://api.integrator.io
|
|
8
|
+
description: Production (US / default region)
|
|
9
|
+
- url: https://api.eu.integrator.io
|
|
10
|
+
description: Production (EU region)
|
|
11
|
+
- url: https://api.au.integrator.io
|
|
12
|
+
description: Production (AU region)
|
|
13
|
+
- url: https://api.ca.integrator.io
|
|
14
|
+
description: Production (CA region)
|
|
15
|
+
security:
|
|
16
|
+
- bearerAuth: []
|
|
17
|
+
tags:
|
|
18
|
+
- name: Tags
|
|
19
|
+
description: |-
|
|
20
|
+
API for managing the account-level tag catalog. Tags are short-code labels
|
|
21
|
+
that can be applied to flow-step errors for classification and triage.
|
|
22
|
+
|
|
23
|
+
## Tag schema
|
|
24
|
+
|
|
25
|
+
{% openapi-schemas spec="tag" schemas="Tag" grouped="true" %}
|
|
26
|
+
paths:
|
|
27
|
+
/v1/tags:
|
|
28
|
+
get:
|
|
29
|
+
x-internal: false
|
|
30
|
+
operationId: listTags
|
|
31
|
+
tags:
|
|
32
|
+
- Tags
|
|
33
|
+
parameters:
|
|
34
|
+
- name: limit
|
|
35
|
+
in: query
|
|
36
|
+
description: Maximum number of records to return per page.
|
|
37
|
+
schema:
|
|
38
|
+
type: integer
|
|
39
|
+
minimum: 1
|
|
40
|
+
examples:
|
|
41
|
+
- 100
|
|
42
|
+
- $ref: '#/components/parameters/After'
|
|
43
|
+
summary: List the account's tag catalog
|
|
44
|
+
description: |-
|
|
45
|
+
Returns every tag defined in the account, each with its short `tagId`
|
|
46
|
+
code and human-readable `tag` name. This is the catalog that backs the
|
|
47
|
+
tag-picker on flow-step errors (`PUT /v1/flows/{_id}/{_stepId}/tags`).
|
|
48
|
+
|
|
49
|
+
The `tagId` field is the short code used as a write-side input on
|
|
50
|
+
flow-step tag mutations (`PUT /v1/flows/{_id}/{_stepId}/tags`
|
|
51
|
+
accepts `tagIds: ["NjMMA", ...]`), while the human name is stored
|
|
52
|
+
on the error record as `tags: ["Ignore", ...]`.
|
|
53
|
+
responses:
|
|
54
|
+
'200':
|
|
55
|
+
description: Array of tag entries (at least one tag exists).
|
|
56
|
+
headers:
|
|
57
|
+
Link:
|
|
58
|
+
description: |-
|
|
59
|
+
RFC-5988 pagination links. When more pages remain, includes a `<...>; rel="next"` entry;
|
|
60
|
+
absent on the final page.
|
|
61
|
+
schema:
|
|
62
|
+
type: string
|
|
63
|
+
content:
|
|
64
|
+
application/json:
|
|
65
|
+
schema:
|
|
66
|
+
type: array
|
|
67
|
+
items:
|
|
68
|
+
$ref: '#/components/schemas/Tag'
|
|
69
|
+
examples:
|
|
70
|
+
default:
|
|
71
|
+
value:
|
|
72
|
+
- _id: 6555119c0a137977fb1e7994
|
|
73
|
+
tag: Ignore
|
|
74
|
+
tagId: NjMMA
|
|
75
|
+
- _id: 69a1e79bdbb446adf7933049
|
|
76
|
+
tag: IT Related Login Issue
|
|
77
|
+
tagId: P3mzf
|
|
78
|
+
'204':
|
|
79
|
+
description: No tags exist in the account.
|
|
80
|
+
'401':
|
|
81
|
+
$ref: '#/components/responses/401-unauthorized'
|
|
82
|
+
post:
|
|
83
|
+
x-internal: false
|
|
84
|
+
operationId: createTag
|
|
85
|
+
tags:
|
|
86
|
+
- Tags
|
|
87
|
+
summary: Create a tag
|
|
88
|
+
description: |-
|
|
89
|
+
Creates a new tag in the account's tag catalog. The server generates
|
|
90
|
+
an immutable short `tagId` code automatically. Tag names are
|
|
91
|
+
case-insensitively unique within the account — a case-variant
|
|
92
|
+
duplicate is rejected with HTTP 422 `[create_not_allowed]` "A tag
|
|
93
|
+
with this name already exists." Per Celigo's documentation, the
|
|
94
|
+
catalog holds at most 1,000 unique tags per account. Note the
|
|
95
|
+
per-error limit is separate and much smaller: a single error carries
|
|
96
|
+
at most 3 tags (see `PUT /v1/flows/{_id}/{_stepId}/tags`).
|
|
97
|
+
requestBody:
|
|
98
|
+
required: true
|
|
99
|
+
content:
|
|
100
|
+
application/json:
|
|
101
|
+
schema:
|
|
102
|
+
$ref: '#/components/schemas/Request'
|
|
103
|
+
examples:
|
|
104
|
+
default:
|
|
105
|
+
value:
|
|
106
|
+
tag: Urgent
|
|
107
|
+
responses:
|
|
108
|
+
'201':
|
|
109
|
+
description: The created tag entry.
|
|
110
|
+
content:
|
|
111
|
+
application/json:
|
|
112
|
+
schema:
|
|
113
|
+
$ref: '#/components/schemas/Tag'
|
|
114
|
+
examples:
|
|
115
|
+
default:
|
|
116
|
+
value:
|
|
117
|
+
_id: 65d6cd9e83ba5b97e2658fce
|
|
118
|
+
tag: Urgent
|
|
119
|
+
tagId: rx618
|
|
120
|
+
'400':
|
|
121
|
+
$ref: '#/components/responses/400-bad-request'
|
|
122
|
+
'401':
|
|
123
|
+
$ref: '#/components/responses/401-unauthorized'
|
|
124
|
+
'422':
|
|
125
|
+
$ref: '#/components/responses/422-unprocessable-entity'
|
|
126
|
+
/v1/tags/{_id}:
|
|
127
|
+
get:
|
|
128
|
+
x-internal: false
|
|
129
|
+
operationId: getTagById
|
|
130
|
+
tags:
|
|
131
|
+
- Tags
|
|
132
|
+
summary: Get a tag
|
|
133
|
+
description: Returns a single tag entry by its `_id`.
|
|
134
|
+
parameters:
|
|
135
|
+
- name: _id
|
|
136
|
+
in: path
|
|
137
|
+
required: true
|
|
138
|
+
schema:
|
|
139
|
+
type: string
|
|
140
|
+
format: objectId
|
|
141
|
+
examples:
|
|
142
|
+
- 65d6cd9e83ba5b97e2658fce
|
|
143
|
+
description: The tag ID.
|
|
144
|
+
responses:
|
|
145
|
+
'200':
|
|
146
|
+
description: The tag entry.
|
|
147
|
+
content:
|
|
148
|
+
application/json:
|
|
149
|
+
schema:
|
|
150
|
+
$ref: '#/components/schemas/Tag'
|
|
151
|
+
examples:
|
|
152
|
+
default:
|
|
153
|
+
value:
|
|
154
|
+
_id: 65d6cd9e83ba5b97e2658fce
|
|
155
|
+
tag: Urgent
|
|
156
|
+
tagId: rx618
|
|
157
|
+
'400':
|
|
158
|
+
$ref: '#/components/responses/400-bad-request'
|
|
159
|
+
'401':
|
|
160
|
+
$ref: '#/components/responses/401-unauthorized'
|
|
161
|
+
'404':
|
|
162
|
+
$ref: '#/components/responses/404-not-found'
|
|
163
|
+
put:
|
|
164
|
+
x-internal: false
|
|
165
|
+
operationId: updateTag
|
|
166
|
+
tags:
|
|
167
|
+
- Tags
|
|
168
|
+
summary: Update a tag
|
|
169
|
+
description: |-
|
|
170
|
+
Updates the human-readable `tag` name for an existing tag entry.
|
|
171
|
+
The short `tagId` code is immutable and cannot be changed.
|
|
172
|
+
parameters:
|
|
173
|
+
- name: _id
|
|
174
|
+
in: path
|
|
175
|
+
required: true
|
|
176
|
+
schema:
|
|
177
|
+
type: string
|
|
178
|
+
format: objectId
|
|
179
|
+
examples:
|
|
180
|
+
- 65d6cd9e83ba5b97e2658fce
|
|
181
|
+
description: The tag ID.
|
|
182
|
+
requestBody:
|
|
183
|
+
required: true
|
|
184
|
+
content:
|
|
185
|
+
application/json:
|
|
186
|
+
schema:
|
|
187
|
+
$ref: '#/components/schemas/Request'
|
|
188
|
+
examples:
|
|
189
|
+
default:
|
|
190
|
+
summary: Rename a tag
|
|
191
|
+
value:
|
|
192
|
+
tag: Production Issue
|
|
193
|
+
responses:
|
|
194
|
+
'200':
|
|
195
|
+
description: The updated tag entry.
|
|
196
|
+
content:
|
|
197
|
+
application/json:
|
|
198
|
+
schema:
|
|
199
|
+
$ref: '#/components/schemas/Tag'
|
|
200
|
+
examples:
|
|
201
|
+
default:
|
|
202
|
+
value:
|
|
203
|
+
_id: 65d6cd9e83ba5b97e2658fce
|
|
204
|
+
tag: Production Issue
|
|
205
|
+
tagId: rx618
|
|
206
|
+
'400':
|
|
207
|
+
$ref: '#/components/responses/400-bad-request'
|
|
208
|
+
'401':
|
|
209
|
+
$ref: '#/components/responses/401-unauthorized'
|
|
210
|
+
'404':
|
|
211
|
+
$ref: '#/components/responses/404-not-found'
|
|
212
|
+
'422':
|
|
213
|
+
$ref: '#/components/responses/422-unprocessable-entity'
|
|
214
|
+
patch:
|
|
215
|
+
x-internal: false
|
|
216
|
+
operationId: patchTag
|
|
217
|
+
tags:
|
|
218
|
+
- Tags
|
|
219
|
+
summary: Patch a tag
|
|
220
|
+
description: |-
|
|
221
|
+
Partially updates a tag using a JSON Patch document (RFC 6902).
|
|
222
|
+
Only the `replace` operation is supported, and only on the following
|
|
223
|
+
whitelisted path:
|
|
224
|
+
|
|
225
|
+
| Path | Description |
|
|
226
|
+
|------|-------------|
|
|
227
|
+
| `/tag` | The human-readable tag name |
|
|
228
|
+
|
|
229
|
+
All other paths are rejected with `422`.
|
|
230
|
+
parameters:
|
|
231
|
+
- name: _id
|
|
232
|
+
in: path
|
|
233
|
+
required: true
|
|
234
|
+
schema:
|
|
235
|
+
type: string
|
|
236
|
+
format: objectId
|
|
237
|
+
examples:
|
|
238
|
+
- 65d6cd9e83ba5b97e2658fce
|
|
239
|
+
description: The tag ID.
|
|
240
|
+
requestBody:
|
|
241
|
+
required: true
|
|
242
|
+
content:
|
|
243
|
+
application/json:
|
|
244
|
+
schema:
|
|
245
|
+
$ref: '#/components/schemas/JsonPatchRequest'
|
|
246
|
+
examples:
|
|
247
|
+
rename_tag:
|
|
248
|
+
summary: Rename a tag
|
|
249
|
+
value:
|
|
250
|
+
- op: replace
|
|
251
|
+
path: /tag
|
|
252
|
+
value: Production
|
|
253
|
+
responses:
|
|
254
|
+
'204':
|
|
255
|
+
description: Tag patched successfully.
|
|
256
|
+
'400':
|
|
257
|
+
$ref: '#/components/responses/400-bad-request'
|
|
258
|
+
'401':
|
|
259
|
+
$ref: '#/components/responses/401-unauthorized'
|
|
260
|
+
'404':
|
|
261
|
+
$ref: '#/components/responses/404-not-found'
|
|
262
|
+
'422':
|
|
263
|
+
$ref: '#/components/responses/422-unprocessable-entity'
|
|
264
|
+
delete:
|
|
265
|
+
x-internal: false
|
|
266
|
+
operationId: deleteTag
|
|
267
|
+
tags:
|
|
268
|
+
- Tags
|
|
269
|
+
summary: Delete a tag
|
|
270
|
+
description: Permanently deletes a tag from the account's tag catalog.
|
|
271
|
+
parameters:
|
|
272
|
+
- name: _id
|
|
273
|
+
in: path
|
|
274
|
+
required: true
|
|
275
|
+
schema:
|
|
276
|
+
type: string
|
|
277
|
+
format: objectId
|
|
278
|
+
examples:
|
|
279
|
+
- 65d6cd9e83ba5b97e2658fce
|
|
280
|
+
description: The tag ID.
|
|
281
|
+
responses:
|
|
282
|
+
'204':
|
|
283
|
+
description: Tag deleted successfully.
|
|
284
|
+
'401':
|
|
285
|
+
$ref: '#/components/responses/401-unauthorized'
|
|
286
|
+
'404':
|
|
287
|
+
$ref: '#/components/responses/404-not-found'
|
|
288
|
+
components:
|
|
289
|
+
securitySchemes:
|
|
290
|
+
bearerAuth:
|
|
291
|
+
type: http
|
|
292
|
+
scheme: bearer
|
|
293
|
+
parameters:
|
|
294
|
+
After:
|
|
295
|
+
name: after
|
|
296
|
+
in: query
|
|
297
|
+
required: false
|
|
298
|
+
description: |-
|
|
299
|
+
Opaque cursor for forward pagination. Pass the value from the `Link`
|
|
300
|
+
response header (`rel="next"`) to fetch the next page.
|
|
301
|
+
schema:
|
|
302
|
+
type: string
|
|
303
|
+
schemas:
|
|
304
|
+
ResourceResponse:
|
|
305
|
+
type: object
|
|
306
|
+
description: Response
|
|
307
|
+
x-celigo-ai-guidance:
|
|
308
|
+
- Core response fields shared by all Celigo resources
|
|
309
|
+
properties:
|
|
310
|
+
_id:
|
|
311
|
+
type: string
|
|
312
|
+
format: objectId
|
|
313
|
+
readOnly: true
|
|
314
|
+
description: Unique identifier for the resource. Format is a 24-character hexadecimal string.
|
|
315
|
+
x-celigo-ai-guidance:
|
|
316
|
+
- |-
|
|
317
|
+
The _id is used in:
|
|
318
|
+
- API endpoints that operate on a specific resource (e.g., GET, PUT, DELETE)
|
|
319
|
+
- References from other resources (e.g., flows that use this resource)
|
|
320
|
+
- Job history and error tracking
|
|
321
|
+
examples:
|
|
322
|
+
- 5f8d43a1b9e5a80011a35f2c
|
|
323
|
+
createdAt:
|
|
324
|
+
type: string
|
|
325
|
+
format: date-time
|
|
326
|
+
readOnly: true
|
|
327
|
+
description: Timestamp when the resource was created. Set automatically and cannot be modified.
|
|
328
|
+
x-celigo-ai-guidance:
|
|
329
|
+
- Recorded in ISO 8601 with a UTC timezone (Z suffix).
|
|
330
|
+
examples:
|
|
331
|
+
- '2023-04-01T09:15:32Z'
|
|
332
|
+
lastModified:
|
|
333
|
+
type: string
|
|
334
|
+
format: date-time
|
|
335
|
+
readOnly: true
|
|
336
|
+
description: Timestamp when the resource was last updated. Changes whenever any property is modified.
|
|
337
|
+
x-celigo-ai-guidance:
|
|
338
|
+
- Recorded in ISO 8601 with a UTC timezone (Z suffix); always equal to or later than `createdAt`.
|
|
339
|
+
examples:
|
|
340
|
+
- '2023-04-15T14:30:15Z'
|
|
341
|
+
deletedAt:
|
|
342
|
+
type:
|
|
343
|
+
- string
|
|
344
|
+
- 'null'
|
|
345
|
+
format: date-time
|
|
346
|
+
readOnly: true
|
|
347
|
+
description: Timestamp when the resource was soft-deleted. When null or absent, the resource is active.
|
|
348
|
+
x-celigo-ai-guidance:
|
|
349
|
+
- Non-null means the resource is soft-deleted (in the recycle bin) — recoverable within the retention period before permanent removal.
|
|
350
|
+
examples:
|
|
351
|
+
- '2023-05-20T11:45:32Z'
|
|
352
|
+
required:
|
|
353
|
+
- _id
|
|
354
|
+
Tag:
|
|
355
|
+
type: object
|
|
356
|
+
required:
|
|
357
|
+
- _id
|
|
358
|
+
- tag
|
|
359
|
+
- tagId
|
|
360
|
+
description: |-
|
|
361
|
+
One tag entry from the account's tag catalog. `tag` is the human
|
|
362
|
+
display name; `tagId` is the 5-char short code used when writing tag
|
|
363
|
+
references on flow-step errors.
|
|
364
|
+
allOf:
|
|
365
|
+
- $ref: '#/components/schemas/ResourceResponse'
|
|
366
|
+
- type: object
|
|
367
|
+
properties:
|
|
368
|
+
tag:
|
|
369
|
+
type: string
|
|
370
|
+
maxLength: 100
|
|
371
|
+
examples:
|
|
372
|
+
- Urgent
|
|
373
|
+
description: Human-readable tag name. Appears on read-side error records.
|
|
374
|
+
tagId:
|
|
375
|
+
type: string
|
|
376
|
+
readOnly: true
|
|
377
|
+
minLength: 5
|
|
378
|
+
maxLength: 5
|
|
379
|
+
pattern: ^[a-zA-Z0-9]{5}$
|
|
380
|
+
examples:
|
|
381
|
+
- rx618
|
|
382
|
+
description: |-
|
|
383
|
+
Short code used when writing tag references — e.g. as the values
|
|
384
|
+
in `PUT /v1/flows/{_id}/{_stepId}/tags` `tagIds[]`.
|
|
385
|
+
Server-generated and immutable: `tagId` values supplied on
|
|
386
|
+
create/update are ignored and a fresh code is generated.
|
|
387
|
+
Request:
|
|
388
|
+
type: object
|
|
389
|
+
description: Fields for creating or updating a tag.
|
|
390
|
+
required:
|
|
391
|
+
- tag
|
|
392
|
+
properties:
|
|
393
|
+
tag:
|
|
394
|
+
type: string
|
|
395
|
+
minLength: 1
|
|
396
|
+
maxLength: 100
|
|
397
|
+
examples:
|
|
398
|
+
- Urgent
|
|
399
|
+
description: |-
|
|
400
|
+
The human-readable tag name. Case-insensitively unique within the
|
|
401
|
+
account. Whitespace is trimmed on save; names that are empty after
|
|
402
|
+
trimming are rejected.
|
|
403
|
+
Error:
|
|
404
|
+
type: object
|
|
405
|
+
description: Standard error response envelope returned by integrator.io APIs.
|
|
406
|
+
properties:
|
|
407
|
+
errors:
|
|
408
|
+
type: array
|
|
409
|
+
description: List of errors that occurred while processing the request.
|
|
410
|
+
items:
|
|
411
|
+
type: object
|
|
412
|
+
properties:
|
|
413
|
+
code:
|
|
414
|
+
oneOf:
|
|
415
|
+
- type: string
|
|
416
|
+
- type: integer
|
|
417
|
+
description: |-
|
|
418
|
+
Machine-readable error code. Usually a string like
|
|
419
|
+
`invalid_ref`, `missing_required_field`, or `unauthorized`;
|
|
420
|
+
may be an **integer** when the error mirrors an upstream HTTP
|
|
421
|
+
status (e.g. `500`) — most commonly returned by connection-ping
|
|
422
|
+
and adaptor-proxy responses.
|
|
423
|
+
message:
|
|
424
|
+
type: string
|
|
425
|
+
description: Human-readable description of the error.
|
|
426
|
+
field:
|
|
427
|
+
type: string
|
|
428
|
+
description: |-
|
|
429
|
+
Optional pointer to the document field that caused the error.
|
|
430
|
+
Used by structural validation errors (`missing_required_field`,
|
|
431
|
+
`invalid_ref`) to indicate which field is at fault
|
|
432
|
+
(e.g. `_id`, `type`, `http.baseURI`).
|
|
433
|
+
source:
|
|
434
|
+
type: string
|
|
435
|
+
description: |-
|
|
436
|
+
Optional origin layer for the error — e.g. `application` when
|
|
437
|
+
the error came from the remote system the adaptor called,
|
|
438
|
+
`connector` when the adaptor itself rejected the request.
|
|
439
|
+
required:
|
|
440
|
+
- message
|
|
441
|
+
required:
|
|
442
|
+
- errors
|
|
443
|
+
JsonPatchOperation:
|
|
444
|
+
type: object
|
|
445
|
+
description: A single JSON Patch operation (RFC 6902).
|
|
446
|
+
required:
|
|
447
|
+
- op
|
|
448
|
+
- path
|
|
449
|
+
properties:
|
|
450
|
+
op:
|
|
451
|
+
type: string
|
|
452
|
+
enum:
|
|
453
|
+
- replace
|
|
454
|
+
- add
|
|
455
|
+
- remove
|
|
456
|
+
x-enumDescriptions:
|
|
457
|
+
replace: Replaces the value at the specified path.
|
|
458
|
+
add: Sets the value at the specified path.
|
|
459
|
+
remove: Removes the value at the specified path.
|
|
460
|
+
description: The operation to perform.
|
|
461
|
+
path:
|
|
462
|
+
type: string
|
|
463
|
+
description: |-
|
|
464
|
+
JSON Pointer (RFC 6901) to the field to patch. Only
|
|
465
|
+
whitelisted paths are accepted — unlisted paths return
|
|
466
|
+
`422` with `"<path> is not a whitelisted property"`.
|
|
467
|
+
value:
|
|
468
|
+
description: The new value to set. Required for `replace` and `add`, omit for `remove`.
|
|
469
|
+
JsonPatchRequest:
|
|
470
|
+
type: array
|
|
471
|
+
description: |-
|
|
472
|
+
A JSON Patch document (RFC 6902). Send an array of patch
|
|
473
|
+
operations on whitelisted fields — all other paths are rejected
|
|
474
|
+
with 422.
|
|
475
|
+
minItems: 1
|
|
476
|
+
items:
|
|
477
|
+
$ref: '#/components/schemas/JsonPatchOperation'
|
|
478
|
+
responses:
|
|
479
|
+
401-unauthorized:
|
|
480
|
+
description: |-
|
|
481
|
+
Unauthorized. The request lacks a valid bearer token, or the provided token
|
|
482
|
+
failed to authenticate.
|
|
483
|
+
|
|
484
|
+
Note: the 401 response is produced by the auth middleware **before** the
|
|
485
|
+
request reaches the endpoint handler, so it does **not** follow the
|
|
486
|
+
standard `{errors: [...]}` envelope. Instead the body is a bare
|
|
487
|
+
`{message: string}` object with no `code`, no `errors` array. Callers
|
|
488
|
+
handling 401s should key off the HTTP status and the `message` string,
|
|
489
|
+
not try to destructure an `errors[]`.
|
|
490
|
+
content:
|
|
491
|
+
application/json:
|
|
492
|
+
schema:
|
|
493
|
+
type: object
|
|
494
|
+
properties:
|
|
495
|
+
message:
|
|
496
|
+
type: string
|
|
497
|
+
description: |-
|
|
498
|
+
Human-readable description of the auth failure. Known values:
|
|
499
|
+
- `"Unauthorized"` — no `Authorization` header on the request.
|
|
500
|
+
- `"Bearer Authentication Failed"` — header present but token
|
|
501
|
+
is invalid, revoked, or expired.
|
|
502
|
+
required:
|
|
503
|
+
- message
|
|
504
|
+
examples:
|
|
505
|
+
missing_token:
|
|
506
|
+
summary: No Authorization header sent
|
|
507
|
+
value:
|
|
508
|
+
message: Unauthorized
|
|
509
|
+
invalid_token:
|
|
510
|
+
summary: Bearer token invalid or revoked
|
|
511
|
+
value:
|
|
512
|
+
message: Bearer Authentication Failed
|
|
513
|
+
400-bad-request:
|
|
514
|
+
description: |
|
|
515
|
+
Bad request. The server could not understand the request because of malformed syntax or invalid parameters.
|
|
516
|
+
content:
|
|
517
|
+
application/json:
|
|
518
|
+
schema:
|
|
519
|
+
$ref: '#/components/schemas/Error'
|
|
520
|
+
examples:
|
|
521
|
+
default:
|
|
522
|
+
value:
|
|
523
|
+
errors:
|
|
524
|
+
- code: invalid_request
|
|
525
|
+
message: The request body failed validation.
|
|
526
|
+
422-unprocessable-entity:
|
|
527
|
+
description: |
|
|
528
|
+
Unprocessable entity. The request was well-formed but was unable to be followed due to semantic errors.
|
|
529
|
+
content:
|
|
530
|
+
application/json:
|
|
531
|
+
schema:
|
|
532
|
+
$ref: '#/components/schemas/Error'
|
|
533
|
+
examples:
|
|
534
|
+
default:
|
|
535
|
+
value:
|
|
536
|
+
errors:
|
|
537
|
+
- code: unprocessable_entity
|
|
538
|
+
message: The request could not be processed due to a semantic error.
|
|
539
|
+
404-not-found:
|
|
540
|
+
description: |
|
|
541
|
+
Not found. The requested resource does not exist or is not visible to the caller.
|
|
542
|
+
content:
|
|
543
|
+
application/json:
|
|
544
|
+
schema:
|
|
545
|
+
$ref: '#/components/schemas/Error'
|
|
546
|
+
examples:
|
|
547
|
+
default:
|
|
548
|
+
value:
|
|
549
|
+
errors:
|
|
550
|
+
- code: not_found
|
|
551
|
+
message: The requested resource was not found.
|
|
552
|
+
x-enable-proxy: true
|
|
553
|
+
x-internal: false
|