@celigo/api-specs 0.2.3 → 0.2.4-IO-168454-EPIC-fb

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.
Files changed (52) hide show
  1. package/README.md +71 -80
  2. package/dist/account.yml +456 -55
  3. package/dist/agent.yml +15 -0
  4. package/dist/ai-agent.yml +1000 -192
  5. package/dist/alert.yml +1226 -0
  6. package/dist/api.yml +6375 -178
  7. package/dist/apim.yml +0 -4
  8. package/dist/asynchelper.yml +441 -62
  9. package/dist/audit.yml +57 -2
  10. package/dist/bartendertemplate.yml +508 -0
  11. package/dist/connection.yml +2533 -189
  12. package/dist/connector.yml +8 -0
  13. package/dist/ediprofile.yml +15 -0
  14. package/dist/editransaction.yml +250 -14
  15. package/dist/enduser.yml +6063 -47
  16. package/dist/environment.yml +8 -0
  17. package/dist/eventreport.yml +8 -0
  18. package/dist/export.yml +1624 -1804
  19. package/dist/filedefinition.yml +47 -0
  20. package/dist/filedefinitionrules.yml +722 -0
  21. package/dist/fileserver.yml +1457 -0
  22. package/dist/filestorage.yml +1087 -535
  23. package/dist/flow.yml +896 -209
  24. package/dist/guardrail.yml +310 -499
  25. package/dist/httpconnector.yml +8 -0
  26. package/dist/httpconnectorendpoint.yml +610 -126
  27. package/dist/httpconnectorresource.yml +1160 -84
  28. package/dist/iclient.yml +245 -114
  29. package/dist/import.yml +2583 -448
  30. package/dist/integration.yml +1114 -45
  31. package/dist/job.yml +188 -92
  32. package/dist/lookupcache.yml +45 -14
  33. package/dist/marketplace.yml +352 -107
  34. package/dist/mcp-oauth-provider.yml +15 -30
  35. package/dist/mcp-server.yml +7004 -68
  36. package/dist/networkpolicy.yml +1221 -0
  37. package/dist/notification.yml +59 -9
  38. package/dist/processor.yml +8 -3
  39. package/dist/recyclebin.yml +32 -2
  40. package/dist/script.yml +91 -16
  41. package/dist/stack.yml +642 -5
  42. package/dist/storagequery.yml +935 -0
  43. package/dist/subscription.yml +428 -67
  44. package/dist/sync.yml +435 -79
  45. package/dist/tag.yml +8 -0
  46. package/dist/template.yml +47 -1
  47. package/dist/tool.yml +7932 -3273
  48. package/dist/topic.yml +1806 -0
  49. package/dist/tradingpartnerconnector.yml +18 -0
  50. package/dist/user.yml +465 -42
  51. package/package.json +13 -1
  52. package/schemas.json +2358 -1887
@@ -17,7 +17,7 @@ security:
17
17
  tags:
18
18
  - name: File Storage
19
19
  description: |-
20
- Celigo Storage is managed file storage built into integrator.io for staging files between flows and giving integrations persistent files to work with. Organize content into files and folders, transfer bytes directly through short-lived presigned S3 URLs, and reference stored files from flows. Items are addressed by `_id` and placed by parent folder; renames and moves keep the `_id` stable, and deletes go to a 30-day recycle bin before they can be purged.
20
+ Celigo Storage is managed file storage built into integrator.io for staging files between flows and giving integrations persistent files to work with. Organize content into files and folders, transfer bytes directly through short-lived presigned S3 URLs, and reference stored files from flows. Items are addressed by `_id` and placed by parent folder, where names are unique among live items; renames and moves keep the `_id` stable, and deletes go to a 30-day recycle bin before they can be purged.
21
21
 
22
22
  ## Storage item schema
23
23
 
@@ -32,11 +32,17 @@ paths:
32
32
  pending item, and returns presigned S3 URLs to transfer the bytes to:
33
33
  a single PUT URL for files up to 5 GB, or a multipart `uploadId`,
34
34
  `partUrls`, and `completeUrl` for larger files. Upload the bytes directly
35
- to those URLs, then the item flips to active once S3 confirms it — no
36
- further API call is needed. URLs expire after one hour; reissue them with
37
- `POST /v1/storage/files/refresh-urls`. Each file is validated
38
- independently, so the response can mix per-file successes and failures
39
- while the request itself returns 200.
35
+ to those URLs — a single PUT must carry the
36
+ `x-amz-server-side-encryption: AES256` header — then the item flips to
37
+ active once S3 confirms it; no further API call is needed. Each URL's
38
+ lifetime is in its `X-Amz-Expires` parameter; once every part already
39
+ issued has been uploaded, a multipart upload fetches further part URLs by
40
+ posting again with the item's `_id`, `uploadId`, and `issuedPartsCount`,
41
+ while an expired single PUT URL cannot be reissued.
42
+ Each file is validated independently, so the response can mix per-file
43
+ successes and failures while the request itself returns 200 — a name
44
+ already held by a live item in the target folder fails that entry with
45
+ 409 `STORAGE_ITEM_ALREADY_EXISTS`.
40
46
  operationId: initiateStorageUpload
41
47
  tags:
42
48
  - File Storage
@@ -84,7 +90,7 @@ paths:
84
90
  $ref: '#/components/schemas/InitiateUploadResponse'
85
91
  examples:
86
92
  mixed:
87
- summary: Single success, multipart success, and a rejection
93
+ summary: Single success, multipart success, and two rejections
88
94
  value:
89
95
  files:
90
96
  - _id: 683b2a0e1c3d5f001a9e8b01
@@ -110,70 +116,11 @@ paths:
110
116
  errors:
111
117
  - code: STORAGE_INVALID_MIME_TYPE
112
118
  message: Invalid MIME type
113
- '400':
114
- $ref: '#/components/responses/400-bad-request'
115
- '401':
116
- $ref: '#/components/responses/401-unauthorized'
117
- '403':
118
- $ref: '#/components/responses/403-forbidden'
119
- '404':
120
- $ref: '#/components/responses/404-not-found'
121
- '422':
122
- $ref: '#/components/responses/422-unprocessable-entity'
123
- /v1/storage/files/refresh-urls:
124
- post:
125
- x-internal: false
126
- summary: Refresh upload URLs
127
- description: |-
128
- Reissues presigned upload URLs for pending uploads whose URLs have
129
- expired (URLs last one hour). For a single PUT, returns a fresh upload
130
- URL; for multipart, returns fresh URLs for the requested part numbers plus
131
- the complete URL. Already-uploaded parts are preserved. Each item is
132
- processed independently.
133
- operationId: refreshStorageUploadUrls
134
- tags:
135
- - File Storage
136
- requestBody:
137
- required: true
138
- content:
139
- application/json:
140
- schema:
141
- $ref: '#/components/schemas/RefreshUrlsRequest'
142
- examples:
143
- mixed:
144
- summary: Refresh a single PUT and a multipart batch
145
- value:
146
- items:
147
- - _id: 683b2a0e1c3d5f001a9e8b01
148
- uploadType: single
149
- - _id: 683b2a0e1c3d5f001a9e8b03
150
- uploadType: multipart
151
- uploadId: abcD12efGHIjklMN3opQrst
152
- partNumbers:
153
- - 3
154
- - 4
155
- - 5
156
- responses:
157
- '200':
158
- description: Per-item refreshed upload instructions.
159
- content:
160
- application/json:
161
- schema:
162
- $ref: '#/components/schemas/RefreshUrlsResponse'
163
- examples:
164
- default:
165
- value:
166
- items:
167
- - _id: 683b2a0e1c3d5f001a9e8b03
168
- name: database-export.sql
169
- statusCode: 200
170
- body:
171
- uploadType: multipart
172
- uploadId: abcD12efGHIjklMN3opQrst
173
- partUrls:
174
- - partNumber: 3
175
- url: https://integrator-file-storage.s3.us-west-2.amazonaws.com/fresh-part-3
176
- completeUrl: https://integrator-file-storage.s3.us-west-2.amazonaws.com/fresh-complete
119
+ - name: orders.csv
120
+ statusCode: 409
121
+ errors:
122
+ - code: STORAGE_ITEM_ALREADY_EXISTS
123
+ message: An item named "orders.csv" already exists in this folder
177
124
  '400':
178
125
  $ref: '#/components/responses/400-bad-request'
179
126
  '401':
@@ -209,8 +156,29 @@ paths:
209
156
  examples:
210
157
  - 683b2a0e1c3d5f001a9e8b03
211
158
  responses:
212
- '204':
213
- description: Multipart upload aborted and the pending item removed.
159
+ '200':
160
+ description: |-
161
+ Multipart upload aborted and the pending item removed. Returns the
162
+ removed item's `_id` and `name`; canceling it again answers 404
163
+ `STORAGE_ITEM_NOT_FOUND`.
164
+ content:
165
+ application/json:
166
+ schema:
167
+ type: object
168
+ required:
169
+ - _id
170
+ - name
171
+ properties:
172
+ _id:
173
+ type: string
174
+ format: objectId
175
+ description: ID of the canceled item.
176
+ name:
177
+ type: string
178
+ description: Name of the canceled item.
179
+ example:
180
+ _id: 683b2a0e1c3d5f001a9e8b03
181
+ name: database-export.sql
214
182
  '401':
215
183
  $ref: '#/components/responses/401-unauthorized'
216
184
  '404':
@@ -275,6 +243,115 @@ paths:
275
243
  $ref: '#/components/responses/404-not-found'
276
244
  '422':
277
245
  $ref: '#/components/responses/422-unprocessable-entity'
246
+ /v1/storage/folders/{_id}/download:
247
+ get:
248
+ x-internal: false
249
+ summary: Get a folder download URL
250
+ description: |-
251
+ Packages a folder and everything beneath it into a zip and returns a
252
+ short-lived presigned S3 URL to fetch it from — the content does not pass
253
+ through this API. The zip is built synchronously before the response, so
254
+ large trees take longer to answer; entries are rooted at the folder's own
255
+ name and every subfolder is written as a directory entry, so empty
256
+ subfolders survive extraction. Pending (not yet finalized) files are
257
+ skipped. Re-downloading the same folder overwrites its previously staged
258
+ zip rather than piling up copies. Folders only; download a single file
259
+ with `GET /v1/storage/files/{_id}/download`.
260
+ operationId: getStorageFolderDownloadUrl
261
+ tags:
262
+ - File Storage
263
+ parameters:
264
+ - name: _id
265
+ in: path
266
+ required: true
267
+ description: ID of the folder to download.
268
+ schema:
269
+ type: string
270
+ format: objectId
271
+ x-celigo-refModel: storageitems
272
+ examples:
273
+ - 684c3b1f2d4e6a002b0f9c34
274
+ responses:
275
+ '200':
276
+ description: A presigned download URL for the zip, its lifetime, and what it contains.
277
+ content:
278
+ application/json:
279
+ schema:
280
+ type: object
281
+ required:
282
+ - downloadUrl
283
+ - expiresIn
284
+ - name
285
+ - fileCount
286
+ - size
287
+ properties:
288
+ downloadUrl:
289
+ type: string
290
+ format: uri
291
+ description: |-
292
+ Presigned S3 URL to GET the zip from. Serves the archive with
293
+ a `Content-Disposition: attachment` header carrying `name`.
294
+ examples:
295
+ - https://integrator-file-storage.s3.us-west-2.amazonaws.com/file-storage/.../folder-downloads/684c3b1f2d4e6a002b0f9c34.zip?X-Amz-Expires=3600&...
296
+ expiresIn:
297
+ type: integer
298
+ description: Seconds the URL stays valid from the time of this response.
299
+ examples:
300
+ - 3600
301
+ name:
302
+ type: string
303
+ description: |-
304
+ File name of the zip — the folder's name with characters that
305
+ are illegal in file names replaced by `_`, plus `.zip`.
306
+ examples:
307
+ - Reports.zip
308
+ fileCount:
309
+ type: integer
310
+ description: Number of files packaged into the zip. Folders are not counted.
311
+ examples:
312
+ - 3
313
+ size:
314
+ type: integer
315
+ format: int64
316
+ description: Total uncompressed size in bytes of the packaged files.
317
+ examples:
318
+ - 51
319
+ examples:
320
+ default:
321
+ value:
322
+ downloadUrl: https://integrator-file-storage.s3.us-west-2.amazonaws.com/file-storage/624cb0346309dc3a543733a2/folder-downloads/684c3b1f2d4e6a002b0f9c34.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3D%22Reports.zip%22&X-Amz-Signature=REDACTED
323
+ expiresIn: 3600
324
+ name: Reports.zip
325
+ fileCount: 3
326
+ size: 51
327
+ '401':
328
+ $ref: '#/components/responses/401-unauthorized'
329
+ '403':
330
+ $ref: '#/components/responses/403-forbidden'
331
+ '404':
332
+ description: No folder or file with this ID exists in the environment. Error code `STORAGE_ITEM_NOT_FOUND`.
333
+ content:
334
+ application/json:
335
+ schema:
336
+ $ref: '#/components/schemas/Error'
337
+ examples:
338
+ notFound:
339
+ value:
340
+ errors:
341
+ - code: STORAGE_ITEM_NOT_FOUND
342
+ message: Storage item not found
343
+ '422':
344
+ description: The ID belongs to a file, not a folder. Error code `STORAGE_NOT_A_FOLDER`.
345
+ content:
346
+ application/json:
347
+ schema:
348
+ $ref: '#/components/schemas/Error'
349
+ examples:
350
+ notAFolder:
351
+ value:
352
+ errors:
353
+ - code: STORAGE_NOT_A_FOLDER
354
+ message: Storage item "orders.csv" is not a folder
278
355
  /v1/storage/items:
279
356
  get:
280
357
  x-internal: false
@@ -295,7 +372,9 @@ paths:
295
372
  required: false
296
373
  description: |-
297
374
  Folder whose direct children to list. Omit for the account root.
298
- Ignored in search mode.
375
+ Ignored in search mode. An id that names no item answers 404
376
+ `STORAGE_PARENT_NOT_FOUND`; a file's id answers 422
377
+ `STORAGE_PARENT_NOT_FOLDER`.
299
378
  schema:
300
379
  type: string
301
380
  format: objectId
@@ -306,15 +385,59 @@ paths:
306
385
  in: query
307
386
  required: false
308
387
  description: |-
309
- Recursive, case-insensitive substring match on item names across the
310
- whole account. Switches the endpoint to search mode, where
311
- `_parentId` is ignored and each item carries its `location`. Matches
312
- names only, not contents or descriptions.
388
+ Recursive, case-insensitive match on item names across the whole
389
+ account. Switches the endpoint to search mode, where `_parentId` is
390
+ ignored and each item carries its `location`. Matches names only, not
391
+ contents or descriptions; a query of several words matches names that
392
+ contain any of them. Cannot be combined with `name`, `prefix`, or
393
+ `_integrationId`.
313
394
  schema:
314
395
  type: string
315
396
  minLength: 2
316
397
  examples:
317
398
  - report
399
+ - name: name
400
+ in: query
401
+ required: false
402
+ description: |-
403
+ Return only items whose name equals one of the given values —
404
+ case-sensitive, exact match. Repeat the parameter for several names;
405
+ a comma inside a value is part of the name, not a separator. Cannot
406
+ be combined with `search` or `prefix`.
407
+ schema:
408
+ type: array
409
+ items:
410
+ type: string
411
+ maxLength: 256
412
+ examples:
413
+ - - orders.csv
414
+ - invoices.csv
415
+ - name: prefix
416
+ in: query
417
+ required: false
418
+ description: |-
419
+ Return only items whose name starts with this value (case-sensitive).
420
+ A single value — cannot be combined with `search` or `name`.
421
+ schema:
422
+ type: string
423
+ minLength: 1
424
+ maxLength: 256
425
+ examples:
426
+ - orders-2026-
427
+ - name: _integrationId
428
+ in: query
429
+ required: false
430
+ description: |-
431
+ Return only items that belong to this integration's system folder
432
+ tree. At the account root this yields the integration's root folder;
433
+ with `_parentId` set to a folder inside the tree it narrows that
434
+ folder's children. Cannot be combined with `search`.
435
+ schema:
436
+ type: string
437
+ format: objectId
438
+ x-celigo-refModel: integrations
439
+ examples:
440
+ - 6ab1e7ab38d7733b4594d0d2
318
441
  - name: type
319
442
  in: query
320
443
  required: false
@@ -332,11 +455,36 @@ paths:
332
455
  - name: mimeType
333
456
  in: query
334
457
  required: false
335
- description: Restrict results to files of a single media type.
458
+ description: |-
459
+ Return only files whose media type is one of the given values —
460
+ case-sensitive, exact match, so `image/*` is rejected. Pass several
461
+ values as a comma-separated list or by repeating the parameter; up to
462
+ 50 distinct values per request. Folders never match.
336
463
  schema:
337
- type: string
464
+ type: array
465
+ items:
466
+ type: string
467
+ maxItems: 50
468
+ examples:
469
+ - - text/csv
470
+ - image/png
471
+ - name: mimeType_nin
472
+ in: query
473
+ required: false
474
+ description: |-
475
+ Exclude files whose media type is one of the given values — the
476
+ "Other" filter. Same list syntax and 50-value cap as `mimeType`.
477
+ Folders carry no media type, so they are never excluded; add
478
+ `type=file` to drop them. Combined with `mimeType`, both conditions
479
+ apply.
480
+ schema:
481
+ type: array
482
+ items:
483
+ type: string
484
+ maxItems: 50
338
485
  examples:
339
- - image/png
486
+ - - text/csv
487
+ - application/pdf
340
488
  - name: sort_by
341
489
  in: query
342
490
  required: false
@@ -467,13 +615,24 @@ paths:
467
615
  value:
468
616
  items:
469
617
  - _id: 684c3b1f2d4e6g002b0h9c34
618
+ _userId: 624cb0346309dc3a543733a2
619
+ _parentId: 683a1f2e9b0c4d001e8f7a23
620
+ __ancestorIds:
621
+ - 683a1f2e9b0c4d001e8f7a23
622
+ _integrationId: null
470
623
  type: folder
471
624
  name: Reports
625
+ size: 0
472
626
  status: active
473
627
  isSystem: false
474
628
  createdAt: '2026-03-28T10:00:00.000Z'
475
629
  lastModified: '2026-03-28T14:30:00.000Z'
476
630
  - _id: 683b2a0e1c3d5f001a9e8b01
631
+ _userId: 624cb0346309dc3a543733a2
632
+ _parentId: 683a1f2e9b0c4d001e8f7a23
633
+ __ancestorIds:
634
+ - 683a1f2e9b0c4d001e8f7a23
635
+ _integrationId: null
477
636
  type: file
478
637
  name: logo.png
479
638
  size: 245760
@@ -485,11 +644,33 @@ paths:
485
644
  breadcrumb:
486
645
  - _id: 683a1f2e9b0c4d001e8f7a23
487
646
  name: My Files
647
+ integrationRoot:
648
+ summary: Account root listing showing an integration's system folder
649
+ value:
650
+ items:
651
+ - _id: 6ab1e7abaa3e7ed226ea3cc4
652
+ _userId: 624cb0346309dc3a543733a2
653
+ _parentId: null
654
+ __ancestorIds: []
655
+ _integrationId: 6ab1e7ab38d7733b4594d0d2
656
+ integrationName: Order to cash
657
+ type: folder
658
+ name: Order to cash
659
+ size: 0
660
+ status: active
661
+ isSystem: true
662
+ createdAt: '2026-09-10T08:12:41.000Z'
663
+ lastModified: '2026-09-10T08:12:41.000Z'
488
664
  searchMode:
489
665
  summary: Search by name
490
666
  value:
491
667
  items:
492
668
  - _id: 683b2a0e1c3d5f001a9e8b01
669
+ _userId: 624cb0346309dc3a543733a2
670
+ _parentId: 683a1f2e9b0c4d001e8f7a23
671
+ __ancestorIds:
672
+ - 683a1f2e9b0c4d001e8f7a23
673
+ _integrationId: null
493
674
  type: file
494
675
  name: logo.png
495
676
  size: 245760
@@ -508,16 +689,68 @@ paths:
508
689
  '403':
509
690
  $ref: '#/components/responses/403-forbidden'
510
691
  '404':
511
- $ref: '#/components/responses/404-not-found'
692
+ description: |-
693
+ `_parentId` names no item in the account. Error code:
694
+ `STORAGE_PARENT_NOT_FOUND`.
695
+ content:
696
+ application/json:
697
+ schema:
698
+ $ref: '#/components/schemas/Error'
699
+ examples:
700
+ parentNotFound:
701
+ value:
702
+ errors:
703
+ - code: STORAGE_PARENT_NOT_FOUND
704
+ message: Parent folder not found
512
705
  '422':
513
- $ref: '#/components/responses/422-unprocessable-entity'
706
+ description: |-
707
+ A filter is malformed or two filters that cannot be combined were
708
+ sent together (`STORAGE_INVALID_FILTER`), or `_parentId` is a file
709
+ rather than a folder (`STORAGE_PARENT_NOT_FOLDER`).
710
+ content:
711
+ application/json:
712
+ schema:
713
+ $ref: '#/components/schemas/Error'
714
+ examples:
715
+ parentNotFolder:
716
+ summary: _parentId is a file
717
+ value:
718
+ errors:
719
+ - code: STORAGE_PARENT_NOT_FOLDER
720
+ message: Parent must be a folder
721
+ invalidParentId:
722
+ summary: _parentId is not an ObjectId
723
+ value:
724
+ errors:
725
+ - code: STORAGE_INVALID_FILTER
726
+ message: _parentId must be a valid ObjectId
727
+ invalidMimeType:
728
+ summary: Media type is not a valid type/subtype pair
729
+ value:
730
+ errors:
731
+ - code: STORAGE_INVALID_FILTER
732
+ message: 'Invalid MIME type format in mimeType: image/*'
733
+ tooManyMimeTypes:
734
+ summary: More than 50 values in one media-type filter
735
+ value:
736
+ errors:
737
+ - code: STORAGE_INVALID_FILTER
738
+ message: mimeType must not exceed 50 entries
739
+ exclusiveFilters:
740
+ summary: prefix sent together with search
741
+ value:
742
+ errors:
743
+ - code: STORAGE_INVALID_FILTER
744
+ message: prefix and search are mutually exclusive
514
745
  post:
515
746
  x-internal: false
516
747
  summary: Create a folder
517
748
  description: |-
518
749
  Creates an empty folder. Folders are organizational only — they hold no
519
750
  content and do not count against storage quota. To create files, use
520
- `POST /v1/storage/files/initiateUpload`.
751
+ `POST /v1/storage/files/initiateUpload`. A name already held by a live
752
+ file or folder in the parent is rejected with 409
753
+ `STORAGE_ITEM_ALREADY_EXISTS`.
521
754
  operationId: createStorageFolder
522
755
  tags:
523
756
  - File Storage
@@ -549,8 +782,14 @@ paths:
549
782
  default:
550
783
  value:
551
784
  _id: 684c3b1f2d4e6g002b0h9c34
785
+ _userId: 624cb0346309dc3a543733a2
786
+ _parentId: 683a1f2e9b0c4d001e8f7a23
787
+ __ancestorIds:
788
+ - 683a1f2e9b0c4d001e8f7a23
789
+ _integrationId: null
552
790
  type: folder
553
791
  name: Reports
792
+ size: 0
554
793
  description: Quarterly financial reports
555
794
  status: active
556
795
  isSystem: false
@@ -564,6 +803,20 @@ paths:
564
803
  $ref: '#/components/responses/403-forbidden'
565
804
  '404':
566
805
  $ref: '#/components/responses/404-not-found'
806
+ '409':
807
+ description: |-
808
+ A live file or folder with this name already exists in the parent.
809
+ Error code: `STORAGE_ITEM_ALREADY_EXISTS`.
810
+ content:
811
+ application/json:
812
+ schema:
813
+ $ref: '#/components/schemas/Error'
814
+ examples:
815
+ nameTaken:
816
+ value:
817
+ errors:
818
+ - code: STORAGE_ITEM_ALREADY_EXISTS
819
+ message: An item named "Reports" already exists in this folder
567
820
  '422':
568
821
  $ref: '#/components/responses/422-unprocessable-entity'
569
822
  /v1/storage/items/batch:
@@ -855,7 +1108,8 @@ paths:
855
1108
  '207':
856
1109
  description: |-
857
1110
  Mixed results — at least one item failed to move. Inspect each
858
- entry's `status`.
1111
+ entry's `status`; a destination name collision reports
1112
+ `STORAGE_ITEM_ALREADY_EXISTS` on that entry while the others proceed.
859
1113
  content:
860
1114
  application/json:
861
1115
  schema:
@@ -874,6 +1128,10 @@ paths:
874
1128
  status: error
875
1129
  errorCode: STORAGE_MOVE_SAME_PARENT_DISALLOWED
876
1130
  message: The item is already in the destination folder
1131
+ - _id: 683b2a0e1c3d5f001a9e8b05
1132
+ status: error
1133
+ errorCode: STORAGE_ITEM_ALREADY_EXISTS
1134
+ message: An item named "Reports" already exists in this folder
877
1135
  '400':
878
1136
  description: |-
879
1137
  Malformed request — `_parentFolderId` key missing
@@ -973,6 +1231,10 @@ paths:
973
1231
  value:
974
1232
  items:
975
1233
  - _id: 683b2a0e1c3d5f001a9e8b01
1234
+ _userId: 60a1b2c3d4e5f6001a2b3c4d
1235
+ _parentId: null
1236
+ __ancestorIds: []
1237
+ _integrationId: null
976
1238
  type: file
977
1239
  name: old-report.pdf
978
1240
  size: 245760
@@ -984,8 +1246,13 @@ paths:
984
1246
  createdAt: '2026-03-01T09:00:00.000Z'
985
1247
  lastModified: '2026-03-28T10:00:00.000Z'
986
1248
  - _id: 684c3b1f2d4e6g002b0h9c34
1249
+ _userId: 60a1b2c3d4e5f6001a2b3c4d
1250
+ _parentId: null
1251
+ __ancestorIds: []
1252
+ _integrationId: null
987
1253
  type: folder
988
1254
  name: Archived Reports
1255
+ size: 0
989
1256
  status: active
990
1257
  isSystem: false
991
1258
  deletedBy: 60a1b2c3d4e5f6001a2b3c4d
@@ -1019,9 +1286,10 @@ paths:
1019
1286
  description: |-
1020
1287
  Updates an item's `name` and/or `description`. Renaming keeps the item's
1021
1288
  `_id` stable, so references from flows, exports, imports, and tokens
1022
- survive. To move an item to a different folder, use
1023
- `PATCH /v1/storage/items/{_id}/move`; to replace a file's content, use
1024
- `PATCH /v1/storage/items/{_id}/replace`.
1289
+ survive; a name already held by another live item in the same folder is
1290
+ rejected with 409 `STORAGE_ITEM_ALREADY_EXISTS`. To move an item to a
1291
+ different folder, use `PATCH /v1/storage/items/{_id}/move`; to replace a
1292
+ file's content, use `PATCH /v1/storage/items/{_id}/replace`.
1025
1293
  operationId: updateStorageItem
1026
1294
  tags:
1027
1295
  - File Storage
@@ -1059,6 +1327,11 @@ paths:
1059
1327
  default:
1060
1328
  value:
1061
1329
  _id: 683b2a0e1c3d5f001a9e8b01
1330
+ _userId: 624cb0346309dc3a543733a2
1331
+ _parentId: 683a1f2e9b0c4d001e8f7a23
1332
+ __ancestorIds:
1333
+ - 683a1f2e9b0c4d001e8f7a23
1334
+ _integrationId: null
1062
1335
  type: file
1063
1336
  name: quarterly-report-final.pdf
1064
1337
  description: Updated Q1 2026 financial report
@@ -1076,6 +1349,20 @@ paths:
1076
1349
  $ref: '#/components/responses/403-forbidden'
1077
1350
  '404':
1078
1351
  $ref: '#/components/responses/404-not-found'
1352
+ '409':
1353
+ description: |-
1354
+ Another live item in the same folder already has the requested
1355
+ `name` (`STORAGE_ITEM_ALREADY_EXISTS`). Nothing was changed.
1356
+ content:
1357
+ application/json:
1358
+ schema:
1359
+ $ref: '#/components/schemas/Error'
1360
+ examples:
1361
+ nameTaken:
1362
+ value:
1363
+ errors:
1364
+ - code: STORAGE_ITEM_ALREADY_EXISTS
1365
+ message: An item named "quarterly-report-final.pdf" already exists in this folder
1079
1366
  '422':
1080
1367
  $ref: '#/components/responses/422-unprocessable-entity'
1081
1368
  delete:
@@ -1086,11 +1373,16 @@ paths:
1086
1373
  for 30 days and can be restored with
1087
1374
  `POST /v1/storage/items/{_id}/restore`. Deleting a folder also removes
1088
1375
  its entire subtree; the folder is removed immediately and its descendants
1089
- follow asynchronously. Delete is never blocked by references — flows,
1376
+ follow asynchronously. Delete is not blocked by references — flows,
1090
1377
  exports, imports, and tokens that point at the item are left dangling and
1091
- fail at runtime, so check `GET /v1/storage/items/{_id}/dependencies`
1092
- first. A pending multipart upload cannot be deleted here — cancel it with
1093
- `POST /v1/storage/files/{_id}/cancel`.
1378
+ fail at runtime — with one exception: a folder that is, or contains, the
1379
+ home folder of a File Server account answers 403
1380
+ `STORAGE_SFTP_HOME_FOLDER_PROTECTED` until that account is deleted or moved
1381
+ to another folder (`/v1/mft/fileserver/accounts`). Renaming or moving such
1382
+ a folder is still allowed. A pending multipart upload cannot be deleted
1383
+ here — cancel it with `POST /v1/storage/files/{_id}/cancel`. A pending
1384
+ single PUT upload whose presigned URL is still live is refused with 403
1385
+ `STORAGE_PRESIGNED_URL_ACTIVE`; retry after the URL expires.
1094
1386
  operationId: deleteStorageItem
1095
1387
  tags:
1096
1388
  - File Storage
@@ -1113,7 +1405,30 @@ paths:
1113
1405
  '401':
1114
1406
  $ref: '#/components/responses/401-unauthorized'
1115
1407
  '403':
1116
- $ref: '#/components/responses/403-forbidden'
1408
+ description: |-
1409
+ The caller lacks permission for this item; the folder is (or
1410
+ contains) a File Server account's home folder
1411
+ (`STORAGE_SFTP_HOME_FOLDER_PROTECTED` — delete or move the account
1412
+ first); or the item is a pending single PUT upload whose presigned
1413
+ URL has not expired yet (`STORAGE_PRESIGNED_URL_ACTIVE` — the upload
1414
+ may still be in flight, so retry once the URL's lifetime has passed).
1415
+ content:
1416
+ application/json:
1417
+ schema:
1418
+ $ref: '#/components/schemas/Error'
1419
+ examples:
1420
+ sftpHomeFolder:
1421
+ summary: Folder is in use as an SFTP home folder
1422
+ value:
1423
+ errors:
1424
+ - code: STORAGE_SFTP_HOME_FOLDER_PROTECTED
1425
+ message: This folder cannot be deleted because it is in use as an SFTP home folder
1426
+ presignedUrlActive:
1427
+ summary: Pending single PUT upload with a live URL
1428
+ value:
1429
+ errors:
1430
+ - code: STORAGE_PRESIGNED_URL_ACTIVE
1431
+ message: Presigned upload URL is still active; retry after it expires
1117
1432
  '404':
1118
1433
  $ref: '#/components/responses/404-not-found'
1119
1434
  '422':
@@ -1371,7 +1686,10 @@ paths:
1371
1686
  quota is unaffected. Moving a folder re-parents the folder immediately and
1372
1687
  re-anchors its descendants asynchronously, so the response reflects only
1373
1688
  the moved item itself. A folder cannot be moved into itself or one of its
1374
- own descendants.
1689
+ own descendants. A destination that already holds a live item with the
1690
+ same name rejects the move with 409 `STORAGE_ITEM_ALREADY_EXISTS` — send
1691
+ `name` to land beside it, or fold a folder into its namesake with
1692
+ `POST /v1/storage/items/{_id}/merge`.
1375
1693
  operationId: moveStorageItem
1376
1694
  tags:
1377
1695
  - File Storage
@@ -1401,6 +1719,11 @@ paths:
1401
1719
  summary: Move to the account root
1402
1720
  value:
1403
1721
  _parentId: null
1722
+ renameOnMove:
1723
+ summary: Move into a folder and rename to avoid a collision
1724
+ value:
1725
+ _parentId: 684c3b1f2d4e6g002b0h9c34
1726
+ name: inv-001 (1).pdf
1404
1727
  responses:
1405
1728
  '200':
1406
1729
  description: |-
@@ -1438,6 +1761,23 @@ paths:
1438
1761
  x-celigo-refModel: storageitems
1439
1762
  examples:
1440
1763
  - - 684c3b1f2d4e6g002b0h9c34
1764
+ _integrationId:
1765
+ type:
1766
+ - string
1767
+ - 'null'
1768
+ format: objectId
1769
+ x-celigo-refModel: integrations
1770
+ description: |-
1771
+ The item's integration after the move — the destination's
1772
+ integration when it landed inside an integration's system
1773
+ folder tree, null when it landed outside one.
1774
+ examples:
1775
+ - 6ab1e7ab38d7733b4594d0d2
1776
+ name:
1777
+ type: string
1778
+ description: Name of the moved item.
1779
+ examples:
1780
+ - inv-001.pdf
1441
1781
  examples:
1442
1782
  default:
1443
1783
  value:
@@ -1445,6 +1785,8 @@ paths:
1445
1785
  _parentId: 684c3b1f2d4e6g002b0h9c34
1446
1786
  __ancestorIds:
1447
1787
  - 684c3b1f2d4e6g002b0h9c34
1788
+ _integrationId: null
1789
+ name: inv-001.pdf
1448
1790
  '400':
1449
1791
  $ref: '#/components/responses/400-bad-request'
1450
1792
  '401':
@@ -1453,6 +1795,21 @@ paths:
1453
1795
  $ref: '#/components/responses/403-forbidden'
1454
1796
  '404':
1455
1797
  $ref: '#/components/responses/404-not-found'
1798
+ '409':
1799
+ description: |-
1800
+ The destination already holds a live item with the moved item's
1801
+ name — or with the `name` sent (`STORAGE_ITEM_ALREADY_EXISTS`).
1802
+ Nothing was moved.
1803
+ content:
1804
+ application/json:
1805
+ schema:
1806
+ $ref: '#/components/schemas/Error'
1807
+ examples:
1808
+ nameTaken:
1809
+ value:
1810
+ errors:
1811
+ - code: STORAGE_ITEM_ALREADY_EXISTS
1812
+ message: An item named "inv-001.pdf" already exists in this folder
1456
1813
  '422':
1457
1814
  $ref: '#/components/responses/422-unprocessable-entity'
1458
1815
  /v1/storage/items/{_id}/copy:
@@ -1460,11 +1817,12 @@ paths:
1460
1817
  x-internal: false
1461
1818
  summary: Copy a file
1462
1819
  description: |-
1463
- Creates an independent copy of a file in a destination folder, with a new
1464
- `_id` and its own copy of the content. Consumes quota equal to the source
1465
- file's size. Files only — folder copy is not supported. Names are not
1466
- deduplicated, so copying into the source's own folder without a new name
1467
- produces a second file with the same name.
1820
+ Creates an independent copy of a file in the folder named by `_parentId`,
1821
+ with a new `_id` and its own copy of the content. Consumes quota equal to
1822
+ the source file's size. Files only — folder copy is not supported.
1823
+ Without `name` the copy is called `Clone - ` followed by the source
1824
+ file's name; a name already held by a live item in the destination is
1825
+ rejected with 409 `STORAGE_ITEM_ALREADY_EXISTS`.
1468
1826
  operationId: copyStorageFile
1469
1827
  tags:
1470
1828
  - File Storage
@@ -1489,12 +1847,12 @@ paths:
1489
1847
  rename:
1490
1848
  summary: Copy into a folder with a new name
1491
1849
  value:
1492
- _destinationId: 684c3b1f2d4e6g002b0h9c34
1850
+ _parentId: 684c3b1f2d4e6g002b0h9c34
1493
1851
  name: quarterly-report-copy.pdf
1494
1852
  toRoot:
1495
- summary: Copy to the account root, keeping the name
1853
+ summary: Copy to the account root as "Clone - <source name>"
1496
1854
  value:
1497
- _destinationId: null
1855
+ _parentId: null
1498
1856
  responses:
1499
1857
  '201':
1500
1858
  description: The newly created copy.
@@ -1506,9 +1864,13 @@ paths:
1506
1864
  default:
1507
1865
  value:
1508
1866
  _id: 685d4c2g3e5f7h003c1i0d45
1867
+ _userId: 624cb0346309dc3a543733a2
1868
+ _parentId: 684c3b1f2d4e6g002b0h9c34
1869
+ __ancestorIds:
1870
+ - 684c3b1f2d4e6g002b0h9c34
1871
+ _integrationId: null
1509
1872
  type: file
1510
1873
  name: quarterly-report-copy.pdf
1511
- _parentId: 684c3b1f2d4e6g002b0h9c34
1512
1874
  size: 5242880
1513
1875
  mimeType: application/pdf
1514
1876
  description: Q1 2026 financial report
@@ -1524,6 +1886,20 @@ paths:
1524
1886
  $ref: '#/components/responses/403-forbidden'
1525
1887
  '404':
1526
1888
  $ref: '#/components/responses/404-not-found'
1889
+ '409':
1890
+ description: |-
1891
+ A live item with the copy's name already exists in the destination
1892
+ (`STORAGE_ITEM_ALREADY_EXISTS`). Retry with a different `name`.
1893
+ content:
1894
+ application/json:
1895
+ schema:
1896
+ $ref: '#/components/schemas/Error'
1897
+ examples:
1898
+ nameTaken:
1899
+ value:
1900
+ errors:
1901
+ - code: STORAGE_ITEM_ALREADY_EXISTS
1902
+ message: An item named "Clone - quarterly-report.pdf" already exists in this folder
1527
1903
  '422':
1528
1904
  $ref: '#/components/responses/422-unprocessable-entity'
1529
1905
  /v1/storage/items/{_id}/restore:
@@ -1536,7 +1912,9 @@ paths:
1536
1912
  removed with it; the folder comes back immediately and its descendants
1537
1913
  follow asynchronously. Only items deleted directly can be restored — a
1538
1914
  descendant removed by its parent's deletion comes back only when that
1539
- parent folder is restored.
1915
+ parent folder is restored. If a live item has taken the name in the
1916
+ original folder since the delete, the restore is rejected with 409
1917
+ `STORAGE_ITEM_ALREADY_EXISTS`; send `name` to restore under a new one.
1540
1918
  operationId: restoreStorageItem
1541
1919
  tags:
1542
1920
  - File Storage
@@ -1551,17 +1929,67 @@ paths:
1551
1929
  x-celigo-refModel: storageitems
1552
1930
  examples:
1553
1931
  - 683b2a0e1c3d5f001a9e8b01
1932
+ requestBody:
1933
+ required: false
1934
+ content:
1935
+ application/json:
1936
+ schema:
1937
+ $ref: '#/components/schemas/RestoreRequest'
1938
+ examples:
1939
+ keepName:
1940
+ summary: Restore under the original name
1941
+ value: {}
1942
+ rename:
1943
+ summary: Restore under a new name because the original is taken
1944
+ value:
1945
+ name: inv-001 (restored).pdf
1554
1946
  responses:
1555
- '204':
1947
+ '200':
1556
1948
  description: |-
1557
- Item restored. For a folder, the root is restored and its descendants
1558
- follow asynchronously.
1949
+ The restored item. For a folder, the root is restored and its
1950
+ descendants follow asynchronously.
1951
+ content:
1952
+ application/json:
1953
+ schema:
1954
+ $ref: '#/components/schemas/StorageItem'
1955
+ examples:
1956
+ default:
1957
+ value:
1958
+ _id: 683b2a0e1c3d5f001a9e8b01
1959
+ _userId: 624cb0346309dc3a543733a2
1960
+ _parentId: 683a1f2e9b0c4d001e8f7a23
1961
+ __ancestorIds:
1962
+ - 683a1f2e9b0c4d001e8f7a23
1963
+ _integrationId: null
1964
+ type: file
1965
+ name: inv-001 (restored).pdf
1966
+ size: 245760
1967
+ mimeType: application/pdf
1968
+ status: active
1969
+ isSystem: false
1970
+ createdAt: '2026-03-28T10:00:00.000Z'
1971
+ lastModified: '2026-04-28T09:15:00.000Z'
1559
1972
  '401':
1560
1973
  $ref: '#/components/responses/401-unauthorized'
1561
1974
  '403':
1562
1975
  $ref: '#/components/responses/403-forbidden'
1563
1976
  '404':
1564
1977
  $ref: '#/components/responses/404-not-found'
1978
+ '409':
1979
+ description: |-
1980
+ A live item in the original folder already has the item's name — or
1981
+ the `name` sent (`STORAGE_ITEM_ALREADY_EXISTS`). The item stays in
1982
+ the recycle bin.
1983
+ content:
1984
+ application/json:
1985
+ schema:
1986
+ $ref: '#/components/schemas/Error'
1987
+ examples:
1988
+ nameTaken:
1989
+ value:
1990
+ errors:
1991
+ - code: STORAGE_ITEM_ALREADY_EXISTS
1992
+ message: An item named "inv-001.pdf" already exists in this folder
1565
1993
  '422':
1566
1994
  $ref: '#/components/responses/422-unprocessable-entity'
1567
1995
  /v1/storage/items/{_id}/purge:
@@ -1602,169 +2030,156 @@ paths:
1602
2030
  $ref: '#/components/responses/404-not-found'
1603
2031
  '422':
1604
2032
  $ref: '#/components/responses/422-unprocessable-entity'
1605
- /v1/storage/items/{_id}/dependencies:
2033
+ /v1/files/{_id}/audit:
1606
2034
  get:
1607
2035
  x-internal: false
1608
- operationId: listStorageItemDependencies
2036
+ summary: Get audit log for a file
2037
+ description: |-
2038
+ Returns the change history for a file — creation (recorded once the
2039
+ upload finalizes), renames and description edits, moves, content
2040
+ replacements, downloads, deletes, restores, and purges — newest first.
2041
+ Each entry records who made the change, when, and which fields were
2042
+ affected. History survives purging, so a purged file's entries stay
2043
+ readable. Folders have their own route, `GET /v1/folders/{_id}/audit`.
1609
2044
  tags:
1610
2045
  - File Storage
1611
- summary: List dependencies of an item
1612
- description: |-
1613
- Returns the resources that reference this item — flows, exports, imports,
1614
- MCP servers, and access tokens. These references are soft: they never
1615
- block a delete or move, and go dangling if the item is removed. Check this
1616
- before deleting or moving an item to see what may break.
2046
+ operationId: getStorageFileAudit
1617
2047
  parameters:
1618
2048
  - name: _id
1619
2049
  in: path
2050
+ description: File ID.
1620
2051
  required: true
1621
- description: Item ID.
1622
2052
  schema:
1623
2053
  type: string
1624
2054
  format: objectId
1625
2055
  x-celigo-refModel: storageitems
1626
2056
  examples:
1627
2057
  - 683b2a0e1c3d5f001a9e8b01
2058
+ - $ref: '#/components/parameters/Limit'
2059
+ - $ref: '#/components/parameters/After'
2060
+ - $ref: '#/components/parameters/From'
2061
+ - $ref: '#/components/parameters/To'
2062
+ - $ref: '#/components/parameters/Action'
2063
+ - $ref: '#/components/parameters/Source'
2064
+ - $ref: '#/components/parameters/ByUserId'
1628
2065
  responses:
1629
2066
  '200':
1630
- description: |-
1631
- Dependency map. Keys are resource-type strings; values are arrays of
1632
- dependency entries. Returns `{}` when nothing references the item.
2067
+ description: Array of audit entries, newest first.
2068
+ headers:
2069
+ Link:
2070
+ description: |-
2071
+ RFC 5988 pagination link. Includes `<...>; rel="next"` with an
2072
+ `after` cursor when more entries exist; absent on the final page.
2073
+ schema:
2074
+ type: string
1633
2075
  content:
1634
2076
  application/json:
1635
2077
  schema:
1636
- $ref: '#/components/schemas/DependencyResponse'
2078
+ type: array
2079
+ items:
2080
+ $ref: '#/components/schemas/StorageAuditEntry'
2081
+ examples:
2082
+ default:
2083
+ summary: A file that was renamed after upload
2084
+ value:
2085
+ - _id: 69f63dd77009ea11abf0bce3
2086
+ resourceType: file
2087
+ _resourceId: 683b2a0e1c3d5f001a9e8b01
2088
+ source: api
2089
+ event: update
2090
+ time: '2026-05-02T18:09:26.975Z'
2091
+ byUser:
2092
+ _id: 624cb0346309dc3a543733a2
2093
+ email: user@example.com
2094
+ name: Jane Doe
2095
+ fieldChanges:
2096
+ - fieldPath: name
2097
+ oldValue: report.pdf
2098
+ newValue: quarterly-report.pdf
2099
+ - _id: 6ab1f69bf9f97c6e8f353b3c
2100
+ resourceType: file
2101
+ _resourceId: 683b2a0e1c3d5f001a9e8b01
2102
+ source: ui
2103
+ event: create
2104
+ time: '2026-05-02T17:58:39.755Z'
2105
+ fieldChanges: []
2106
+ byUser:
2107
+ _id: 624cb0346309dc3a543733a2
2108
+ email: user@example.com
2109
+ name: Jane Doe
2110
+ '204':
2111
+ description: No audit entries exist for this file ID.
2112
+ '400':
2113
+ description: The `_id` is not a valid ObjectId (`invalid_ref`), or `limit` is out of range (`invalid_query_param`).
2114
+ content:
2115
+ application/json:
2116
+ schema:
2117
+ $ref: '#/components/schemas/Error'
1637
2118
  examples:
1638
- withDependents:
1639
- summary: Item referenced by a flow
2119
+ invalidId:
1640
2120
  value:
1641
- flows:
1642
- - id: 673e486ac12b3453ea0ba99a
1643
- name: Nightly export
1644
- paths:
1645
- - pageGenerators[*]._exportId
1646
- accessLevel: manage
1647
- dependencyIds:
1648
- export:
1649
- - 673e486adc497ab5e649f1ca
1650
- empty:
1651
- summary: No dependents
1652
- value: {}
2121
+ errors:
2122
+ - code: invalid_ref
2123
+ message: Please provide a valid _id.
2124
+ invalidLimit:
2125
+ value:
2126
+ errors:
2127
+ - code: invalid_query_param
2128
+ message: Invalid limit sent in request.
1653
2129
  '401':
1654
2130
  $ref: '#/components/responses/401-unauthorized'
1655
- '404':
1656
- $ref: '#/components/responses/404-not-found'
1657
- /v1/storageitems/{_id}/audit:
2131
+ '422':
2132
+ description: |-
2133
+ A filter value is invalid — an unknown `action` or `source`
2134
+ (`invalid_audit_field`), a `from`/`to` that is not ISO 8601
2135
+ (`invalid_timestamp_format`), or a window outside the last three
2136
+ years or in the future (`invalid_time_period`).
2137
+ content:
2138
+ application/json:
2139
+ schema:
2140
+ $ref: '#/components/schemas/Error'
2141
+ examples:
2142
+ invalidSource:
2143
+ value:
2144
+ errors:
2145
+ - code: invalid_audit_field
2146
+ message: bogus is not a valid audit source.
2147
+ invalidTimePeriod:
2148
+ value:
2149
+ errors:
2150
+ - code: invalid_time_period
2151
+ message: 'Please make sure that the time provided for field: "to" is not older than 3 year(s) to current date and is not a future date.'
2152
+ /v1/folders/{_id}/audit:
1658
2153
  get:
1659
2154
  x-internal: false
1660
- summary: Get audit log for an item
2155
+ summary: Get audit log for a folder
1661
2156
  description: |-
1662
- Returns the change history for a storage item — creation, renames and
1663
- description edits, moves, content replacements, downloads, deletes,
1664
- restores, and purges — newest first. Each entry records who made the
1665
- change, when, and which fields were affected.
2157
+ Returns the change history for a folder — creation, renames and
2158
+ description edits, moves, deletes, restores, and purges — newest first.
2159
+ Each entry records who made the change, when, and which fields were
2160
+ affected. History survives purging, so a purged folder's entries stay
2161
+ readable. Files have their own route, `GET /v1/files/{_id}/audit`.
1666
2162
  tags:
1667
2163
  - File Storage
1668
- operationId: getStorageItemAudit
2164
+ operationId: getStorageFolderAudit
1669
2165
  parameters:
1670
2166
  - name: _id
1671
2167
  in: path
1672
- description: Item ID.
2168
+ description: Folder ID.
1673
2169
  required: true
1674
2170
  schema:
1675
2171
  type: string
1676
2172
  format: objectId
1677
2173
  x-celigo-refModel: storageitems
1678
2174
  examples:
1679
- - 683b2a0e1c3d5f001a9e8b01
1680
- - name: limit
1681
- in: query
1682
- description: Maximum number of audit entries to return per page.
1683
- required: false
1684
- schema:
1685
- type: integer
1686
- minimum: 1
1687
- maximum: 1000
1688
- default: 1000
1689
- examples:
1690
- - 100
1691
- - name: after
1692
- in: query
1693
- required: false
1694
- description: |-
1695
- Opaque pagination cursor for the next page. Take it from the `after`
1696
- value in the `Link` response header's `rel="next"` URL rather than
1697
- constructing it.
1698
- schema:
1699
- type: string
1700
- examples:
1701
- - W3siJGRhdGUiOiIyMDI2LTA1LTAxVDAwOjAwOjAwLjAwMFoifSwiNjAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwIl0
1702
- - name: from
1703
- in: query
1704
- required: false
1705
- description: Only return entries at or after this timestamp.
1706
- schema:
1707
- type: string
1708
- format: date-time
1709
- examples:
1710
- - '2026-05-01T00:00:00.000Z'
1711
- - name: to
1712
- in: query
1713
- required: false
1714
- description: Only return entries at or before this timestamp.
1715
- schema:
1716
- type: string
1717
- format: date-time
1718
- examples:
1719
- - '2026-05-31T23:59:59.999Z'
1720
- - name: action
1721
- in: query
1722
- required: false
1723
- description: Filter by the change type. Maps to the `event` field on each entry.
1724
- schema:
1725
- type: string
1726
- enum:
1727
- - create
1728
- - update
1729
- - delete
1730
- - download
1731
- - restore
1732
- - purge
1733
- examples:
1734
- - update
1735
- x-enumDescriptions:
1736
- create: An item was created.
1737
- update: An item was renamed, re-described, moved, or had its content replaced.
1738
- delete: An item was soft-deleted to the recycle bin.
1739
- download: A presigned download URL was issued for a file.
1740
- restore: An item was restored from the recycle bin.
1741
- purge: An item was permanently purged from the recycle bin.
1742
- - name: source
1743
- in: query
1744
- required: false
1745
- description: Filter by how the change was initiated.
1746
- schema:
1747
- type: string
1748
- enum:
1749
- - ui
1750
- - api
1751
- - system
1752
- examples:
1753
- - ui
1754
- x-enumDescriptions:
1755
- ui: Change made through the Celigo web UI.
1756
- api: Change made via the REST API.
1757
- system: Change made automatically by the platform.
1758
- - name: _byUserId
1759
- in: query
1760
- required: false
1761
- description: Filter to changes performed by a single user.
1762
- schema:
1763
- type: string
1764
- format: objectId
1765
- x-celigo-refModel: users
1766
- examples:
1767
- - 624cb0346309dc3a543733a2
2175
+ - 684c3b1f2d4e6a002b0f9c34
2176
+ - $ref: '#/components/parameters/Limit'
2177
+ - $ref: '#/components/parameters/After'
2178
+ - $ref: '#/components/parameters/From'
2179
+ - $ref: '#/components/parameters/To'
2180
+ - $ref: '#/components/parameters/Action'
2181
+ - $ref: '#/components/parameters/Source'
2182
+ - $ref: '#/components/parameters/ByUserId'
1768
2183
  responses:
1769
2184
  '200':
1770
2185
  description: Array of audit entries, newest first.
@@ -1780,133 +2195,77 @@ paths:
1780
2195
  schema:
1781
2196
  type: array
1782
2197
  items:
1783
- type: object
1784
- properties:
1785
- _id:
1786
- type: string
1787
- format: objectId
1788
- description: Unique identifier for this audit entry.
1789
- examples:
1790
- - 69f63dd77009ea11abf0bce3
1791
- resourceType:
1792
- type: string
1793
- description: Always `storageitem` for this endpoint.
1794
- examples:
1795
- - storageitem
1796
- _resourceId:
1797
- type: string
1798
- format: objectId
1799
- x-celigo-refModel: storageitems
1800
- description: ID of the item this entry belongs to.
1801
- examples:
1802
- - 683b2a0e1c3d5f001a9e8b01
1803
- event:
1804
- type: string
1805
- description: Type of change that occurred.
1806
- enum:
1807
- - create
1808
- - update
1809
- - delete
1810
- - download
1811
- - restore
1812
- - purge
1813
- x-enumDescriptions:
1814
- create: Item was created.
1815
- update: Item was renamed, re-described, moved, or had its content replaced.
1816
- delete: Item was soft-deleted to the recycle bin.
1817
- download: A presigned download URL was issued for the file.
1818
- restore: Item was restored from the recycle bin.
1819
- purge: Item was permanently purged.
1820
- source:
1821
- type: string
1822
- description: How the change was initiated.
1823
- enum:
1824
- - api
1825
- - ui
1826
- - system
1827
- x-enumDescriptions:
1828
- api: Change made via the REST API.
1829
- ui: Change made through the Celigo UI.
1830
- system: Change made by an automated platform process.
1831
- time:
1832
- type: string
1833
- format: date-time
1834
- description: When the change occurred.
1835
- examples:
1836
- - '2026-05-02T18:09:26.975Z'
1837
- byUser:
1838
- type: object
1839
- description: User who made the change.
1840
- properties:
1841
- _id:
1842
- type: string
1843
- format: objectId
1844
- x-celigo-refModel: users
1845
- description: User ID.
1846
- examples:
1847
- - 624cb0346309dc3a543733a2
1848
- email:
1849
- type: string
1850
- format: email
1851
- description: User email address.
1852
- examples:
1853
- - user@example.com
1854
- name:
1855
- type: string
1856
- description: User display name.
1857
- examples:
1858
- - Tyler Lamparter
1859
- fieldChanges:
1860
- type: array
1861
- description: Fields that were modified.
1862
- items:
1863
- type: object
1864
- properties:
1865
- fieldPath:
1866
- type: string
1867
- description: Dot-notation path of the changed field.
1868
- examples:
1869
- - name
1870
- oldValue:
1871
- description: Previous value (absent on create).
1872
- newValue:
1873
- description: New value (absent on delete).
1874
- deletedInfo:
1875
- type: object
1876
- description: Metadata about the deleted item. Present on `delete` events.
1877
- properties:
1878
- name:
1879
- type: string
1880
- description: Name of the item at the time of deletion.
1881
- examples:
1882
- - old-report.pdf
2198
+ $ref: '#/components/schemas/StorageAuditEntry'
1883
2199
  examples:
1884
2200
  default:
2201
+ summary: A folder that was created and later deleted
1885
2202
  value:
1886
- - _id: 69f63dd77009ea11abf0bce3
1887
- resourceType: storageitem
1888
- _resourceId: 683b2a0e1c3d5f001a9e8b01
2203
+ - _id: 6ab1f736f9f97c6e8f353b5a
2204
+ resourceType: folder
2205
+ _resourceId: 684c3b1f2d4e6a002b0f9c34
1889
2206
  source: api
1890
- event: update
1891
- time: '2026-05-02T18:09:26.975Z'
2207
+ event: delete
2208
+ time: '2026-09-22T03:34:13.999Z'
2209
+ fieldChanges: []
2210
+ deletedInfo:
2211
+ name: Reports
1892
2212
  byUser:
1893
2213
  _id: 624cb0346309dc3a543733a2
2214
+ name: Jane Doe
2215
+ email: user@example.com
2216
+ - _id: 6ab1f25df9f97c6e8f352d63
2217
+ resourceType: folder
2218
+ _resourceId: 684c3b1f2d4e6a002b0f9c34
2219
+ source: api
2220
+ event: create
2221
+ time: '2026-09-22T03:13:33.631Z'
2222
+ fieldChanges: []
2223
+ byUser:
2224
+ _id: 624cb0346309dc3a543733a2
2225
+ name: Jane Doe
1894
2226
  email: user@example.com
1895
- name: Tyler Lamparter
1896
- fieldChanges:
1897
- - fieldPath: name
1898
- oldValue: report.pdf
1899
- newValue: quarterly-report.pdf
1900
2227
  '204':
1901
- description: No audit entries exist for this item.
2228
+ description: No audit entries exist for this folder ID.
1902
2229
  '400':
1903
- $ref: '#/components/responses/400-bad-request'
2230
+ description: The `_id` is not a valid ObjectId (`invalid_ref`), or `limit` is out of range (`invalid_query_param`).
2231
+ content:
2232
+ application/json:
2233
+ schema:
2234
+ $ref: '#/components/schemas/Error'
2235
+ examples:
2236
+ invalidId:
2237
+ value:
2238
+ errors:
2239
+ - code: invalid_ref
2240
+ message: Please provide a valid _id.
2241
+ invalidLimit:
2242
+ value:
2243
+ errors:
2244
+ - code: invalid_query_param
2245
+ message: Invalid limit sent in request.
1904
2246
  '401':
1905
2247
  $ref: '#/components/responses/401-unauthorized'
1906
- '404':
1907
- $ref: '#/components/responses/404-not-found'
1908
2248
  '422':
1909
- $ref: '#/components/responses/422-unprocessable-entity'
2249
+ description: |-
2250
+ A filter value is invalid — an unknown `action` or `source`
2251
+ (`invalid_audit_field`), a `from`/`to` that is not ISO 8601
2252
+ (`invalid_timestamp_format`), or a window outside the last three
2253
+ years or in the future (`invalid_time_period`).
2254
+ content:
2255
+ application/json:
2256
+ schema:
2257
+ $ref: '#/components/schemas/Error'
2258
+ examples:
2259
+ invalidAction:
2260
+ value:
2261
+ errors:
2262
+ - code: invalid_audit_field
2263
+ message: bogus is not a valid audit action.
2264
+ invalidTimestamp:
2265
+ value:
2266
+ errors:
2267
+ - code: invalid_timestamp_format
2268
+ message: 'Please make sure that the time provided for field: "from" is in ISO8601 time format.'
1910
2269
  /v1/storage/usage:
1911
2270
  get:
1912
2271
  x-internal: false
@@ -1958,9 +2317,9 @@ paths:
1958
2317
  x-internal: false
1959
2318
  summary: Get storage usage by environment
1960
2319
  description: |-
1961
- Returns the same account-wide totals as `GET /v1/storage/usage`, broken
1962
- down per environment. Use it to see which environment is consuming the
1963
- account's shared quota.
2320
+ Returns storage usage per environment, with the account-wide total and
2321
+ the quota figures `GET /v1/storage/usage` reports. Use it to see which
2322
+ environment is consuming the account's shared quota.
1964
2323
  operationId: getStorageUsageByEnvironment
1965
2324
  tags:
1966
2325
  - File Storage
@@ -1985,18 +2344,18 @@ paths:
1985
2344
  default:
1986
2345
  value:
1987
2346
  environments:
1988
- - _envUserId: 60a1b2c3d4e5f6001a2b3c4d
1989
- name: Production
2347
+ - environment:
2348
+ _id: 60a1b2c3d4e5f6001a2b3c4d
2349
+ name: Production
1990
2350
  activeUsage: 429496729
1991
2351
  recycleBinUsage: 52428800
1992
2352
  totalUsage: 481925529
1993
- - _envUserId: 60a1b2c3d4e5f6001a2b3c4e
1994
- name: Sandbox
2353
+ - environment:
2354
+ _id: 60a1b2c3d4e5f6001a2b3c4e
2355
+ name: Sandbox
1995
2356
  activeUsage: 107374182
1996
2357
  recycleBinUsage: 52428800
1997
2358
  totalUsage: 159802982
1998
- activeUsage: 536870912
1999
- recycleBinUsage: 104857600
2000
2359
  totalUsage: 641728512
2001
2360
  maxAllowedUsage: 1073741824
2002
2361
  isOverage: false
@@ -2034,7 +2393,11 @@ components:
2034
2393
  name:
2035
2394
  type: string
2036
2395
  maxLength: 256
2037
- description: File name, including extension. Duplicate names in a folder are allowed.
2396
+ description: |-
2397
+ File name, including extension. Must not match a live file or folder
2398
+ in the target folder (case-sensitive; a pending upload already holds
2399
+ its name), or the entry fails with 409 `STORAGE_ITEM_ALREADY_EXISTS`
2400
+ while the rest of the batch proceeds.
2038
2401
  examples:
2039
2402
  - logo.png
2040
2403
  mimeType:
@@ -2073,9 +2436,11 @@ components:
2073
2436
  type: integer
2074
2437
  minimum: 1
2075
2438
  description: |-
2076
- Total number of parts the file will be split into. Required when
2077
- uploadType is multipart; the response returns presigned URLs for as
2078
- many parts as the part budget allows.
2439
+ Required when uploadType is multipart. On a new upload, the total number
2440
+ of parts the file will be split into; the response returns presigned URLs
2441
+ for as many parts as the part budget allows. On a resume (`_id`,
2442
+ `uploadId`, and `issuedPartsCount` set), the number of further part URLs
2443
+ to issue, numbered on from `issuedPartsCount`.
2079
2444
  examples:
2080
2445
  - 50
2081
2446
  uploadId:
@@ -2163,16 +2528,24 @@ components:
2163
2528
  format: uri
2164
2529
  description: |-
2165
2530
  Presigned S3 URL to PUT the file's bytes to in a single request.
2166
- Present when uploadType is single. Expires after one hour; use
2167
- `POST /v1/storage/files/refresh-urls` to reissue.
2531
+ Present when uploadType is single. The PUT must carry the header
2532
+ `x-amz-server-side-encryption: AES256` — it is part of the signature,
2533
+ and S3 rejects the upload with 403 `SignatureDoesNotMatch` without
2534
+ it. The URL's `X-Amz-Expires` parameter carries its lifetime and
2535
+ there is no endpoint to reissue it: an expired single PUT means
2536
+ starting a new upload. While the URL is live the pending item holds
2537
+ its name and cannot be deleted (`STORAGE_PRESIGNED_URL_ACTIVE`).
2168
2538
  examples:
2169
2539
  - https://integrator-file-storage.s3.us-west-2.amazonaws.com/...
2540
+ x-celigo-ai-guidance:
2541
+ - Send the header x-amz-server-side-encryption AES256 on the presigned PUT; omitting it fails with 403 SignatureDoesNotMatch from S3, and the item then stays pending.
2170
2542
  uploadId:
2171
2543
  type: string
2172
2544
  description: |-
2173
2545
  S3 multipart upload identifier. Present when uploadType is
2174
- multipart. Pass it to refresh-urls to fetch later part batches and
2175
- to cancel the upload.
2546
+ multipart. Send it back to `POST /v1/storage/files/initiateUpload`
2547
+ with the item's `_id` and `issuedPartsCount` to fetch the next batch
2548
+ of part URLs once every part already issued has been uploaded.
2176
2549
  examples:
2177
2550
  - abcD12efGHIjklMN3opQrst
2178
2551
  partUrls:
@@ -2180,8 +2553,11 @@ components:
2180
2553
  description: |-
2181
2554
  Presigned URLs for the next batch of parts. Present when uploadType
2182
2555
  is multipart. A request may return fewer parts than requested when
2183
- the account-wide part budget is constrained; fetch the remaining
2184
- parts with refresh-urls.
2556
+ the account-wide part budget is constrained; after uploading every
2557
+ part in this batch, fetch the remaining parts by posting to
2558
+ initiateUpload again with the item's `_id`, `uploadId`, and
2559
+ `issuedPartsCount` — before then the entry fails with
2560
+ `STORAGE_PARTS_MISMATCH`.
2185
2561
  items:
2186
2562
  $ref: '#/components/schemas/PartUrl'
2187
2563
  completeUrl:
@@ -2228,7 +2604,8 @@ components:
2228
2604
  description: |-
2229
2605
  ID of the pending item this result refers to. Present once the item
2230
2606
  is created; absent when the file failed validation before creation.
2231
- Use it to upload, refresh URLs, cancel, or download once active.
2607
+ Use it to continue a multipart upload, cancel it, or download the
2608
+ file once active.
2232
2609
  examples:
2233
2610
  - 683b2a0e1c3d5f001a9e8b01
2234
2611
  name:
@@ -2298,66 +2675,6 @@ components:
2298
2675
  - message
2299
2676
  required:
2300
2677
  - errors
2301
- RefreshUrlsRequest:
2302
- type: object
2303
- description: Reissues presigned URLs for pending uploads whose URLs have expired.
2304
- required:
2305
- - items
2306
- properties:
2307
- items:
2308
- type: array
2309
- minItems: 1
2310
- description: Pending uploads to refresh. Each is processed independently.
2311
- items:
2312
- type: object
2313
- required:
2314
- - _id
2315
- - uploadType
2316
- properties:
2317
- _id:
2318
- type: string
2319
- format: objectId
2320
- x-celigo-refModel: storageitems
2321
- description: Pending item to reissue URLs for.
2322
- examples:
2323
- - 683b2a0e1c3d5f001a9e8b03
2324
- uploadType:
2325
- type: string
2326
- enum:
2327
- - single
2328
- - multipart
2329
- x-enumDescriptions:
2330
- single: Reissue the single PUT URL.
2331
- multipart: Reissue URLs for the part numbers in `partNumbers`.
2332
- description: Must match the upload type the item was initiated with.
2333
- uploadId:
2334
- type: string
2335
- description: S3 multipart upload ID. Required when uploadType is multipart.
2336
- examples:
2337
- - abcD12efGHIjklMN3opQrst
2338
- partNumbers:
2339
- type: array
2340
- description: |-
2341
- Part numbers to reissue URLs for. Required when uploadType is
2342
- multipart. Must continue sequentially after the last issued
2343
- batch. Already-uploaded parts are preserved.
2344
- items:
2345
- type: integer
2346
- minimum: 1
2347
- examples:
2348
- - - 3
2349
- - 4
2350
- - 5
2351
- RefreshUrlsResponse:
2352
- type: object
2353
- description: Per-item refreshed upload instructions.
2354
- required:
2355
- - items
2356
- properties:
2357
- items:
2358
- type: array
2359
- items:
2360
- $ref: '#/components/schemas/UploadResult'
2361
2678
  StorageItem:
2362
2679
  type: object
2363
2680
  description: A file or folder stored in Celigo Storage.
@@ -2390,10 +2707,21 @@ components:
2390
2707
  maxLength: 256
2391
2708
  description: |-
2392
2709
  Display name, including the extension for files (for example
2393
- `orders.csv`). Two items with the same name can coexist in one
2394
- folder — the name is not a unique key.
2710
+ `orders.csv`). Unique among the live items of one folder: files and
2711
+ folders share the namespace, matching is case-sensitive, and a
2712
+ pending upload holds its name. Any write that would duplicate a name
2713
+ is rejected with 409 `STORAGE_ITEM_ALREADY_EXISTS`; items in the
2714
+ recycle bin release theirs.
2395
2715
  examples:
2396
2716
  - logo.png
2717
+ _userId:
2718
+ type: string
2719
+ format: objectId
2720
+ readOnly: true
2721
+ x-celigo-refModel: users
2722
+ description: Environment user that owns the item; every item an account lists carries its own environment's value.
2723
+ examples:
2724
+ - 624cb0346309dc3a543733a2
2397
2725
  _parentId:
2398
2726
  type:
2399
2727
  - string
@@ -2406,6 +2734,30 @@ components:
2406
2734
  account root.
2407
2735
  examples:
2408
2736
  - 683a1f2e9b0c4d001e8f7a23
2737
+ _integrationId:
2738
+ type:
2739
+ - string
2740
+ - 'null'
2741
+ format: objectId
2742
+ readOnly: true
2743
+ x-celigo-refModel: integrations
2744
+ description: |-
2745
+ Integration whose system folder tree contains this item. Set on an
2746
+ integration's root folder and inherited by everything created inside
2747
+ it; null for user-created folders and files at the account root and
2748
+ their descendants. Filter the list endpoint with `_integrationId` to
2749
+ scope a listing to one integration.
2750
+ examples:
2751
+ - 6ab1e7ab38d7733b4594d0d2
2752
+ integrationName:
2753
+ type: string
2754
+ readOnly: true
2755
+ description: |-
2756
+ Name of the integration an integration root folder belongs to. Present
2757
+ only on that root folder (the `isSystem` folder at the account root);
2758
+ items inside the tree carry `_integrationId` but not this field.
2759
+ examples:
2760
+ - Order to cash
2409
2761
  __ancestorIds:
2410
2762
  type: array
2411
2763
  readOnly: true
@@ -2424,9 +2776,9 @@ components:
2424
2776
  format: int64
2425
2777
  readOnly: true
2426
2778
  description: |-
2427
- File size in bytes. Present when type is file; folders carry no
2428
- size. While an upload is pending this reflects the reserved quota,
2429
- and is reconciled to the actual byte count once the upload finalizes.
2779
+ File size in bytes; always `0` for folders, which hold no content.
2780
+ While an upload is pending this reflects the reserved quota, and is
2781
+ reconciled to the actual byte count once the upload finalizes.
2430
2782
  examples:
2431
2783
  - 245760
2432
2784
  mimeType:
@@ -2436,7 +2788,8 @@ components:
2436
2788
  description: |-
2437
2789
  Media type recorded at upload time, used to set the download
2438
2790
  Content-Type. Present when type is file; absent for folders and for
2439
- files uploaded without a declared type.
2791
+ files uploaded without a declared type. Matched case-sensitively by
2792
+ the `mimeType` and `mimeType_nin` list filters.
2440
2793
  examples:
2441
2794
  - image/png
2442
2795
  description:
@@ -2525,6 +2878,7 @@ components:
2525
2878
  - '2026-03-28T14:30:00.000Z'
2526
2879
  required:
2527
2880
  - _id
2881
+ - _userId
2528
2882
  - type
2529
2883
  - name
2530
2884
  - status
@@ -2540,7 +2894,10 @@ components:
2540
2894
  name:
2541
2895
  type: string
2542
2896
  maxLength: 256
2543
- description: Folder name. Duplicate names within the same parent are allowed.
2897
+ description: |-
2898
+ Folder name. Must not match a live file or folder already in the
2899
+ parent (case-sensitive); a duplicate is rejected with 409
2900
+ `STORAGE_ITEM_ALREADY_EXISTS`.
2544
2901
  examples:
2545
2902
  - Reports
2546
2903
  _parentId:
@@ -2600,6 +2957,19 @@ components:
2600
2957
  type: string
2601
2958
  format: objectId
2602
2959
  x-celigo-refModel: storageitems
2960
+ _integrationId:
2961
+ type:
2962
+ - string
2963
+ - 'null'
2964
+ format: objectId
2965
+ x-celigo-refModel: integrations
2966
+ description: |-
2967
+ The item's integration after the move — the destination's
2968
+ integration when it landed inside an integration's system folder
2969
+ tree, null when it landed outside one. Present on success.
2970
+ name:
2971
+ type: string
2972
+ description: Name of the moved item (the new name when `name` was sent). Present on success.
2603
2973
  type:
2604
2974
  type: string
2605
2975
  enum:
@@ -2611,7 +2981,10 @@ components:
2611
2981
  description: Type of the moved item. Present on success.
2612
2982
  errorCode:
2613
2983
  type: string
2614
- description: Error code for this item. Present on error.
2984
+ description: |-
2985
+ Error code for this item, such as `STORAGE_ITEM_ALREADY_EXISTS`
2986
+ when the destination already holds a live item with that name.
2987
+ Present on error.
2615
2988
  message:
2616
2989
  type: string
2617
2990
  description: Human-readable failure reason. Present on error.
@@ -2625,7 +2998,10 @@ components:
2625
2998
  name:
2626
2999
  type: string
2627
3000
  maxLength: 256
2628
- description: New display name for the item.
3001
+ description: |-
3002
+ New display name for the item. Must not match another live item in
3003
+ the same folder (case-sensitive); a collision is rejected with 409
3004
+ `STORAGE_ITEM_ALREADY_EXISTS`.
2629
3005
  examples:
2630
3006
  - quarterly-report-final.pdf
2631
3007
  description:
@@ -2739,11 +3115,20 @@ components:
2739
3115
  the item itself or one of its descendants.
2740
3116
  examples:
2741
3117
  - 684c3b1f2d4e6g002b0h9c34
3118
+ name:
3119
+ type: string
3120
+ maxLength: 256
3121
+ description: |-
3122
+ New name applied to the item in the same write as the re-parent, so
3123
+ a name already taken in the destination can be resolved without a
3124
+ second call. Omit to keep the current name.
3125
+ examples:
3126
+ - inv-001 (1).pdf
2742
3127
  CopyRequest:
2743
3128
  type: object
2744
3129
  description: Request body for copying a file.
2745
3130
  properties:
2746
- _destinationId:
3131
+ _parentId:
2747
3132
  type:
2748
3133
  - string
2749
3134
  - 'null'
@@ -2751,94 +3136,164 @@ components:
2751
3136
  x-celigo-refModel: storageitems
2752
3137
  description: |-
2753
3138
  Destination folder for the copy. Pass null to copy to the account
2754
- root. Must reference an existing active folder.
3139
+ root; omit it to copy into the source file's own folder. An id that
3140
+ names no folder answers 404 `STORAGE_PARENT_NOT_FOUND`, and a file's
3141
+ id 422 `STORAGE_PARENT_NOT_FOLDER`.
2755
3142
  examples:
2756
3143
  - 684c3b1f2d4e6g002b0h9c34
2757
3144
  name:
2758
3145
  type: string
2759
3146
  maxLength: 256
2760
3147
  description: |-
2761
- Name for the copy. Defaults to the source file's name when omitted.
2762
- Duplicate names are allowed, so a copy into the source's own folder
2763
- with no name produces a second file with the same name.
3148
+ Name for the copy. When omitted, the copy is called `Clone - `
3149
+ followed by the source file's name. Must not match a live item in
3150
+ the destination (case-sensitive): a collision is rejected with 409
3151
+ `STORAGE_ITEM_ALREADY_EXISTS`, so a second unnamed copy into the
3152
+ same folder needs an explicit name.
2764
3153
  examples:
2765
3154
  - quarterly-report-copy.pdf
2766
- DependencyEntry:
3155
+ RestoreRequest:
2767
3156
  type: object
2768
- description: A single resource that depends on the queried resource.
3157
+ description: |-
3158
+ Optional request body for restoring an item from the recycle bin. Send
3159
+ an empty body or omit it to restore under the original name.
2769
3160
  properties:
2770
- id:
3161
+ name:
2771
3162
  type: string
2772
- description: Unique identifier of the dependent resource.
3163
+ maxLength: 256
3164
+ description: |-
3165
+ New name applied as the item comes back, so a name taken in its
3166
+ original folder since the delete can be resolved in the same call.
3167
+ Omit to keep the original name.
2773
3168
  examples:
2774
- - 61f92026dd053843b5d72350
2775
- name:
3169
+ - inv-001 (restored).pdf
3170
+ StorageAuditEntry:
3171
+ type: object
3172
+ description: |-
3173
+ One change recorded against a file or folder. Returned newest first by
3174
+ `GET /v1/files/{_id}/audit` and `GET /v1/folders/{_id}/audit`.
3175
+ required:
3176
+ - _id
3177
+ - resourceType
3178
+ - _resourceId
3179
+ - event
3180
+ - source
3181
+ - time
3182
+ properties:
3183
+ _id:
2776
3184
  type: string
2777
- description: Display name of the dependent resource.
3185
+ format: objectId
3186
+ description: Unique identifier for this audit entry.
2778
3187
  examples:
2779
- - Import Orders to NetSuite
2780
- paths:
2781
- type: array
3188
+ - 69f63dd77009ea11abf0bce3
3189
+ resourceType:
3190
+ type: string
3191
+ enum:
3192
+ - file
3193
+ - folder
3194
+ x-enumDescriptions:
3195
+ file: The entry belongs to a file
3196
+ folder: The entry belongs to a folder
2782
3197
  description: |-
2783
- Dot-notation paths within the dependent resource that reference
2784
- the target resource. `[*]` denotes array elements.
2785
- items:
2786
- type: string
3198
+ Type of storage item the entry belongs to. Matches the route used —
3199
+ `file` for `/v1/files/{_id}/audit`, `folder` for
3200
+ `/v1/folders/{_id}/audit`.
3201
+ examples:
3202
+ - folder
3203
+ _resourceId:
3204
+ type: string
3205
+ format: objectId
3206
+ x-celigo-refModel: storageitems
3207
+ description: ID of the item this entry belongs to.
3208
+ examples:
3209
+ - 683b2a0e1c3d5f001a9e8b01
3210
+ event:
3211
+ type: string
3212
+ enum:
3213
+ - create
3214
+ - update
3215
+ - delete
3216
+ - download
3217
+ - restore
3218
+ - purge
3219
+ x-enumDescriptions:
3220
+ create: Item was created (a file is recorded once its upload finalizes)
3221
+ update: Item was renamed, re-described, moved, or had its content replaced
3222
+ delete: Item was soft-deleted to the recycle bin
3223
+ download: A presigned download URL was issued for the file
3224
+ restore: Item was restored from the recycle bin
3225
+ purge: Item was permanently purged
3226
+ description: |-
3227
+ Type of change. An item's history starts with `create`, gathers
3228
+ `update` and `download` entries while it is live, and ends with
3229
+ `delete` followed by either `restore` (back to live) or `purge`.
3230
+ examples:
3231
+ - update
3232
+ source:
3233
+ type: string
3234
+ enum:
3235
+ - api
3236
+ - ui
3237
+ - system
3238
+ x-enumDescriptions:
3239
+ api: Change made via the REST API
3240
+ ui: Change made through the Celigo UI
3241
+ system: Change made by an automated platform process, such as creating an integration's system folder
3242
+ description: How the change was initiated.
2787
3243
  examples:
2788
- - - hooks.preSavePage._scriptId
2789
- accessLevel:
3244
+ - api
3245
+ time:
2790
3246
  type: string
2791
- description: The caller's access level on the dependent resource.
3247
+ format: date-time
3248
+ description: Timestamp when the change occurred.
2792
3249
  examples:
2793
- - manage
2794
- dependencyIds:
3250
+ - '2026-05-02T18:09:26.975Z'
3251
+ byUser:
2795
3252
  type: object
2796
- description: |-
2797
- Map of resource types to arrays of IDs that this dependent
2798
- resource references on the target. Keys are singular or plural
2799
- resource type strings; values are arrays of ID strings.
2800
- additionalProperties:
2801
- type: array
2802
- items:
3253
+ description: User who made the change.
3254
+ properties:
3255
+ _id:
2803
3256
  type: string
2804
- example:
2805
- script:
2806
- - 64ff4b21612a134bd2f45531
2807
- required:
2808
- - id
2809
- - name
2810
- - paths
2811
- - accessLevel
2812
- - dependencyIds
2813
- DependencyResponse:
2814
- type: object
2815
- description: |
2816
- Map of dependent-resource types to arrays of dependency entries.
2817
- Keys are plural resource type strings (e.g. `flows`, `imports`,
2818
- `connections`). An empty object `{}` means no dependents.
2819
- additionalProperties:
2820
- type: array
2821
- items:
2822
- $ref: '#/components/schemas/DependencyEntry'
2823
- example:
2824
- exports:
2825
- - id: 64ff4b21612a134bd2f45534
2826
- name: Bank FTP Export
2827
- paths:
2828
- - hooks.preSavePage._scriptId
2829
- accessLevel: manage
2830
- dependencyIds:
2831
- script:
2832
- - 64ff4b21612a134bd2f45531
2833
- flows:
2834
- - id: 64ff4b22612a134bd2f45538
2835
- name: CAMT-053 to Celigo CAM Format
2836
- paths:
2837
- - pageGenerators[*]._exportId
2838
- accessLevel: manage
2839
- dependencyIds:
2840
- export:
2841
- - 64ff4b21612a134bd2f45534
3257
+ format: objectId
3258
+ x-celigo-refModel: users
3259
+ description: User ID.
3260
+ examples:
3261
+ - 624cb0346309dc3a543733a2
3262
+ email:
3263
+ type: string
3264
+ format: email
3265
+ description: User email address.
3266
+ examples:
3267
+ - user@example.com
3268
+ name:
3269
+ type: string
3270
+ description: User display name.
3271
+ examples:
3272
+ - Jane Doe
3273
+ fieldChanges:
3274
+ type: array
3275
+ description: Fields that were modified. Empty on `create` and `delete` entries.
3276
+ items:
3277
+ type: object
3278
+ properties:
3279
+ fieldPath:
3280
+ type: string
3281
+ description: Dot-notation path of the changed field.
3282
+ examples:
3283
+ - name
3284
+ oldValue:
3285
+ description: Previous value (absent on create).
3286
+ newValue:
3287
+ description: New value (absent on delete).
3288
+ deletedInfo:
3289
+ type: object
3290
+ description: Metadata about the deleted item. Present on `delete` events.
3291
+ properties:
3292
+ name:
3293
+ type: string
3294
+ description: Name of the item at the time of deletion.
3295
+ examples:
3296
+ - old-report.pdf
2842
3297
  Usage:
2843
3298
  type: object
2844
3299
  description: Account-wide storage usage and entitlement, aggregated across all environments.
@@ -2910,22 +3365,31 @@ components:
2910
3365
  type: object
2911
3366
  description: Storage usage for a single environment.
2912
3367
  required:
2913
- - _envUserId
3368
+ - environment
2914
3369
  - activeUsage
2915
3370
  - recycleBinUsage
2916
3371
  - totalUsage
2917
3372
  properties:
2918
- _envUserId:
2919
- type: string
2920
- format: objectId
2921
- description: Environment user ID this breakdown belongs to.
2922
- examples:
2923
- - 60a1b2c3d4e5f6001a2b3c4d
2924
- name:
2925
- type: string
2926
- description: Environment name, such as Production or Sandbox.
2927
- examples:
2928
- - Production
3373
+ environment:
3374
+ type: object
3375
+ description: Environment the usage belongs to.
3376
+ required:
3377
+ - _id
3378
+ - name
3379
+ properties:
3380
+ _id:
3381
+ type: string
3382
+ format: objectId
3383
+ x-celigo-refModel: environments
3384
+ description: Environment id, as returned by `GET /v1/environments`.
3385
+ examples:
3386
+ - 60a1b2c3d4e5f6001a2b3c4d
3387
+ name:
3388
+ type: string
3389
+ description: Environment display name.
3390
+ examples:
3391
+ - Production
3392
+ - Sandbox
2929
3393
  activeUsage:
2930
3394
  type: integer
2931
3395
  format: int64
@@ -2947,12 +3411,12 @@ components:
2947
3411
  UsageEnvironments:
2948
3412
  type: object
2949
3413
  description: |-
2950
- Per-environment usage breakdown alongside the same account-wide totals
2951
- returned by `GET /v1/storage/usage`.
3414
+ Per-environment usage breakdown alongside the account-wide quota
3415
+ figures returned by `GET /v1/storage/usage`. The active / recycle-bin
3416
+ split is reported per environment; the account-wide total is the sum
3417
+ of the rows.
2952
3418
  required:
2953
3419
  - environments
2954
- - activeUsage
2955
- - recycleBinUsage
2956
3420
  - totalUsage
2957
3421
  - maxAllowedUsage
2958
3422
  - isOverage
@@ -2964,22 +3428,10 @@ components:
2964
3428
  description: One entry per environment in the account.
2965
3429
  items:
2966
3430
  $ref: '#/components/schemas/EnvironmentUsage'
2967
- activeUsage:
2968
- type: integer
2969
- format: int64
2970
- description: Account-wide bytes consumed by active and pending files.
2971
- examples:
2972
- - 536870912
2973
- recycleBinUsage:
2974
- type: integer
2975
- format: int64
2976
- description: Account-wide bytes consumed by soft-deleted files.
2977
- examples:
2978
- - 104857600
2979
3431
  totalUsage:
2980
3432
  type: integer
2981
3433
  format: int64
2982
- description: Account-wide sum of activeUsage and recycleBinUsage.
3434
+ description: Account-wide bytes consumed by active, pending and soft-deleted files across every environment.
2983
3435
  examples:
2984
3436
  - 641728512
2985
3437
  systemUsage:
@@ -3098,5 +3550,105 @@ components:
3098
3550
  errors:
3099
3551
  - code: unprocessable_entity
3100
3552
  message: The request could not be processed due to a semantic error.
3553
+ parameters:
3554
+ Limit:
3555
+ name: limit
3556
+ in: query
3557
+ description: Maximum number of audit entries to return per page.
3558
+ required: false
3559
+ schema:
3560
+ type: integer
3561
+ minimum: 1
3562
+ maximum: 1000
3563
+ default: 1000
3564
+ examples:
3565
+ - 100
3566
+ After:
3567
+ name: after
3568
+ in: query
3569
+ required: false
3570
+ description: |-
3571
+ Opaque pagination cursor for the next page. Take it from the `after`
3572
+ value in the `Link` response header's `rel="next"` URL rather than
3573
+ constructing it.
3574
+ schema:
3575
+ type: string
3576
+ examples:
3577
+ - W3siJGRhdGUiOiIyMDI2LTA5LTIyVDAzOjM0OjEzLjk5OVoifSwiNmFiMWY3MzZmOWY5N2M2ZThmMzUzYjVhIl0
3578
+ From:
3579
+ name: from
3580
+ in: query
3581
+ required: false
3582
+ description: |-
3583
+ Only return entries at or after this timestamp. Must be within the last
3584
+ three years and not in the future.
3585
+ schema:
3586
+ type: string
3587
+ format: date-time
3588
+ examples:
3589
+ - '2026-05-01T00:00:00.000Z'
3590
+ To:
3591
+ name: to
3592
+ in: query
3593
+ required: false
3594
+ description: |-
3595
+ Only return entries at or before this timestamp. Must be within the last
3596
+ three years and not in the future.
3597
+ schema:
3598
+ type: string
3599
+ format: date-time
3600
+ examples:
3601
+ - '2026-05-31T23:59:59.999Z'
3602
+ Action:
3603
+ name: action
3604
+ in: query
3605
+ required: false
3606
+ description: Filter by the change type. Maps to the `event` field on each entry.
3607
+ schema:
3608
+ type: string
3609
+ enum:
3610
+ - create
3611
+ - update
3612
+ - delete
3613
+ - download
3614
+ - restore
3615
+ - purge
3616
+ examples:
3617
+ - update
3618
+ x-enumDescriptions:
3619
+ create: An item was created
3620
+ update: An item was renamed, re-described, moved, or had its content replaced
3621
+ delete: An item was soft-deleted to the recycle bin
3622
+ download: A presigned download URL was issued for a file
3623
+ restore: An item was restored from the recycle bin
3624
+ purge: An item was permanently purged from the recycle bin
3625
+ Source:
3626
+ name: source
3627
+ in: query
3628
+ required: false
3629
+ description: Filter by how the change was initiated.
3630
+ schema:
3631
+ type: string
3632
+ enum:
3633
+ - api
3634
+ - ui
3635
+ - system
3636
+ examples:
3637
+ - api
3638
+ x-enumDescriptions:
3639
+ api: Change made via the REST API
3640
+ ui: Change made through the Celigo UI
3641
+ system: Change made automatically by the platform
3642
+ ByUserId:
3643
+ name: _byUserId
3644
+ in: query
3645
+ required: false
3646
+ description: Filter to changes performed by a single user.
3647
+ schema:
3648
+ type: string
3649
+ format: objectId
3650
+ x-celigo-refModel: users
3651
+ examples:
3652
+ - 624cb0346309dc3a543733a2
3101
3653
  x-internal: false
3102
3654
  x-enable-proxy: true