webflow-api 2.4.0 → 2.5.0
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/.mock/definition/__package__.yml +2495 -0
- package/.mock/definition/accessGroups.yml +80 -0
- package/.mock/definition/api.yml +13 -0
- package/.mock/definition/assets.yml +414 -0
- package/.mock/definition/collections/fields.yml +187 -0
- package/.mock/definition/collections/items.yml +1511 -0
- package/.mock/definition/collections.yml +185 -0
- package/.mock/definition/ecommerce.yml +42 -0
- package/.mock/definition/forms.yml +301 -0
- package/.mock/definition/inventory.yml +120 -0
- package/.mock/definition/orders.yml +1569 -0
- package/.mock/definition/pages/scripts.yml +169 -0
- package/.mock/definition/pages.yml +443 -0
- package/.mock/definition/products.yml +500 -0
- package/.mock/definition/scripts.yml +257 -0
- package/.mock/definition/sites/activityLogs.yml +65 -0
- package/.mock/definition/sites/scripts.yml +228 -0
- package/.mock/definition/sites.yml +299 -0
- package/.mock/definition/token.yml +71 -0
- package/.mock/definition/users.yml +392 -0
- package/.mock/definition/webhooks.yml +189 -0
- package/.mock/fern.config.json +4 -0
- package/Client.d.ts +2 -0
- package/README.md +23 -30
- package/api/errors/InternalServerError.d.ts +2 -1
- package/api/errors/NotFoundError.d.ts +2 -1
- package/api/errors/TooManyRequestsError.d.ts +1 -1
- package/api/errors/UnauthorizedError.d.ts +2 -1
- package/api/resources/accessGroups/client/Client.d.ts +5 -1
- package/api/resources/accessGroups/client/Client.js +27 -15
- package/api/resources/assets/client/Client.d.ts +31 -11
- package/api/resources/assets/client/Client.js +236 -126
- package/api/resources/assets/client/requests/AssetsCreateRequest.d.ts +2 -2
- package/api/resources/assets/client/requests/AssetsUpdateRequest.d.ts +5 -5
- package/api/resources/collections/client/Client.d.ts +15 -22
- package/api/resources/collections/client/Client.js +109 -137
- package/api/resources/collections/resources/fields/client/Client.d.ts +34 -2
- package/api/resources/collections/resources/fields/client/Client.js +163 -32
- package/api/resources/collections/resources/items/client/Client.d.ts +302 -30
- package/api/resources/collections/resources/items/client/Client.js +959 -221
- package/api/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +61 -0
- package/api/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.d.ts +11 -0
- package/api/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.d.ts +11 -0
- package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.d.ts +128 -0
- package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +128 -0
- package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.js +5 -0
- package/api/resources/collections/resources/items/client/requests/index.d.ts +5 -0
- package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +5 -0
- package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.js +5 -0
- package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.d.ts +14 -0
- package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.js +5 -0
- package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.d.ts +14 -0
- package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.js +5 -0
- package/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +5 -0
- package/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js +5 -0
- package/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.d.ts +8 -0
- package/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.js +5 -0
- package/api/resources/collections/resources/items/types/ItemsCreateItemRequest.d.ts +5 -0
- package/api/resources/collections/resources/items/types/ItemsCreateItemRequest.js +5 -0
- package/api/resources/collections/resources/items/types/ItemsCreateItemRequestItems.d.ts +8 -0
- package/api/resources/collections/resources/items/types/ItemsCreateItemRequestItems.js +5 -0
- package/api/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +9 -0
- package/api/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +5 -0
- package/api/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.d.ts +9 -0
- package/api/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.js +5 -0
- package/api/resources/collections/resources/items/types/index.d.ts +9 -0
- package/api/resources/collections/resources/items/types/index.js +9 -0
- package/api/resources/ecommerce/client/Client.d.ts +2 -0
- package/api/resources/ecommerce/client/Client.js +24 -14
- package/api/resources/forms/client/Client.d.ts +17 -5
- package/api/resources/forms/client/Client.js +140 -76
- package/api/resources/inventory/client/Client.d.ts +8 -1
- package/api/resources/inventory/client/Client.js +59 -30
- package/api/resources/orders/client/Client.d.ts +7 -2
- package/api/resources/orders/client/Client.js +164 -89
- package/api/resources/pages/client/Client.d.ts +25 -14
- package/api/resources/pages/client/Client.js +169 -100
- package/api/resources/pages/client/requests/DomWrite.d.ts +6 -6
- package/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +2 -2
- package/api/resources/pages/client/requests/PagesGetMetadataRequest.d.ts +2 -2
- package/api/resources/pages/client/requests/PagesListRequest.d.ts +2 -2
- package/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +3 -4
- package/api/resources/pages/resources/scripts/client/Client.d.ts +29 -3
- package/api/resources/pages/resources/scripts/client/Client.js +104 -46
- package/api/resources/products/client/Client.d.ts +26 -10
- package/api/resources/products/client/Client.js +188 -98
- package/api/resources/scripts/client/Client.d.ts +31 -3
- package/api/resources/scripts/client/Client.js +111 -47
- package/api/resources/sites/client/Client.d.ts +16 -4
- package/api/resources/sites/client/Client.js +101 -59
- package/api/resources/sites/client/requests/SitesPublishRequest.d.ts +1 -1
- package/api/resources/sites/resources/activityLogs/client/Client.d.ts +2 -0
- package/api/resources/sites/resources/activityLogs/client/Client.js +17 -13
- package/api/resources/sites/resources/scripts/client/Client.d.ts +26 -4
- package/api/resources/sites/resources/scripts/client/Client.js +125 -61
- package/api/resources/token/client/Client.d.ts +7 -2
- package/api/resources/token/client/Client.js +23 -24
- package/api/resources/users/client/Client.d.ts +21 -6
- package/api/resources/users/client/Client.js +149 -78
- package/api/resources/webhooks/client/Client.d.ts +15 -2
- package/api/resources/webhooks/client/Client.js +114 -59
- package/api/types/AssetFolder.d.ts +1 -1
- package/api/types/AuthorizationAuthorization.d.ts +1 -1
- package/api/types/AuthorizedUser.d.ts +1 -1
- package/api/types/BulkCollectionItemFieldData.d.ts +1 -1
- package/api/types/CollectionItem.d.ts +1 -1
- package/api/types/CollectionItemFieldData.d.ts +1 -1
- package/api/types/CollectionItemListNoPagination.d.ts +11 -0
- package/api/types/CollectionItemListNoPagination.js +5 -0
- package/api/types/CollectionItemWithIdInput.d.ts +24 -0
- package/api/types/CollectionItemWithIdInput.js +5 -0
- package/api/types/CollectionItemWithIdInputFieldData.d.ts +11 -0
- package/api/types/CollectionItemWithIdInputFieldData.js +5 -0
- package/api/types/ConflictErrorBody.d.ts +1 -10
- package/api/types/CustomCodeBlock.d.ts +2 -2
- package/api/types/DuplicateUserEmail.d.ts +1 -11
- package/api/types/ErrorCode.d.ts +38 -0
- package/api/types/ErrorCode.js +37 -0
- package/api/types/Error_.d.ts +1 -1
- package/api/types/ForbiddenErrorBody.d.ts +2 -7
- package/api/types/Form.d.ts +8 -8
- package/api/types/FormSubmission.d.ts +3 -3
- package/api/types/InvalidScopes.d.ts +4 -0
- package/api/types/InvalidScopes.js +5 -0
- package/api/types/NotEnterprisePlanSite.d.ts +1 -11
- package/api/types/Order.d.ts +5 -1
- package/api/types/Page.d.ts +2 -0
- package/api/types/Site.d.ts +4 -0
- package/api/types/SiteActivityLogItem.d.ts +1 -1
- package/api/types/SiteActivityLogItemEvent.d.ts +48 -0
- package/api/types/SiteActivityLogItemEvent.js +50 -0
- package/api/types/SiteActivityLogItemResourceOperation.d.ts +5 -1
- package/api/types/SiteActivityLogItemResourceOperation.js +4 -0
- package/api/types/SiteDataCollectionType.d.ts +12 -0
- package/api/types/SiteDataCollectionType.js +11 -0
- package/api/types/UserLimitReached.d.ts +1 -11
- package/api/types/UsersNotEnabled.d.ts +1 -11
- package/api/types/index.d.ts +10 -6
- package/api/types/index.js +10 -6
- package/core/fetcher/Fetcher.d.ts +1 -1
- package/core/fetcher/getResponseBody.js +3 -0
- package/core/fetcher/requestWithRetries.js +13 -4
- package/core/schemas/builders/object/object.js +28 -0
- package/core/schemas/builders/object/types.d.ts +5 -0
- package/dist/Client.d.ts +2 -0
- package/dist/api/errors/InternalServerError.d.ts +2 -1
- package/dist/api/errors/NotFoundError.d.ts +2 -1
- package/dist/api/errors/TooManyRequestsError.d.ts +1 -1
- package/dist/api/errors/UnauthorizedError.d.ts +2 -1
- package/dist/api/resources/accessGroups/client/Client.d.ts +5 -1
- package/dist/api/resources/accessGroups/client/Client.js +27 -15
- package/dist/api/resources/assets/client/Client.d.ts +31 -11
- package/dist/api/resources/assets/client/Client.js +236 -126
- package/dist/api/resources/assets/client/requests/AssetsCreateRequest.d.ts +2 -2
- package/dist/api/resources/assets/client/requests/AssetsUpdateRequest.d.ts +5 -5
- package/dist/api/resources/collections/client/Client.d.ts +15 -22
- package/dist/api/resources/collections/client/Client.js +109 -137
- package/dist/api/resources/collections/resources/fields/client/Client.d.ts +34 -2
- package/dist/api/resources/collections/resources/fields/client/Client.js +163 -32
- package/dist/api/resources/collections/resources/items/client/Client.d.ts +302 -30
- package/dist/api/resources/collections/resources/items/client/Client.js +959 -221
- package/dist/api/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +61 -0
- package/dist/api/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.d.ts +11 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.d.ts +11 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.d.ts +128 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +128 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/index.d.ts +5 -0
- package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +5 -0
- package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.js +5 -0
- package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.d.ts +14 -0
- package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.js +5 -0
- package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.d.ts +14 -0
- package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.js +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.d.ts +8 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.js +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemRequest.d.ts +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemRequestItems.d.ts +8 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemRequestItems.js +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +9 -0
- package/dist/api/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.d.ts +9 -0
- package/dist/api/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.js +5 -0
- package/dist/api/resources/collections/resources/items/types/index.d.ts +9 -0
- package/dist/api/resources/collections/resources/items/types/index.js +9 -0
- package/dist/api/resources/ecommerce/client/Client.d.ts +2 -0
- package/dist/api/resources/ecommerce/client/Client.js +24 -14
- package/dist/api/resources/forms/client/Client.d.ts +17 -5
- package/dist/api/resources/forms/client/Client.js +140 -76
- package/dist/api/resources/inventory/client/Client.d.ts +8 -1
- package/dist/api/resources/inventory/client/Client.js +59 -30
- package/dist/api/resources/orders/client/Client.d.ts +7 -2
- package/dist/api/resources/orders/client/Client.js +164 -89
- package/dist/api/resources/pages/client/Client.d.ts +25 -14
- package/dist/api/resources/pages/client/Client.js +169 -100
- package/dist/api/resources/pages/client/requests/DomWrite.d.ts +6 -6
- package/dist/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +2 -2
- package/dist/api/resources/pages/client/requests/PagesGetMetadataRequest.d.ts +2 -2
- package/dist/api/resources/pages/client/requests/PagesListRequest.d.ts +2 -2
- package/dist/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +3 -4
- package/dist/api/resources/pages/resources/scripts/client/Client.d.ts +29 -3
- package/dist/api/resources/pages/resources/scripts/client/Client.js +104 -46
- package/dist/api/resources/products/client/Client.d.ts +26 -10
- package/dist/api/resources/products/client/Client.js +188 -98
- package/dist/api/resources/scripts/client/Client.d.ts +31 -3
- package/dist/api/resources/scripts/client/Client.js +111 -47
- package/dist/api/resources/sites/client/Client.d.ts +16 -4
- package/dist/api/resources/sites/client/Client.js +101 -59
- package/dist/api/resources/sites/client/requests/SitesPublishRequest.d.ts +1 -1
- package/dist/api/resources/sites/resources/activityLogs/client/Client.d.ts +2 -0
- package/dist/api/resources/sites/resources/activityLogs/client/Client.js +17 -13
- package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +26 -4
- package/dist/api/resources/sites/resources/scripts/client/Client.js +125 -61
- package/dist/api/resources/token/client/Client.d.ts +7 -2
- package/dist/api/resources/token/client/Client.js +23 -24
- package/dist/api/resources/users/client/Client.d.ts +21 -6
- package/dist/api/resources/users/client/Client.js +149 -78
- package/dist/api/resources/webhooks/client/Client.d.ts +15 -2
- package/dist/api/resources/webhooks/client/Client.js +114 -59
- package/dist/api/types/AssetFolder.d.ts +1 -1
- package/dist/api/types/AuthorizationAuthorization.d.ts +1 -1
- package/dist/api/types/AuthorizedUser.d.ts +1 -1
- package/dist/api/types/BulkCollectionItemFieldData.d.ts +1 -1
- package/dist/api/types/CollectionItem.d.ts +1 -1
- package/dist/api/types/CollectionItemFieldData.d.ts +1 -1
- package/dist/api/types/CollectionItemListNoPagination.d.ts +11 -0
- package/dist/api/types/CollectionItemListNoPagination.js +5 -0
- package/dist/api/types/CollectionItemWithIdInput.d.ts +24 -0
- package/dist/api/types/CollectionItemWithIdInput.js +5 -0
- package/dist/api/types/CollectionItemWithIdInputFieldData.d.ts +11 -0
- package/dist/api/types/CollectionItemWithIdInputFieldData.js +5 -0
- package/dist/api/types/ConflictErrorBody.d.ts +1 -10
- package/dist/api/types/CustomCodeBlock.d.ts +2 -2
- package/dist/api/types/DuplicateUserEmail.d.ts +1 -11
- package/dist/api/types/ErrorCode.d.ts +38 -0
- package/dist/api/types/ErrorCode.js +37 -0
- package/dist/api/types/Error_.d.ts +1 -1
- package/dist/api/types/ForbiddenErrorBody.d.ts +2 -7
- package/dist/api/types/Form.d.ts +8 -8
- package/dist/api/types/FormSubmission.d.ts +3 -3
- package/dist/api/types/InvalidScopes.d.ts +4 -0
- package/dist/api/types/InvalidScopes.js +5 -0
- package/dist/api/types/NotEnterprisePlanSite.d.ts +1 -11
- package/dist/api/types/Order.d.ts +5 -1
- package/dist/api/types/Page.d.ts +2 -0
- package/dist/api/types/Site.d.ts +4 -0
- package/dist/api/types/SiteActivityLogItem.d.ts +1 -1
- package/dist/api/types/SiteActivityLogItemEvent.d.ts +48 -0
- package/dist/api/types/SiteActivityLogItemEvent.js +50 -0
- package/dist/api/types/SiteActivityLogItemResourceOperation.d.ts +5 -1
- package/dist/api/types/SiteActivityLogItemResourceOperation.js +4 -0
- package/dist/api/types/SiteDataCollectionType.d.ts +12 -0
- package/dist/api/types/SiteDataCollectionType.js +11 -0
- package/dist/api/types/UserLimitReached.d.ts +1 -11
- package/dist/api/types/UsersNotEnabled.d.ts +1 -11
- package/dist/api/types/index.d.ts +10 -6
- package/dist/api/types/index.js +10 -6
- package/dist/core/fetcher/Fetcher.d.ts +1 -1
- package/dist/core/fetcher/getResponseBody.js +3 -0
- package/dist/core/fetcher/requestWithRetries.js +13 -4
- package/dist/core/schemas/builders/object/object.js +28 -0
- package/dist/core/schemas/builders/object/types.d.ts +5 -0
- package/dist/errors/WebflowTimeoutError.d.ts +1 -1
- package/dist/errors/WebflowTimeoutError.js +2 -2
- package/dist/serialization/resources/assets/client/requests/AssetsUpdateRequest.d.ts +2 -1
- package/dist/serialization/resources/assets/client/requests/AssetsUpdateRequest.js +2 -1
- package/dist/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +16 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.js +37 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.js +34 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.js +34 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.js +34 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.js +34 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/index.d.ts +5 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/index.js +11 -1
- package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +12 -0
- package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.js +36 -0
- package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.d.ts +14 -0
- package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.js +36 -0
- package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.d.ts +14 -0
- package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.js +36 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +12 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js +33 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.js +34 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemRequest.d.ts +12 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemRequest.js +33 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemRequestItems.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemRequestItems.js +34 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +34 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.js +34 -0
- package/dist/serialization/resources/collections/resources/items/types/index.d.ts +9 -0
- package/dist/serialization/resources/collections/resources/items/types/index.js +9 -0
- package/dist/serialization/resources/pages/client/requests/DomWrite.d.ts +1 -1
- package/dist/serialization/types/BulkCollectionItemFieldData.js +4 -2
- package/dist/serialization/types/CollectionItem.d.ts +1 -1
- package/dist/serialization/types/CollectionItem.js +1 -1
- package/dist/serialization/types/CollectionItemFieldData.js +4 -2
- package/dist/serialization/types/CollectionItemListNoPagination.d.ts +13 -0
- package/dist/serialization/types/{TooManyRequestsErrorBody.js → CollectionItemListNoPagination.js} +4 -6
- package/dist/serialization/types/CollectionItemWithIdInput.d.ts +20 -0
- package/dist/serialization/types/CollectionItemWithIdInput.js +41 -0
- package/dist/serialization/types/CollectionItemWithIdInputFieldData.d.ts +14 -0
- package/dist/serialization/types/{MissingScopes.js → CollectionItemWithIdInputFieldData.js} +7 -8
- package/dist/serialization/types/ConflictErrorBody.d.ts +4 -8
- package/dist/serialization/types/ConflictErrorBody.js +3 -7
- package/dist/serialization/types/DuplicateUserEmail.d.ts +2 -8
- package/dist/serialization/types/DuplicateUserEmail.js +1 -7
- package/dist/serialization/types/ErrorCode.d.ts +10 -0
- package/dist/serialization/types/ErrorCode.js +61 -0
- package/dist/serialization/types/Error_.d.ts +2 -1
- package/dist/serialization/types/Error_.js +2 -1
- package/dist/serialization/types/ForbiddenErrorBody.d.ts +4 -8
- package/dist/serialization/types/ForbiddenErrorBody.js +3 -7
- package/dist/serialization/types/Form.d.ts +1 -1
- package/dist/serialization/types/Form.js +1 -1
- package/dist/serialization/types/InvalidScopes.d.ts +10 -0
- package/{serialization/types/MissingScopes.js → dist/serialization/types/InvalidScopes.js} +2 -8
- package/dist/serialization/types/NotEnterprisePlanSite.d.ts +2 -8
- package/dist/serialization/types/NotEnterprisePlanSite.js +1 -7
- package/dist/serialization/types/Page.d.ts +1 -0
- package/dist/serialization/types/Page.js +1 -0
- package/dist/serialization/types/Site.d.ts +3 -0
- package/dist/serialization/types/Site.js +3 -0
- package/dist/serialization/types/SiteActivityLogItem.d.ts +2 -1
- package/dist/serialization/types/SiteActivityLogItem.js +2 -1
- package/dist/serialization/types/SiteActivityLogItemEvent.d.ts +10 -0
- package/dist/serialization/types/SiteActivityLogItemEvent.js +74 -0
- package/dist/serialization/types/SiteActivityLogItemResourceOperation.d.ts +1 -1
- package/dist/serialization/types/SiteActivityLogItemResourceOperation.js +11 -1
- package/dist/serialization/types/SiteDataCollectionType.d.ts +10 -0
- package/dist/serialization/types/SiteDataCollectionType.js +31 -0
- package/dist/serialization/types/UserLimitReached.d.ts +2 -8
- package/dist/serialization/types/UserLimitReached.js +1 -7
- package/dist/serialization/types/UsersNotEnabled.d.ts +2 -8
- package/dist/serialization/types/UsersNotEnabled.js +1 -7
- package/dist/serialization/types/index.d.ts +10 -5
- package/dist/serialization/types/index.js +10 -5
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/ItemsClient.d.ts +23 -49
- package/dist/wrapper/ItemsClient.js +50 -216
- package/dist/wrapper/WebflowClient.d.ts +1 -1
- package/dist/wrapper/WebflowClient.js +11 -1
- package/errors/WebflowTimeoutError.d.ts +1 -1
- package/errors/WebflowTimeoutError.js +2 -2
- package/package.json +1 -2
- package/reference.md +821 -230
- package/serialization/resources/assets/client/requests/AssetsUpdateRequest.d.ts +2 -1
- package/serialization/resources/assets/client/requests/AssetsUpdateRequest.js +2 -1
- package/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +16 -0
- package/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.js +37 -0
- package/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.d.ts +13 -0
- package/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.js +34 -0
- package/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.d.ts +13 -0
- package/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.js +34 -0
- package/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.d.ts +13 -0
- package/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.js +34 -0
- package/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +13 -0
- package/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.js +34 -0
- package/serialization/resources/collections/resources/items/client/requests/index.d.ts +5 -0
- package/serialization/resources/collections/resources/items/client/requests/index.js +11 -1
- package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +12 -0
- package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.js +36 -0
- package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.d.ts +14 -0
- package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.js +36 -0
- package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.d.ts +14 -0
- package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.js +36 -0
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +12 -0
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js +33 -0
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.d.ts +13 -0
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.js +34 -0
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemRequest.d.ts +12 -0
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemRequest.js +33 -0
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemRequestItems.d.ts +13 -0
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemRequestItems.js +34 -0
- package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +13 -0
- package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +34 -0
- package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.d.ts +13 -0
- package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.js +34 -0
- package/serialization/resources/collections/resources/items/types/index.d.ts +9 -0
- package/serialization/resources/collections/resources/items/types/index.js +9 -0
- package/serialization/resources/pages/client/requests/DomWrite.d.ts +1 -1
- package/serialization/types/BulkCollectionItemFieldData.js +4 -2
- package/serialization/types/CollectionItem.d.ts +1 -1
- package/serialization/types/CollectionItem.js +1 -1
- package/serialization/types/CollectionItemFieldData.js +4 -2
- package/serialization/types/CollectionItemListNoPagination.d.ts +13 -0
- package/serialization/types/{TooManyRequestsErrorBody.js → CollectionItemListNoPagination.js} +4 -6
- package/serialization/types/CollectionItemWithIdInput.d.ts +20 -0
- package/serialization/types/CollectionItemWithIdInput.js +41 -0
- package/serialization/types/CollectionItemWithIdInputFieldData.d.ts +14 -0
- package/serialization/types/CollectionItemWithIdInputFieldData.js +36 -0
- package/serialization/types/ConflictErrorBody.d.ts +4 -8
- package/serialization/types/ConflictErrorBody.js +3 -7
- package/serialization/types/DuplicateUserEmail.d.ts +2 -8
- package/serialization/types/DuplicateUserEmail.js +1 -7
- package/serialization/types/ErrorCode.d.ts +10 -0
- package/serialization/types/ErrorCode.js +61 -0
- package/serialization/types/Error_.d.ts +2 -1
- package/serialization/types/Error_.js +2 -1
- package/serialization/types/ForbiddenErrorBody.d.ts +4 -8
- package/serialization/types/ForbiddenErrorBody.js +3 -7
- package/serialization/types/Form.d.ts +1 -1
- package/serialization/types/Form.js +1 -1
- package/serialization/types/InvalidScopes.d.ts +10 -0
- package/serialization/types/InvalidScopes.js +31 -0
- package/serialization/types/NotEnterprisePlanSite.d.ts +2 -8
- package/serialization/types/NotEnterprisePlanSite.js +1 -7
- package/serialization/types/Page.d.ts +1 -0
- package/serialization/types/Page.js +1 -0
- package/serialization/types/Site.d.ts +3 -0
- package/serialization/types/Site.js +3 -0
- package/serialization/types/SiteActivityLogItem.d.ts +2 -1
- package/serialization/types/SiteActivityLogItem.js +2 -1
- package/serialization/types/SiteActivityLogItemEvent.d.ts +10 -0
- package/serialization/types/SiteActivityLogItemEvent.js +74 -0
- package/serialization/types/SiteActivityLogItemResourceOperation.d.ts +1 -1
- package/serialization/types/SiteActivityLogItemResourceOperation.js +11 -1
- package/serialization/types/SiteDataCollectionType.d.ts +10 -0
- package/serialization/types/SiteDataCollectionType.js +31 -0
- package/serialization/types/UserLimitReached.d.ts +2 -8
- package/serialization/types/UserLimitReached.js +1 -7
- package/serialization/types/UsersNotEnabled.d.ts +2 -8
- package/serialization/types/UsersNotEnabled.js +1 -7
- package/serialization/types/index.d.ts +10 -5
- package/serialization/types/index.js +10 -5
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/ItemsClient.d.ts +23 -49
- package/wrapper/ItemsClient.js +50 -216
- package/wrapper/WebflowClient.d.ts +1 -1
- package/wrapper/WebflowClient.js +11 -1
- package/api/types/MissingScopes.d.ts +0 -14
- package/api/types/TooManyRequestsErrorBody.d.ts +0 -9
- package/dist/api/types/MissingScopes.d.ts +0 -14
- package/dist/api/types/TooManyRequestsErrorBody.d.ts +0 -9
- package/dist/serialization/types/MissingScopes.d.ts +0 -16
- package/dist/serialization/types/TooManyRequestsErrorBody.d.ts +0 -15
- package/serialization/types/MissingScopes.d.ts +0 -16
- package/serialization/types/TooManyRequestsErrorBody.d.ts +0 -15
- /package/api/{types/MissingScopes.js → resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.js} +0 -0
- /package/api/{types/TooManyRequestsErrorBody.js → resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.js} +0 -0
- /package/{dist/api/types/MissingScopes.js → api/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.js} +0 -0
- /package/{dist/api/types/TooManyRequestsErrorBody.js → api/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.js} +0 -0
|
@@ -0,0 +1,1511 @@
|
|
|
1
|
+
types:
|
|
2
|
+
ItemsListItemsRequestSortBy:
|
|
3
|
+
enum:
|
|
4
|
+
- lastPublished
|
|
5
|
+
- name
|
|
6
|
+
- slug
|
|
7
|
+
source:
|
|
8
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
9
|
+
ItemsListItemsRequestSortOrder:
|
|
10
|
+
enum:
|
|
11
|
+
- asc
|
|
12
|
+
- desc
|
|
13
|
+
source:
|
|
14
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
15
|
+
ItemsCreateItemRequestItems:
|
|
16
|
+
properties:
|
|
17
|
+
items:
|
|
18
|
+
type: optional<list<root.CollectionItem>>
|
|
19
|
+
docs: An array of items to create
|
|
20
|
+
source:
|
|
21
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
22
|
+
inline: true
|
|
23
|
+
ItemsCreateItemRequest:
|
|
24
|
+
discriminated: false
|
|
25
|
+
union:
|
|
26
|
+
- root.CollectionItem
|
|
27
|
+
- ItemsCreateItemRequestItems
|
|
28
|
+
source:
|
|
29
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
30
|
+
ItemsDeleteItemsRequestItemsItem:
|
|
31
|
+
properties:
|
|
32
|
+
id:
|
|
33
|
+
type: string
|
|
34
|
+
docs: Unique identifier for the Item
|
|
35
|
+
cmsLocaleIds:
|
|
36
|
+
type: optional<list<string>>
|
|
37
|
+
docs: Array of identifiers for the locales where the item will be created
|
|
38
|
+
source:
|
|
39
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
40
|
+
inline: true
|
|
41
|
+
ItemsListItemsLiveRequestSortBy:
|
|
42
|
+
enum:
|
|
43
|
+
- lastPublished
|
|
44
|
+
- name
|
|
45
|
+
- slug
|
|
46
|
+
source:
|
|
47
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
48
|
+
ItemsListItemsLiveRequestSortOrder:
|
|
49
|
+
enum:
|
|
50
|
+
- asc
|
|
51
|
+
- desc
|
|
52
|
+
source:
|
|
53
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
54
|
+
ItemsCreateItemLiveRequestItems:
|
|
55
|
+
properties:
|
|
56
|
+
items:
|
|
57
|
+
type: optional<list<root.CollectionItem>>
|
|
58
|
+
docs: List of collection items to create
|
|
59
|
+
source:
|
|
60
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
61
|
+
inline: true
|
|
62
|
+
ItemsCreateItemLiveRequest:
|
|
63
|
+
discriminated: false
|
|
64
|
+
union:
|
|
65
|
+
- root.CollectionItem
|
|
66
|
+
- ItemsCreateItemLiveRequestItems
|
|
67
|
+
source:
|
|
68
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
69
|
+
ItemsDeleteItemsLiveRequestItemsItem:
|
|
70
|
+
properties:
|
|
71
|
+
itemId:
|
|
72
|
+
type: string
|
|
73
|
+
docs: Unique identifier for the Item
|
|
74
|
+
cmsLocaleIds:
|
|
75
|
+
type: optional<list<string>>
|
|
76
|
+
docs: Array of identifiers for the locales where the item will be created
|
|
77
|
+
source:
|
|
78
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
79
|
+
inline: true
|
|
80
|
+
CreateBulkCollectionItemRequestBodyFieldDataName:
|
|
81
|
+
properties:
|
|
82
|
+
name:
|
|
83
|
+
type: string
|
|
84
|
+
docs: The name of the item.
|
|
85
|
+
slug:
|
|
86
|
+
type: string
|
|
87
|
+
docs: >-
|
|
88
|
+
URL slug for the item in your site.
|
|
89
|
+
|
|
90
|
+
Note: Updating the item slug will break all links referencing the old
|
|
91
|
+
slug.
|
|
92
|
+
extra-properties: true
|
|
93
|
+
source:
|
|
94
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
95
|
+
inline: true
|
|
96
|
+
CreateBulkCollectionItemRequestBodyFieldDataItem:
|
|
97
|
+
properties:
|
|
98
|
+
name:
|
|
99
|
+
type: string
|
|
100
|
+
docs: The name of the item.
|
|
101
|
+
slug:
|
|
102
|
+
type: string
|
|
103
|
+
docs: >-
|
|
104
|
+
URL slug for the item in your site.
|
|
105
|
+
|
|
106
|
+
Note: Updating the item slug will break all links referencing the old
|
|
107
|
+
slug.
|
|
108
|
+
extra-properties: true
|
|
109
|
+
source:
|
|
110
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
111
|
+
inline: true
|
|
112
|
+
CreateBulkCollectionItemRequestBodyFieldData:
|
|
113
|
+
discriminated: false
|
|
114
|
+
union:
|
|
115
|
+
- CreateBulkCollectionItemRequestBodyFieldDataName
|
|
116
|
+
- list<CreateBulkCollectionItemRequestBodyFieldDataItem>
|
|
117
|
+
source:
|
|
118
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
119
|
+
inline: true
|
|
120
|
+
ItemsPublishItemResponse:
|
|
121
|
+
properties:
|
|
122
|
+
publishedItemIds: optional<list<string>>
|
|
123
|
+
errors: optional<list<string>>
|
|
124
|
+
source:
|
|
125
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
126
|
+
imports:
|
|
127
|
+
root: ../__package__.yml
|
|
128
|
+
service:
|
|
129
|
+
auth: false
|
|
130
|
+
base-path: ''
|
|
131
|
+
endpoints:
|
|
132
|
+
list-items:
|
|
133
|
+
path: /collections/{collection_id}/items
|
|
134
|
+
method: GET
|
|
135
|
+
auth: true
|
|
136
|
+
docs: |
|
|
137
|
+
List of all Items within a Collection.
|
|
138
|
+
|
|
139
|
+
Required scope | `CMS:read`
|
|
140
|
+
source:
|
|
141
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
142
|
+
path-parameters:
|
|
143
|
+
collection_id:
|
|
144
|
+
type: string
|
|
145
|
+
docs: Unique identifier for a Collection
|
|
146
|
+
display-name: List Collection Items
|
|
147
|
+
request:
|
|
148
|
+
name: ItemsListItemsRequest
|
|
149
|
+
query-parameters:
|
|
150
|
+
cmsLocaleId:
|
|
151
|
+
type: optional<string>
|
|
152
|
+
docs: >-
|
|
153
|
+
Unique identifier for a CMS Locale. This UID is different from the
|
|
154
|
+
Site locale identifier and is listed as `cmsLocaleId` in the Sites
|
|
155
|
+
response. To query multiple locales, input a comma separated
|
|
156
|
+
string.
|
|
157
|
+
offset:
|
|
158
|
+
type: optional<double>
|
|
159
|
+
docs: >-
|
|
160
|
+
Offset used for pagination if the results have more than limit
|
|
161
|
+
records
|
|
162
|
+
limit:
|
|
163
|
+
type: optional<double>
|
|
164
|
+
docs: 'Maximum number of records to be returned (max limit: 100)'
|
|
165
|
+
name:
|
|
166
|
+
type: optional<string>
|
|
167
|
+
docs: The name of the item(s)
|
|
168
|
+
slug:
|
|
169
|
+
type: optional<string>
|
|
170
|
+
docs: The slug of the item
|
|
171
|
+
sortBy:
|
|
172
|
+
type: optional<ItemsListItemsRequestSortBy>
|
|
173
|
+
docs: Sort results by the provided value
|
|
174
|
+
sortOrder:
|
|
175
|
+
type: optional<ItemsListItemsRequestSortOrder>
|
|
176
|
+
docs: Sorts the results by asc or desc
|
|
177
|
+
response:
|
|
178
|
+
docs: Request was successful
|
|
179
|
+
type: root.CollectionItemList
|
|
180
|
+
errors:
|
|
181
|
+
- root.BadRequestError
|
|
182
|
+
- root.UnauthorizedError
|
|
183
|
+
- root.NotFoundError
|
|
184
|
+
- root.TooManyRequestsError
|
|
185
|
+
- root.InternalServerError
|
|
186
|
+
examples:
|
|
187
|
+
- path-parameters:
|
|
188
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
189
|
+
response:
|
|
190
|
+
body:
|
|
191
|
+
items:
|
|
192
|
+
- id: 62b720ef280c7a7a3be8cabe
|
|
193
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca3
|
|
194
|
+
lastPublished: '2022-06-30T13:35:20.878Z'
|
|
195
|
+
lastUpdated: '2022-06-25T14:51:27.809Z'
|
|
196
|
+
createdOn: '2022-06-25T14:51:27.809Z'
|
|
197
|
+
isArchived: false
|
|
198
|
+
isDraft: false
|
|
199
|
+
fieldData:
|
|
200
|
+
name: Senior Data Analyst
|
|
201
|
+
slug: senior-data-analyst
|
|
202
|
+
- id: 62c880ef281c7b7b4cf9dabc
|
|
203
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca3
|
|
204
|
+
lastPublished: '2023-04-15T10:25:18.123Z'
|
|
205
|
+
lastUpdated: '2023-04-10T11:45:30.567Z'
|
|
206
|
+
createdOn: '2023-04-10T11:45:30.567Z'
|
|
207
|
+
isArchived: false
|
|
208
|
+
isDraft: false
|
|
209
|
+
fieldData:
|
|
210
|
+
name: Product Manager
|
|
211
|
+
slug: product-manager
|
|
212
|
+
pagination:
|
|
213
|
+
limit: 25
|
|
214
|
+
offset: 0
|
|
215
|
+
total: 2
|
|
216
|
+
create-item:
|
|
217
|
+
path: /collections/{collection_id}/items
|
|
218
|
+
method: POST
|
|
219
|
+
auth: true
|
|
220
|
+
docs: >
|
|
221
|
+
Create Item(s) in a Collection.
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
To create items across multiple locales, please use [this
|
|
226
|
+
endpoint.](/data/v2.0.0/reference/cms/collection-items/bulk-items/create-items)
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
Required scope | `CMS:write`
|
|
230
|
+
source:
|
|
231
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
232
|
+
path-parameters:
|
|
233
|
+
collection_id:
|
|
234
|
+
type: string
|
|
235
|
+
docs: Unique identifier for a Collection
|
|
236
|
+
display-name: Create Collection Item(s)
|
|
237
|
+
request:
|
|
238
|
+
body: ItemsCreateItemRequest
|
|
239
|
+
content-type: application/json
|
|
240
|
+
response:
|
|
241
|
+
docs: Request was successful
|
|
242
|
+
type: root.CollectionItem
|
|
243
|
+
errors:
|
|
244
|
+
- root.BadRequestError
|
|
245
|
+
- root.UnauthorizedError
|
|
246
|
+
- root.NotFoundError
|
|
247
|
+
- root.TooManyRequestsError
|
|
248
|
+
- root.InternalServerError
|
|
249
|
+
examples:
|
|
250
|
+
- name: SingleItem
|
|
251
|
+
path-parameters:
|
|
252
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
253
|
+
request:
|
|
254
|
+
isArchived: false
|
|
255
|
+
isDraft: false
|
|
256
|
+
fieldData:
|
|
257
|
+
name: Pan Galactic Gargle Blaster Recipe
|
|
258
|
+
slug: pan-galactic-gargle-blaster
|
|
259
|
+
response:
|
|
260
|
+
body:
|
|
261
|
+
id: 42b720ef280c7a7a3be8cabe
|
|
262
|
+
cmsLocaleId: 653ad57de882f528b32e810e
|
|
263
|
+
lastPublished: '2022-11-29T16:22:43.159Z'
|
|
264
|
+
lastUpdated: '2022-11-17T17:19:43.282Z'
|
|
265
|
+
createdOn: '2022-11-17T17:11:57.148Z'
|
|
266
|
+
isArchived: false
|
|
267
|
+
isDraft: false
|
|
268
|
+
fieldData:
|
|
269
|
+
name: Pan Galactic Gargle Blaster Recipe
|
|
270
|
+
slug: pan-galactic-gargle-blaster
|
|
271
|
+
- name: MultipleItems
|
|
272
|
+
path-parameters:
|
|
273
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
274
|
+
request:
|
|
275
|
+
items:
|
|
276
|
+
- isArchived: false
|
|
277
|
+
isDraft: false
|
|
278
|
+
fieldData:
|
|
279
|
+
name: Senior Data Analyst
|
|
280
|
+
slug: senior-data-analyst
|
|
281
|
+
- isArchived: false
|
|
282
|
+
isDraft: false
|
|
283
|
+
fieldData:
|
|
284
|
+
name: Product Manager
|
|
285
|
+
slug: product-manager
|
|
286
|
+
response:
|
|
287
|
+
body:
|
|
288
|
+
id: 42b720ef280c7a7a3be8cabe
|
|
289
|
+
cmsLocaleId: 653ad57de882f528b32e810e
|
|
290
|
+
lastPublished: '2022-11-29T16:22:43.159Z'
|
|
291
|
+
lastUpdated: '2022-11-17T17:19:43.282Z'
|
|
292
|
+
createdOn: '2022-11-17T17:11:57.148Z'
|
|
293
|
+
isArchived: false
|
|
294
|
+
isDraft: false
|
|
295
|
+
fieldData:
|
|
296
|
+
name: Pan Galactic Gargle Blaster Recipe
|
|
297
|
+
slug: pan-galactic-gargle-blaster
|
|
298
|
+
delete-items:
|
|
299
|
+
path: /collections/{collection_id}/items
|
|
300
|
+
method: DELETE
|
|
301
|
+
auth: true
|
|
302
|
+
docs: >
|
|
303
|
+
Delete Items from a Collection.
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
**Note:** If the `cmsLocaleId` parameter is undefined or empty and the
|
|
307
|
+
items are localized, items will be deleted only in the primary locale.
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
Required scope | `CMS:write`
|
|
311
|
+
source:
|
|
312
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
313
|
+
path-parameters:
|
|
314
|
+
collection_id:
|
|
315
|
+
type: string
|
|
316
|
+
docs: Unique identifier for a Collection
|
|
317
|
+
display-name: Delete Collection Items
|
|
318
|
+
request:
|
|
319
|
+
name: ItemsDeleteItemsRequest
|
|
320
|
+
body:
|
|
321
|
+
properties:
|
|
322
|
+
items: optional<list<ItemsDeleteItemsRequestItemsItem>>
|
|
323
|
+
content-type: application/json
|
|
324
|
+
errors:
|
|
325
|
+
- root.BadRequestError
|
|
326
|
+
- root.UnauthorizedError
|
|
327
|
+
- root.NotFoundError
|
|
328
|
+
- root.TooManyRequestsError
|
|
329
|
+
- root.InternalServerError
|
|
330
|
+
examples:
|
|
331
|
+
- path-parameters:
|
|
332
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
333
|
+
request: {}
|
|
334
|
+
update-items:
|
|
335
|
+
path: /collections/{collection_id}/items
|
|
336
|
+
method: PATCH
|
|
337
|
+
auth: true
|
|
338
|
+
docs: >
|
|
339
|
+
Update a single item or multiple items (up to 100) in a Collection.
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
**Note:** If the `cmsLocaleId` parameter is undefined or empty and the
|
|
343
|
+
items are localized, items will be updated only in the primary locale.
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
Required scope | `CMS:write`
|
|
347
|
+
source:
|
|
348
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
349
|
+
path-parameters:
|
|
350
|
+
collection_id:
|
|
351
|
+
type: string
|
|
352
|
+
docs: Unique identifier for a Collection
|
|
353
|
+
display-name: Update Collection Items
|
|
354
|
+
request:
|
|
355
|
+
name: ItemsUpdateItemsRequest
|
|
356
|
+
body:
|
|
357
|
+
properties:
|
|
358
|
+
items: optional<list<root.CollectionItemWithIdInput>>
|
|
359
|
+
content-type: application/json
|
|
360
|
+
response:
|
|
361
|
+
docs: Request was successful
|
|
362
|
+
type: root.CollectionItem
|
|
363
|
+
errors:
|
|
364
|
+
- root.BadRequestError
|
|
365
|
+
- root.UnauthorizedError
|
|
366
|
+
- root.NotFoundError
|
|
367
|
+
- root.TooManyRequestsError
|
|
368
|
+
- root.InternalServerError
|
|
369
|
+
examples:
|
|
370
|
+
- name: LocalizedItems
|
|
371
|
+
path-parameters:
|
|
372
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
373
|
+
request:
|
|
374
|
+
items:
|
|
375
|
+
- id: 66f6ed9576ddacf3149d5ea6
|
|
376
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca5
|
|
377
|
+
fieldData:
|
|
378
|
+
name: Ne Paniquez Pas
|
|
379
|
+
slug: ne-paniquez-pas
|
|
380
|
+
- id: 66f6ed9576ddacf3149d5ea6
|
|
381
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca4
|
|
382
|
+
fieldData:
|
|
383
|
+
name: No Entrar en Pánico
|
|
384
|
+
slug: no-entrar-en-panico
|
|
385
|
+
- id: 66f6ed9576ddacf3149d5eaa
|
|
386
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca5
|
|
387
|
+
fieldData:
|
|
388
|
+
name: Au Revoir et Merci pour Tous les Poissons
|
|
389
|
+
slug: au-revoir-et-merci
|
|
390
|
+
- id: 66f6ed9576ddacf3149d5eaa
|
|
391
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca4
|
|
392
|
+
fieldData:
|
|
393
|
+
name: Hasta Luego y Gracias por Todo el Pescado
|
|
394
|
+
slug: hasta-luego-y-gracias
|
|
395
|
+
response:
|
|
396
|
+
body:
|
|
397
|
+
id: id
|
|
398
|
+
cmsLocaleId: 653ad57de882f528b32e810e
|
|
399
|
+
lastPublished: '2023-03-17T18:47:35.560Z'
|
|
400
|
+
lastUpdated: '2023-03-17T18:47:35.560Z'
|
|
401
|
+
createdOn: '2023-03-17T18:47:35.560Z'
|
|
402
|
+
isArchived: true
|
|
403
|
+
isDraft: true
|
|
404
|
+
fieldData:
|
|
405
|
+
name: My new item
|
|
406
|
+
slug: my-new-item
|
|
407
|
+
- name: MultipleItems
|
|
408
|
+
path-parameters:
|
|
409
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
410
|
+
request:
|
|
411
|
+
items:
|
|
412
|
+
- id: 580e64008c9a982ac9b8b754
|
|
413
|
+
isArchived: false
|
|
414
|
+
isDraft: false
|
|
415
|
+
fieldData:
|
|
416
|
+
name: Senior Data Analyst
|
|
417
|
+
slug: senior-data-analyst
|
|
418
|
+
- id: 580e64008c9a982ac9b8b754
|
|
419
|
+
isArchived: false
|
|
420
|
+
isDraft: false
|
|
421
|
+
fieldData:
|
|
422
|
+
name: Product Manager
|
|
423
|
+
slug: product-manager
|
|
424
|
+
response:
|
|
425
|
+
body:
|
|
426
|
+
id: id
|
|
427
|
+
cmsLocaleId: 653ad57de882f528b32e810e
|
|
428
|
+
lastPublished: '2023-03-17T18:47:35.560Z'
|
|
429
|
+
lastUpdated: '2023-03-17T18:47:35.560Z'
|
|
430
|
+
createdOn: '2023-03-17T18:47:35.560Z'
|
|
431
|
+
isArchived: true
|
|
432
|
+
isDraft: true
|
|
433
|
+
fieldData:
|
|
434
|
+
name: My new item
|
|
435
|
+
slug: my-new-item
|
|
436
|
+
- name: Multiple items updated across multiple locales
|
|
437
|
+
path-parameters:
|
|
438
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
439
|
+
request:
|
|
440
|
+
items:
|
|
441
|
+
- id: 66f6ed9576ddacf3149d5ea6
|
|
442
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca5
|
|
443
|
+
fieldData:
|
|
444
|
+
name: Ne Paniquez Pas
|
|
445
|
+
slug: ne-paniquez-pas
|
|
446
|
+
- id: 66f6ed9576ddacf3149d5ea6
|
|
447
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca4
|
|
448
|
+
fieldData:
|
|
449
|
+
name: No Entrar en Pánico
|
|
450
|
+
slug: no-entrar-en-panico
|
|
451
|
+
- id: 66f6ed9576ddacf3149d5eaa
|
|
452
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca5
|
|
453
|
+
fieldData:
|
|
454
|
+
name: Au Revoir et Merci pour Tous les Poissons
|
|
455
|
+
slug: au-revoir-et-merci
|
|
456
|
+
- id: 66f6ed9576ddacf3149d5eaa
|
|
457
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca4
|
|
458
|
+
fieldData:
|
|
459
|
+
name: Hasta Luego y Gracias por Todo el Pescado
|
|
460
|
+
slug: hasta-luego-y-gracias
|
|
461
|
+
response:
|
|
462
|
+
body:
|
|
463
|
+
id: id
|
|
464
|
+
cmsLocaleId: 653ad57de882f528b32e810e
|
|
465
|
+
lastPublished: '2023-03-17T18:47:35.560Z'
|
|
466
|
+
lastUpdated: '2023-03-17T18:47:35.560Z'
|
|
467
|
+
createdOn: '2023-03-17T18:47:35.560Z'
|
|
468
|
+
isArchived: true
|
|
469
|
+
isDraft: true
|
|
470
|
+
fieldData:
|
|
471
|
+
name: My new item
|
|
472
|
+
slug: my-new-item
|
|
473
|
+
- name: Mulitple items updated in a single locale
|
|
474
|
+
path-parameters:
|
|
475
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
476
|
+
request:
|
|
477
|
+
items:
|
|
478
|
+
- id: 66f6ed9576ddacf3149d5ea6
|
|
479
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca5
|
|
480
|
+
fieldData:
|
|
481
|
+
name: Ne Paniquez Pas
|
|
482
|
+
slug: ne-paniquez-pas
|
|
483
|
+
- id: 66f6ed9576ddacf3149d5ea6
|
|
484
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca4
|
|
485
|
+
fieldData:
|
|
486
|
+
name: No Entrar en Pánico
|
|
487
|
+
slug: no-entrar-en-panico
|
|
488
|
+
- id: 66f6ed9576ddacf3149d5eaa
|
|
489
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca5
|
|
490
|
+
fieldData:
|
|
491
|
+
name: Au Revoir et Merci pour Tous les Poissons
|
|
492
|
+
slug: au-revoir-et-merci
|
|
493
|
+
- id: 66f6ed9576ddacf3149d5eaa
|
|
494
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca4
|
|
495
|
+
fieldData:
|
|
496
|
+
name: Hasta Luego y Gracias por Todo el Pescado
|
|
497
|
+
slug: hasta-luego-y-gracias
|
|
498
|
+
response:
|
|
499
|
+
body:
|
|
500
|
+
id: id
|
|
501
|
+
cmsLocaleId: 653ad57de882f528b32e810e
|
|
502
|
+
lastPublished: '2023-03-17T18:47:35.560Z'
|
|
503
|
+
lastUpdated: '2023-03-17T18:47:35.560Z'
|
|
504
|
+
createdOn: '2023-03-17T18:47:35.560Z'
|
|
505
|
+
isArchived: true
|
|
506
|
+
isDraft: true
|
|
507
|
+
fieldData:
|
|
508
|
+
name: My new item
|
|
509
|
+
slug: my-new-item
|
|
510
|
+
list-items-live:
|
|
511
|
+
path: /collections/{collection_id}/items/live
|
|
512
|
+
method: GET
|
|
513
|
+
auth: true
|
|
514
|
+
docs: |
|
|
515
|
+
List of all live Items within a Collection.
|
|
516
|
+
|
|
517
|
+
Required scope | `CMS:read`
|
|
518
|
+
source:
|
|
519
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
520
|
+
path-parameters:
|
|
521
|
+
collection_id:
|
|
522
|
+
type: string
|
|
523
|
+
docs: Unique identifier for a Collection
|
|
524
|
+
display-name: List Live Collection Items
|
|
525
|
+
request:
|
|
526
|
+
name: ItemsListItemsLiveRequest
|
|
527
|
+
query-parameters:
|
|
528
|
+
cmsLocaleId:
|
|
529
|
+
type: optional<string>
|
|
530
|
+
docs: >-
|
|
531
|
+
Unique identifier for a CMS Locale. This UID is different from the
|
|
532
|
+
Site locale identifier and is listed as `cmsLocaleId` in the Sites
|
|
533
|
+
response. To query multiple locales, input a comma separated
|
|
534
|
+
string.
|
|
535
|
+
offset:
|
|
536
|
+
type: optional<double>
|
|
537
|
+
docs: >-
|
|
538
|
+
Offset used for pagination if the results have more than limit
|
|
539
|
+
records
|
|
540
|
+
limit:
|
|
541
|
+
type: optional<double>
|
|
542
|
+
docs: 'Maximum number of records to be returned (max limit: 100)'
|
|
543
|
+
name:
|
|
544
|
+
type: optional<string>
|
|
545
|
+
docs: The name of the item(s)
|
|
546
|
+
slug:
|
|
547
|
+
type: optional<string>
|
|
548
|
+
docs: The slug of the item
|
|
549
|
+
sortBy:
|
|
550
|
+
type: optional<ItemsListItemsLiveRequestSortBy>
|
|
551
|
+
docs: Sort results by the provided value
|
|
552
|
+
sortOrder:
|
|
553
|
+
type: optional<ItemsListItemsLiveRequestSortOrder>
|
|
554
|
+
docs: Sorts the results by asc or desc
|
|
555
|
+
response:
|
|
556
|
+
docs: Request was successful
|
|
557
|
+
type: root.CollectionItemList
|
|
558
|
+
errors:
|
|
559
|
+
- root.BadRequestError
|
|
560
|
+
- root.UnauthorizedError
|
|
561
|
+
- root.NotFoundError
|
|
562
|
+
- root.TooManyRequestsError
|
|
563
|
+
- root.InternalServerError
|
|
564
|
+
examples:
|
|
565
|
+
- path-parameters:
|
|
566
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
567
|
+
response:
|
|
568
|
+
body:
|
|
569
|
+
items:
|
|
570
|
+
- id: 62b720ef280c7a7a3be8cabe
|
|
571
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca3
|
|
572
|
+
lastPublished: '2022-06-30T13:35:20.878Z'
|
|
573
|
+
lastUpdated: '2022-06-25T14:51:27.809Z'
|
|
574
|
+
createdOn: '2022-06-25T14:51:27.809Z'
|
|
575
|
+
isArchived: false
|
|
576
|
+
isDraft: false
|
|
577
|
+
fieldData:
|
|
578
|
+
name: Senior Data Analyst
|
|
579
|
+
slug: senior-data-analyst
|
|
580
|
+
- id: 62c880ef281c7b7b4cf9dabc
|
|
581
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca3
|
|
582
|
+
lastPublished: '2023-04-15T10:25:18.123Z'
|
|
583
|
+
lastUpdated: '2023-04-10T11:45:30.567Z'
|
|
584
|
+
createdOn: '2023-04-10T11:45:30.567Z'
|
|
585
|
+
isArchived: false
|
|
586
|
+
isDraft: false
|
|
587
|
+
fieldData:
|
|
588
|
+
name: Product Manager
|
|
589
|
+
slug: product-manager
|
|
590
|
+
pagination:
|
|
591
|
+
limit: 25
|
|
592
|
+
offset: 0
|
|
593
|
+
total: 2
|
|
594
|
+
create-item-live:
|
|
595
|
+
path: /collections/{collection_id}/items/live
|
|
596
|
+
method: POST
|
|
597
|
+
auth: true
|
|
598
|
+
docs: >
|
|
599
|
+
Create live Item(s) in a Collection. The Item(s) will be published to
|
|
600
|
+
the live site.
|
|
601
|
+
|
|
602
|
+
|
|
603
|
+
|
|
604
|
+
To create items across multiple locales, [please use this
|
|
605
|
+
endpoint.](/v2.0.0/data/reference/cms/collection-items/bulk-items/create-items)
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
Required scope | `CMS:write`
|
|
610
|
+
source:
|
|
611
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
612
|
+
path-parameters:
|
|
613
|
+
collection_id:
|
|
614
|
+
type: string
|
|
615
|
+
docs: Unique identifier for a Collection
|
|
616
|
+
display-name: Create Live Collection Item(s)
|
|
617
|
+
request:
|
|
618
|
+
body: ItemsCreateItemLiveRequest
|
|
619
|
+
content-type: application/json
|
|
620
|
+
response:
|
|
621
|
+
docs: Request was successful
|
|
622
|
+
type: root.CollectionItem
|
|
623
|
+
errors:
|
|
624
|
+
- root.BadRequestError
|
|
625
|
+
- root.UnauthorizedError
|
|
626
|
+
- root.NotFoundError
|
|
627
|
+
- root.TooManyRequestsError
|
|
628
|
+
- root.InternalServerError
|
|
629
|
+
examples:
|
|
630
|
+
- name: SingleItem
|
|
631
|
+
path-parameters:
|
|
632
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
633
|
+
request:
|
|
634
|
+
isArchived: false
|
|
635
|
+
isDraft: false
|
|
636
|
+
fieldData:
|
|
637
|
+
name: Pan Galactic Gargle Blaster Recipe
|
|
638
|
+
slug: pan-galactic-gargle-blaster
|
|
639
|
+
response:
|
|
640
|
+
body:
|
|
641
|
+
id: 42b720ef280c7a7a3be8cabe
|
|
642
|
+
cmsLocaleId: 653ad57de882f528b32e810e
|
|
643
|
+
lastPublished: '2022-11-29T16:22:43.159Z'
|
|
644
|
+
lastUpdated: '2022-11-17T17:19:43.282Z'
|
|
645
|
+
createdOn: '2022-11-17T17:11:57.148Z'
|
|
646
|
+
isArchived: false
|
|
647
|
+
isDraft: false
|
|
648
|
+
fieldData:
|
|
649
|
+
name: Pan Galactic Gargle Blaster Recipe
|
|
650
|
+
slug: pan-galactic-gargle-blaster
|
|
651
|
+
- name: MultipleItems
|
|
652
|
+
path-parameters:
|
|
653
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
654
|
+
request:
|
|
655
|
+
items:
|
|
656
|
+
- isArchived: false
|
|
657
|
+
isDraft: false
|
|
658
|
+
fieldData:
|
|
659
|
+
name: Senior Data Analyst
|
|
660
|
+
slug: senior-data-analyst
|
|
661
|
+
- isArchived: false
|
|
662
|
+
isDraft: false
|
|
663
|
+
fieldData:
|
|
664
|
+
name: Product Manager
|
|
665
|
+
slug: product-manager
|
|
666
|
+
response:
|
|
667
|
+
body:
|
|
668
|
+
id: 42b720ef280c7a7a3be8cabe
|
|
669
|
+
cmsLocaleId: 653ad57de882f528b32e810e
|
|
670
|
+
lastPublished: '2022-11-29T16:22:43.159Z'
|
|
671
|
+
lastUpdated: '2022-11-17T17:19:43.282Z'
|
|
672
|
+
createdOn: '2022-11-17T17:11:57.148Z'
|
|
673
|
+
isArchived: false
|
|
674
|
+
isDraft: false
|
|
675
|
+
fieldData:
|
|
676
|
+
name: Pan Galactic Gargle Blaster Recipe
|
|
677
|
+
slug: pan-galactic-gargle-blaster
|
|
678
|
+
delete-items-live:
|
|
679
|
+
path: /collections/{collection_id}/items/live
|
|
680
|
+
method: DELETE
|
|
681
|
+
auth: true
|
|
682
|
+
docs: >
|
|
683
|
+
Remove an item or multiple items (up to 100 items) from the live site.
|
|
684
|
+
Deleting published items will unpublish the items from the live site and
|
|
685
|
+
set them to draft.
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
**Note:** If the `cmsLocaleId` parameter is undefined or empty and the
|
|
689
|
+
items are localized, items will be unpublished only in the primary
|
|
690
|
+
locale.
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
Required scope | `CMS:write`
|
|
694
|
+
source:
|
|
695
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
696
|
+
path-parameters:
|
|
697
|
+
collection_id:
|
|
698
|
+
type: string
|
|
699
|
+
docs: Unique identifier for a Collection
|
|
700
|
+
display-name: Delete Live Collection Items
|
|
701
|
+
request:
|
|
702
|
+
name: ItemsDeleteItemsLiveRequest
|
|
703
|
+
body:
|
|
704
|
+
properties:
|
|
705
|
+
items: optional<list<ItemsDeleteItemsLiveRequestItemsItem>>
|
|
706
|
+
content-type: application/json
|
|
707
|
+
errors:
|
|
708
|
+
- root.BadRequestError
|
|
709
|
+
- root.UnauthorizedError
|
|
710
|
+
- root.NotFoundError
|
|
711
|
+
- root.TooManyRequestsError
|
|
712
|
+
- root.InternalServerError
|
|
713
|
+
examples:
|
|
714
|
+
- path-parameters:
|
|
715
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
716
|
+
request: {}
|
|
717
|
+
update-items-live:
|
|
718
|
+
path: /collections/{collection_id}/items/live
|
|
719
|
+
method: PATCH
|
|
720
|
+
auth: true
|
|
721
|
+
docs: >
|
|
722
|
+
Update a single live item or multiple live items (up to 100) in a
|
|
723
|
+
Collection
|
|
724
|
+
|
|
725
|
+
|
|
726
|
+
**Note:** If the `cmsLocaleId` parameter is undefined or empty and the
|
|
727
|
+
items are localized, items will be updated only in the primary locale.
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
Required scope | `CMS:write`
|
|
731
|
+
source:
|
|
732
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
733
|
+
path-parameters:
|
|
734
|
+
collection_id:
|
|
735
|
+
type: string
|
|
736
|
+
docs: Unique identifier for a Collection
|
|
737
|
+
display-name: Update Live Collection Items
|
|
738
|
+
request:
|
|
739
|
+
name: ItemsUpdateItemsLiveRequest
|
|
740
|
+
body:
|
|
741
|
+
properties:
|
|
742
|
+
items: optional<list<root.CollectionItemWithIdInput>>
|
|
743
|
+
content-type: application/json
|
|
744
|
+
response:
|
|
745
|
+
docs: Request was successful
|
|
746
|
+
type: root.CollectionItemListNoPagination
|
|
747
|
+
errors:
|
|
748
|
+
- root.BadRequestError
|
|
749
|
+
- root.UnauthorizedError
|
|
750
|
+
- root.NotFoundError
|
|
751
|
+
- root.TooManyRequestsError
|
|
752
|
+
- root.InternalServerError
|
|
753
|
+
examples:
|
|
754
|
+
- name: LocalizedItems
|
|
755
|
+
path-parameters:
|
|
756
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
757
|
+
request:
|
|
758
|
+
items:
|
|
759
|
+
- id: 66f6ed9576ddacf3149d5ea6
|
|
760
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca5
|
|
761
|
+
fieldData:
|
|
762
|
+
name: Ne Paniquez Pas
|
|
763
|
+
slug: ne-paniquez-pas
|
|
764
|
+
- id: 66f6ed9576ddacf3149d5ea6
|
|
765
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca4
|
|
766
|
+
fieldData:
|
|
767
|
+
name: No Entrar en Pánico
|
|
768
|
+
slug: no-entrar-en-panico
|
|
769
|
+
- id: 66f6ed9576ddacf3149d5eaa
|
|
770
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca5
|
|
771
|
+
fieldData:
|
|
772
|
+
name: Au Revoir et Merci pour Tous les Poissons
|
|
773
|
+
slug: au-revoir-et-merci
|
|
774
|
+
- id: 66f6ed9576ddacf3149d5eaa
|
|
775
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca4
|
|
776
|
+
fieldData:
|
|
777
|
+
name: Hasta Luego y Gracias por Todo el Pescado
|
|
778
|
+
slug: hasta-luego-y-gracias
|
|
779
|
+
response:
|
|
780
|
+
body:
|
|
781
|
+
items:
|
|
782
|
+
- id: 66f6ed9576ddacf3149d5ea6
|
|
783
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca5
|
|
784
|
+
lastPublished: '2023-03-17T18:47:35.560Z'
|
|
785
|
+
lastUpdated: '2024-09-27T17:38:29.066Z'
|
|
786
|
+
createdOn: '2024-09-27T17:38:29.066Z'
|
|
787
|
+
isArchived: true
|
|
788
|
+
isDraft: true
|
|
789
|
+
fieldData:
|
|
790
|
+
name: Ne Paniquez Pas
|
|
791
|
+
slug: ne-paniquez-pas
|
|
792
|
+
- id: 66f6ed9576ddacf3149d5ea6
|
|
793
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca4
|
|
794
|
+
lastPublished: '2023-03-17T18:47:35.560Z'
|
|
795
|
+
lastUpdated: '2024-09-27T17:38:29.066Z'
|
|
796
|
+
createdOn: '2024-09-27T17:38:29.066Z'
|
|
797
|
+
isArchived: true
|
|
798
|
+
isDraft: true
|
|
799
|
+
fieldData:
|
|
800
|
+
name: No Entrar en Pánico
|
|
801
|
+
slug: no-entrar-en-panico
|
|
802
|
+
- id: 66f6ed9576ddacf3149d5eaa
|
|
803
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca5
|
|
804
|
+
lastPublished: '2023-03-17T18:47:35.560Z'
|
|
805
|
+
lastUpdated: '2024-09-27T17:38:29.066Z'
|
|
806
|
+
createdOn: '2024-09-27T17:38:29.066Z'
|
|
807
|
+
isArchived: true
|
|
808
|
+
isDraft: true
|
|
809
|
+
fieldData:
|
|
810
|
+
name: Au Revoir et Merci pour Tous les Poissons
|
|
811
|
+
slug: au-revoir-et-merci
|
|
812
|
+
- id: 66f6ed9576ddacf3149d5eaa
|
|
813
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca4
|
|
814
|
+
lastPublished: '2023-03-17T18:47:35.560Z'
|
|
815
|
+
lastUpdated: '2024-09-27T17:38:29.066Z'
|
|
816
|
+
createdOn: '2024-09-27T17:38:29.066Z'
|
|
817
|
+
isArchived: true
|
|
818
|
+
isDraft: true
|
|
819
|
+
fieldData:
|
|
820
|
+
name: Hasta Luego y Gracias por Todo el Pescado
|
|
821
|
+
slug: hasta-luego-y-gracias
|
|
822
|
+
- name: MultipleItems
|
|
823
|
+
path-parameters:
|
|
824
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
825
|
+
request:
|
|
826
|
+
items:
|
|
827
|
+
- id: 580e64008c9a982ac9b8b754
|
|
828
|
+
isArchived: false
|
|
829
|
+
isDraft: false
|
|
830
|
+
fieldData:
|
|
831
|
+
name: Senior Data Analyst
|
|
832
|
+
slug: senior-data-analyst
|
|
833
|
+
- id: 580e64008c9a982ac9b8b754
|
|
834
|
+
isArchived: false
|
|
835
|
+
isDraft: false
|
|
836
|
+
fieldData:
|
|
837
|
+
name: Product Manager
|
|
838
|
+
slug: product-manager
|
|
839
|
+
response:
|
|
840
|
+
body:
|
|
841
|
+
items:
|
|
842
|
+
- id: 66f6ed9576ddacf3149d5ea6
|
|
843
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca5
|
|
844
|
+
lastPublished: '2023-03-17T18:47:35.560Z'
|
|
845
|
+
lastUpdated: '2024-09-27T17:38:29.066Z'
|
|
846
|
+
createdOn: '2024-09-27T17:38:29.066Z'
|
|
847
|
+
isArchived: true
|
|
848
|
+
isDraft: true
|
|
849
|
+
fieldData:
|
|
850
|
+
name: Ne Paniquez Pas
|
|
851
|
+
slug: ne-paniquez-pas
|
|
852
|
+
- id: 66f6ed9576ddacf3149d5ea6
|
|
853
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca4
|
|
854
|
+
lastPublished: '2023-03-17T18:47:35.560Z'
|
|
855
|
+
lastUpdated: '2024-09-27T17:38:29.066Z'
|
|
856
|
+
createdOn: '2024-09-27T17:38:29.066Z'
|
|
857
|
+
isArchived: true
|
|
858
|
+
isDraft: true
|
|
859
|
+
fieldData:
|
|
860
|
+
name: No Entrar en Pánico
|
|
861
|
+
slug: no-entrar-en-panico
|
|
862
|
+
- id: 66f6ed9576ddacf3149d5eaa
|
|
863
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca5
|
|
864
|
+
lastPublished: '2023-03-17T18:47:35.560Z'
|
|
865
|
+
lastUpdated: '2024-09-27T17:38:29.066Z'
|
|
866
|
+
createdOn: '2024-09-27T17:38:29.066Z'
|
|
867
|
+
isArchived: true
|
|
868
|
+
isDraft: true
|
|
869
|
+
fieldData:
|
|
870
|
+
name: Au Revoir et Merci pour Tous les Poissons
|
|
871
|
+
slug: au-revoir-et-merci
|
|
872
|
+
- id: 66f6ed9576ddacf3149d5eaa
|
|
873
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca4
|
|
874
|
+
lastPublished: '2023-03-17T18:47:35.560Z'
|
|
875
|
+
lastUpdated: '2024-09-27T17:38:29.066Z'
|
|
876
|
+
createdOn: '2024-09-27T17:38:29.066Z'
|
|
877
|
+
isArchived: true
|
|
878
|
+
isDraft: true
|
|
879
|
+
fieldData:
|
|
880
|
+
name: Hasta Luego y Gracias por Todo el Pescado
|
|
881
|
+
slug: hasta-luego-y-gracias
|
|
882
|
+
- name: Multiple items updated across multiple locales
|
|
883
|
+
path-parameters:
|
|
884
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
885
|
+
request:
|
|
886
|
+
items:
|
|
887
|
+
- id: 66f6ed9576ddacf3149d5ea6
|
|
888
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca5
|
|
889
|
+
fieldData:
|
|
890
|
+
name: Ne Paniquez Pas
|
|
891
|
+
slug: ne-paniquez-pas
|
|
892
|
+
- id: 66f6ed9576ddacf3149d5ea6
|
|
893
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca4
|
|
894
|
+
fieldData:
|
|
895
|
+
name: No Entrar en Pánico
|
|
896
|
+
slug: no-entrar-en-panico
|
|
897
|
+
- id: 66f6ed9576ddacf3149d5eaa
|
|
898
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca5
|
|
899
|
+
fieldData:
|
|
900
|
+
name: Au Revoir et Merci pour Tous les Poissons
|
|
901
|
+
slug: au-revoir-et-merci
|
|
902
|
+
- id: 66f6ed9576ddacf3149d5eaa
|
|
903
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca4
|
|
904
|
+
fieldData:
|
|
905
|
+
name: Hasta Luego y Gracias por Todo el Pescado
|
|
906
|
+
slug: hasta-luego-y-gracias
|
|
907
|
+
response:
|
|
908
|
+
body:
|
|
909
|
+
items:
|
|
910
|
+
- id: 66f6ed9576ddacf3149d5ea6
|
|
911
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca5
|
|
912
|
+
lastPublished: '2023-03-17T18:47:35.560Z'
|
|
913
|
+
lastUpdated: '2024-09-27T17:38:29.066Z'
|
|
914
|
+
createdOn: '2024-09-27T17:38:29.066Z'
|
|
915
|
+
isArchived: true
|
|
916
|
+
isDraft: true
|
|
917
|
+
fieldData:
|
|
918
|
+
name: Ne Paniquez Pas
|
|
919
|
+
slug: ne-paniquez-pas
|
|
920
|
+
- id: 66f6ed9576ddacf3149d5ea6
|
|
921
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca4
|
|
922
|
+
lastPublished: '2023-03-17T18:47:35.560Z'
|
|
923
|
+
lastUpdated: '2024-09-27T17:38:29.066Z'
|
|
924
|
+
createdOn: '2024-09-27T17:38:29.066Z'
|
|
925
|
+
isArchived: true
|
|
926
|
+
isDraft: true
|
|
927
|
+
fieldData:
|
|
928
|
+
name: No Entrar en Pánico
|
|
929
|
+
slug: no-entrar-en-panico
|
|
930
|
+
- id: 66f6ed9576ddacf3149d5eaa
|
|
931
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca5
|
|
932
|
+
lastPublished: '2023-03-17T18:47:35.560Z'
|
|
933
|
+
lastUpdated: '2024-09-27T17:38:29.066Z'
|
|
934
|
+
createdOn: '2024-09-27T17:38:29.066Z'
|
|
935
|
+
isArchived: true
|
|
936
|
+
isDraft: true
|
|
937
|
+
fieldData:
|
|
938
|
+
name: Au Revoir et Merci pour Tous les Poissons
|
|
939
|
+
slug: au-revoir-et-merci
|
|
940
|
+
- id: 66f6ed9576ddacf3149d5eaa
|
|
941
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca4
|
|
942
|
+
lastPublished: '2023-03-17T18:47:35.560Z'
|
|
943
|
+
lastUpdated: '2024-09-27T17:38:29.066Z'
|
|
944
|
+
createdOn: '2024-09-27T17:38:29.066Z'
|
|
945
|
+
isArchived: true
|
|
946
|
+
isDraft: true
|
|
947
|
+
fieldData:
|
|
948
|
+
name: Hasta Luego y Gracias por Todo el Pescado
|
|
949
|
+
slug: hasta-luego-y-gracias
|
|
950
|
+
- name: Mulitple items updated in a single locale
|
|
951
|
+
path-parameters:
|
|
952
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
953
|
+
request:
|
|
954
|
+
items:
|
|
955
|
+
- id: 66f6ed9576ddacf3149d5ea6
|
|
956
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca5
|
|
957
|
+
fieldData:
|
|
958
|
+
name: Ne Paniquez Pas
|
|
959
|
+
slug: ne-paniquez-pas
|
|
960
|
+
- id: 66f6ed9576ddacf3149d5ea6
|
|
961
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca4
|
|
962
|
+
fieldData:
|
|
963
|
+
name: No Entrar en Pánico
|
|
964
|
+
slug: no-entrar-en-panico
|
|
965
|
+
- id: 66f6ed9576ddacf3149d5eaa
|
|
966
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca5
|
|
967
|
+
fieldData:
|
|
968
|
+
name: Au Revoir et Merci pour Tous les Poissons
|
|
969
|
+
slug: au-revoir-et-merci
|
|
970
|
+
- id: 66f6ed9576ddacf3149d5eaa
|
|
971
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca4
|
|
972
|
+
fieldData:
|
|
973
|
+
name: Hasta Luego y Gracias por Todo el Pescado
|
|
974
|
+
slug: hasta-luego-y-gracias
|
|
975
|
+
response:
|
|
976
|
+
body:
|
|
977
|
+
items:
|
|
978
|
+
- id: 62b720ef280c7a7a3be8cabe
|
|
979
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca3
|
|
980
|
+
lastPublished: '2022-06-30T13:35:20.878Z'
|
|
981
|
+
lastUpdated: '2022-06-25T14:51:27.809Z'
|
|
982
|
+
createdOn: '2022-06-25T14:51:27.809Z'
|
|
983
|
+
isArchived: false
|
|
984
|
+
isDraft: false
|
|
985
|
+
fieldData:
|
|
986
|
+
name: Senior Data Analyst
|
|
987
|
+
slug: senior-data-analyst
|
|
988
|
+
- id: 62c880ef281c7b7b4cf9dabc
|
|
989
|
+
cmsLocaleId: 66f6e966c9e1dc700a857ca3
|
|
990
|
+
lastPublished: '2023-04-15T10:25:18.123Z'
|
|
991
|
+
lastUpdated: '2023-04-10T11:45:30.567Z'
|
|
992
|
+
createdOn: '2023-04-10T11:45:30.567Z'
|
|
993
|
+
isArchived: false
|
|
994
|
+
isDraft: false
|
|
995
|
+
fieldData:
|
|
996
|
+
name: Product Manager
|
|
997
|
+
slug: product-manager
|
|
998
|
+
create-items:
|
|
999
|
+
path: /collections/{collection_id}/items/bulk
|
|
1000
|
+
method: POST
|
|
1001
|
+
auth: true
|
|
1002
|
+
docs: >
|
|
1003
|
+
Create an item or multiple items in a CMS Collection across multiple
|
|
1004
|
+
corresponding locales.
|
|
1005
|
+
|
|
1006
|
+
|
|
1007
|
+
**Notes:**
|
|
1008
|
+
- This endpoint can create up to 100 items in a request.
|
|
1009
|
+
- If the `cmsLocaleIds` parameter is undefined or empty and localization is enabled, items will only be created in the primary locale.
|
|
1010
|
+
|
|
1011
|
+
Required scope | `CMS:write`
|
|
1012
|
+
source:
|
|
1013
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
1014
|
+
path-parameters:
|
|
1015
|
+
collection_id:
|
|
1016
|
+
type: string
|
|
1017
|
+
docs: Unique identifier for a Collection
|
|
1018
|
+
display-name: Create Collection Items
|
|
1019
|
+
request:
|
|
1020
|
+
name: CreateBulkCollectionItemRequestBody
|
|
1021
|
+
body:
|
|
1022
|
+
properties:
|
|
1023
|
+
cmsLocaleIds:
|
|
1024
|
+
type: optional<list<string>>
|
|
1025
|
+
docs: >-
|
|
1026
|
+
Array of identifiers for the locales where the item will be
|
|
1027
|
+
created
|
|
1028
|
+
isArchived:
|
|
1029
|
+
type: optional<boolean>
|
|
1030
|
+
docs: Indicates whether the item is archived.
|
|
1031
|
+
default: false
|
|
1032
|
+
isDraft:
|
|
1033
|
+
type: optional<boolean>
|
|
1034
|
+
docs: Indicates whether the item is in draft state.
|
|
1035
|
+
default: false
|
|
1036
|
+
fieldData: optional<CreateBulkCollectionItemRequestBodyFieldData>
|
|
1037
|
+
content-type: application/json
|
|
1038
|
+
response:
|
|
1039
|
+
docs: Request was successful
|
|
1040
|
+
type: root.BulkCollectionItem
|
|
1041
|
+
errors:
|
|
1042
|
+
- root.BadRequestError
|
|
1043
|
+
- root.UnauthorizedError
|
|
1044
|
+
- root.NotFoundError
|
|
1045
|
+
- root.TooManyRequestsError
|
|
1046
|
+
- root.InternalServerError
|
|
1047
|
+
examples:
|
|
1048
|
+
- name: Create a single item across multiple locales
|
|
1049
|
+
path-parameters:
|
|
1050
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
1051
|
+
request:
|
|
1052
|
+
cmsLocaleIds:
|
|
1053
|
+
- 66f6e966c9e1dc700a857ca3
|
|
1054
|
+
- 66f6e966c9e1dc700a857ca4
|
|
1055
|
+
- 66f6e966c9e1dc700a857ca5
|
|
1056
|
+
isArchived: false
|
|
1057
|
+
isDraft: false
|
|
1058
|
+
fieldData:
|
|
1059
|
+
name: Don’t Panic
|
|
1060
|
+
slug: dont-panic
|
|
1061
|
+
response:
|
|
1062
|
+
body:
|
|
1063
|
+
id: 580e64008c9a982ac9b8b754
|
|
1064
|
+
cmsLocaleIds:
|
|
1065
|
+
- 653ad57de882f528b32e810e
|
|
1066
|
+
- 6514390aea353fc691d69827
|
|
1067
|
+
- 65143930ea353fc691d69cd8
|
|
1068
|
+
lastPublished: '2023-03-17T18:47:35.560Z'
|
|
1069
|
+
lastUpdated: '2023-03-17T18:47:35.560Z'
|
|
1070
|
+
createdOn: '2023-03-17T18:47:35.560Z'
|
|
1071
|
+
isArchived: true
|
|
1072
|
+
isDraft: true
|
|
1073
|
+
fieldData:
|
|
1074
|
+
name: My new item
|
|
1075
|
+
slug: my-new-item
|
|
1076
|
+
- name: Create multiple items across multipel locales
|
|
1077
|
+
path-parameters:
|
|
1078
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
1079
|
+
request:
|
|
1080
|
+
cmsLocaleIds:
|
|
1081
|
+
- 66f6e966c9e1dc700a857ca3
|
|
1082
|
+
- 66f6e966c9e1dc700a857ca4
|
|
1083
|
+
isArchived: false
|
|
1084
|
+
isDraft: false
|
|
1085
|
+
fieldData:
|
|
1086
|
+
- name: Don’t Panic
|
|
1087
|
+
slug: dont-panic
|
|
1088
|
+
- name: So Long and Thanks for All the Fish
|
|
1089
|
+
slug: so-long-and-thanks
|
|
1090
|
+
response:
|
|
1091
|
+
body:
|
|
1092
|
+
id: 580e64008c9a982ac9b8b754
|
|
1093
|
+
cmsLocaleIds:
|
|
1094
|
+
- 653ad57de882f528b32e810e
|
|
1095
|
+
- 6514390aea353fc691d69827
|
|
1096
|
+
- 65143930ea353fc691d69cd8
|
|
1097
|
+
lastPublished: '2023-03-17T18:47:35.560Z'
|
|
1098
|
+
lastUpdated: '2023-03-17T18:47:35.560Z'
|
|
1099
|
+
createdOn: '2023-03-17T18:47:35.560Z'
|
|
1100
|
+
isArchived: true
|
|
1101
|
+
isDraft: true
|
|
1102
|
+
fieldData:
|
|
1103
|
+
name: My new item
|
|
1104
|
+
slug: my-new-item
|
|
1105
|
+
- name: Single item created across multiple locales
|
|
1106
|
+
path-parameters:
|
|
1107
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
1108
|
+
request:
|
|
1109
|
+
cmsLocaleIds:
|
|
1110
|
+
- 66f6e966c9e1dc700a857ca3
|
|
1111
|
+
- 66f6e966c9e1dc700a857ca4
|
|
1112
|
+
- 66f6e966c9e1dc700a857ca5
|
|
1113
|
+
isArchived: false
|
|
1114
|
+
isDraft: false
|
|
1115
|
+
fieldData:
|
|
1116
|
+
name: Don’t Panic
|
|
1117
|
+
slug: dont-panic
|
|
1118
|
+
response:
|
|
1119
|
+
body:
|
|
1120
|
+
id: 580e64008c9a982ac9b8b754
|
|
1121
|
+
cmsLocaleIds:
|
|
1122
|
+
- 653ad57de882f528b32e810e
|
|
1123
|
+
- 6514390aea353fc691d69827
|
|
1124
|
+
- 65143930ea353fc691d69cd8
|
|
1125
|
+
lastPublished: '2023-03-17T18:47:35.560Z'
|
|
1126
|
+
lastUpdated: '2023-03-17T18:47:35.560Z'
|
|
1127
|
+
createdOn: '2023-03-17T18:47:35.560Z'
|
|
1128
|
+
isArchived: true
|
|
1129
|
+
isDraft: true
|
|
1130
|
+
fieldData:
|
|
1131
|
+
name: My new item
|
|
1132
|
+
slug: my-new-item
|
|
1133
|
+
- name: Multiple items created across multiple locales
|
|
1134
|
+
path-parameters:
|
|
1135
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
1136
|
+
request:
|
|
1137
|
+
cmsLocaleIds:
|
|
1138
|
+
- 66f6e966c9e1dc700a857ca3
|
|
1139
|
+
- 66f6e966c9e1dc700a857ca4
|
|
1140
|
+
- 66f6e966c9e1dc700a857ca5
|
|
1141
|
+
isArchived: false
|
|
1142
|
+
isDraft: false
|
|
1143
|
+
fieldData:
|
|
1144
|
+
name: Don’t Panic
|
|
1145
|
+
slug: dont-panic
|
|
1146
|
+
response:
|
|
1147
|
+
body:
|
|
1148
|
+
id: 580e64008c9a982ac9b8b754
|
|
1149
|
+
cmsLocaleIds:
|
|
1150
|
+
- 653ad57de882f528b32e810e
|
|
1151
|
+
- 6514390aea353fc691d69827
|
|
1152
|
+
- 65143930ea353fc691d69cd8
|
|
1153
|
+
lastPublished: '2023-03-17T18:47:35.560Z'
|
|
1154
|
+
lastUpdated: '2023-03-17T18:47:35.560Z'
|
|
1155
|
+
createdOn: '2023-03-17T18:47:35.560Z'
|
|
1156
|
+
isArchived: true
|
|
1157
|
+
isDraft: true
|
|
1158
|
+
fieldData:
|
|
1159
|
+
name: My new item
|
|
1160
|
+
slug: my-new-item
|
|
1161
|
+
get-item:
|
|
1162
|
+
path: /collections/{collection_id}/items/{item_id}
|
|
1163
|
+
method: GET
|
|
1164
|
+
auth: true
|
|
1165
|
+
docs: |
|
|
1166
|
+
Get details of a selected Collection Item.
|
|
1167
|
+
|
|
1168
|
+
Required scope | `CMS:read`
|
|
1169
|
+
source:
|
|
1170
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
1171
|
+
path-parameters:
|
|
1172
|
+
collection_id:
|
|
1173
|
+
type: string
|
|
1174
|
+
docs: Unique identifier for a Collection
|
|
1175
|
+
item_id:
|
|
1176
|
+
type: string
|
|
1177
|
+
docs: Unique identifier for an Item
|
|
1178
|
+
display-name: Get Collection Item
|
|
1179
|
+
request:
|
|
1180
|
+
name: ItemsGetItemRequest
|
|
1181
|
+
query-parameters:
|
|
1182
|
+
cmsLocaleId:
|
|
1183
|
+
type: optional<string>
|
|
1184
|
+
docs: >-
|
|
1185
|
+
Unique identifier for a CMS Locale. This UID is different from the
|
|
1186
|
+
Site locale identifier and is listed as `cmsLocaleId` in the Sites
|
|
1187
|
+
response. To query multiple locales, input a comma separated
|
|
1188
|
+
string.
|
|
1189
|
+
response:
|
|
1190
|
+
docs: Request was successful
|
|
1191
|
+
type: root.CollectionItem
|
|
1192
|
+
errors:
|
|
1193
|
+
- root.BadRequestError
|
|
1194
|
+
- root.UnauthorizedError
|
|
1195
|
+
- root.NotFoundError
|
|
1196
|
+
- root.TooManyRequestsError
|
|
1197
|
+
- root.InternalServerError
|
|
1198
|
+
examples:
|
|
1199
|
+
- path-parameters:
|
|
1200
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
1201
|
+
item_id: 580e64008c9a982ac9b8b754
|
|
1202
|
+
response:
|
|
1203
|
+
body:
|
|
1204
|
+
id: 42b720ef280c7a7a3be8cabe
|
|
1205
|
+
cmsLocaleId: 653ad57de882f528b32e810e
|
|
1206
|
+
lastPublished: '2022-11-29T16:22:43.159Z'
|
|
1207
|
+
lastUpdated: '2022-11-17T17:19:43.282Z'
|
|
1208
|
+
createdOn: '2022-11-17T17:11:57.148Z'
|
|
1209
|
+
isArchived: false
|
|
1210
|
+
isDraft: false
|
|
1211
|
+
fieldData:
|
|
1212
|
+
name: Pan Galactic Gargle Blaster Recipe
|
|
1213
|
+
slug: pan-galactic-gargle-blaster
|
|
1214
|
+
delete-item:
|
|
1215
|
+
path: /collections/{collection_id}/items/{item_id}
|
|
1216
|
+
method: DELETE
|
|
1217
|
+
auth: true
|
|
1218
|
+
docs: >
|
|
1219
|
+
Delete an Item from a Collection. This endpoint does not currently
|
|
1220
|
+
support bulk deletion.
|
|
1221
|
+
|
|
1222
|
+
|
|
1223
|
+
Required scope | `CMS:write`
|
|
1224
|
+
source:
|
|
1225
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
1226
|
+
path-parameters:
|
|
1227
|
+
collection_id:
|
|
1228
|
+
type: string
|
|
1229
|
+
docs: Unique identifier for a Collection
|
|
1230
|
+
item_id:
|
|
1231
|
+
type: string
|
|
1232
|
+
docs: Unique identifier for an Item
|
|
1233
|
+
display-name: Delete Collection Item
|
|
1234
|
+
request:
|
|
1235
|
+
name: ItemsDeleteItemRequest
|
|
1236
|
+
query-parameters:
|
|
1237
|
+
cmsLocaleId:
|
|
1238
|
+
type: optional<string>
|
|
1239
|
+
docs: >-
|
|
1240
|
+
Unique identifier for a CMS Locale. This UID is different from the
|
|
1241
|
+
Site locale identifier and is listed as `cmsLocaleId` in the Sites
|
|
1242
|
+
response. To query multiple locales, input a comma separated
|
|
1243
|
+
string.
|
|
1244
|
+
errors:
|
|
1245
|
+
- root.BadRequestError
|
|
1246
|
+
- root.UnauthorizedError
|
|
1247
|
+
- root.NotFoundError
|
|
1248
|
+
- root.TooManyRequestsError
|
|
1249
|
+
- root.InternalServerError
|
|
1250
|
+
examples:
|
|
1251
|
+
- path-parameters:
|
|
1252
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
1253
|
+
item_id: 580e64008c9a982ac9b8b754
|
|
1254
|
+
update-item:
|
|
1255
|
+
path: /collections/{collection_id}/items/{item_id}
|
|
1256
|
+
method: PATCH
|
|
1257
|
+
auth: true
|
|
1258
|
+
docs: |
|
|
1259
|
+
Update a selected Item in a Collection.
|
|
1260
|
+
|
|
1261
|
+
Required scope | `CMS:write`
|
|
1262
|
+
source:
|
|
1263
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
1264
|
+
path-parameters:
|
|
1265
|
+
collection_id:
|
|
1266
|
+
type: string
|
|
1267
|
+
docs: Unique identifier for a Collection
|
|
1268
|
+
item_id:
|
|
1269
|
+
type: string
|
|
1270
|
+
docs: Unique identifier for an Item
|
|
1271
|
+
display-name: Update Collection Item
|
|
1272
|
+
request:
|
|
1273
|
+
body: root.CollectionItem
|
|
1274
|
+
content-type: application/json
|
|
1275
|
+
response:
|
|
1276
|
+
docs: Request was successful
|
|
1277
|
+
type: root.CollectionItem
|
|
1278
|
+
errors:
|
|
1279
|
+
- root.BadRequestError
|
|
1280
|
+
- root.UnauthorizedError
|
|
1281
|
+
- root.NotFoundError
|
|
1282
|
+
- root.TooManyRequestsError
|
|
1283
|
+
- root.InternalServerError
|
|
1284
|
+
examples:
|
|
1285
|
+
- path-parameters:
|
|
1286
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
1287
|
+
item_id: 580e64008c9a982ac9b8b754
|
|
1288
|
+
request:
|
|
1289
|
+
id: 42b720ef280c7a7a3be8cabe
|
|
1290
|
+
cmsLocaleId: 653ad57de882f528b32e810e
|
|
1291
|
+
lastPublished: '2022-11-29T16:22:43.159Z'
|
|
1292
|
+
lastUpdated: '2022-11-17T17:19:43.282Z'
|
|
1293
|
+
createdOn: '2022-11-17T17:11:57.148Z'
|
|
1294
|
+
isArchived: false
|
|
1295
|
+
isDraft: false
|
|
1296
|
+
fieldData:
|
|
1297
|
+
name: Pan Galactic Gargle Blaster Recipe
|
|
1298
|
+
slug: pan-galactic-gargle-blaster
|
|
1299
|
+
response:
|
|
1300
|
+
body:
|
|
1301
|
+
id: 42b720ef280c7a7a3be8cabe
|
|
1302
|
+
cmsLocaleId: 653ad57de882f528b32e810e
|
|
1303
|
+
lastPublished: '2022-11-29T16:22:43.159Z'
|
|
1304
|
+
lastUpdated: '2022-11-17T17:19:43.282Z'
|
|
1305
|
+
createdOn: '2022-11-17T17:11:57.148Z'
|
|
1306
|
+
isArchived: false
|
|
1307
|
+
isDraft: false
|
|
1308
|
+
fieldData:
|
|
1309
|
+
name: Pan Galactic Gargle Blaster Recipe
|
|
1310
|
+
slug: pan-galactic-gargle-blaster
|
|
1311
|
+
get-item-live:
|
|
1312
|
+
path: /collections/{collection_id}/items/{item_id}/live
|
|
1313
|
+
method: GET
|
|
1314
|
+
auth: true
|
|
1315
|
+
docs: |
|
|
1316
|
+
Get details of a selected Collection live Item.
|
|
1317
|
+
|
|
1318
|
+
Required scope | `CMS:read`
|
|
1319
|
+
source:
|
|
1320
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
1321
|
+
path-parameters:
|
|
1322
|
+
collection_id:
|
|
1323
|
+
type: string
|
|
1324
|
+
docs: Unique identifier for a Collection
|
|
1325
|
+
item_id:
|
|
1326
|
+
type: string
|
|
1327
|
+
docs: Unique identifier for an Item
|
|
1328
|
+
display-name: Get Live Collection Item
|
|
1329
|
+
request:
|
|
1330
|
+
name: ItemsGetItemLiveRequest
|
|
1331
|
+
query-parameters:
|
|
1332
|
+
cmsLocaleId:
|
|
1333
|
+
type: optional<string>
|
|
1334
|
+
docs: >-
|
|
1335
|
+
Unique identifier for a CMS Locale. This UID is different from the
|
|
1336
|
+
Site locale identifier and is listed as `cmsLocaleId` in the Sites
|
|
1337
|
+
response. To query multiple locales, input a comma separated
|
|
1338
|
+
string.
|
|
1339
|
+
response:
|
|
1340
|
+
docs: Request was successful
|
|
1341
|
+
type: root.CollectionItem
|
|
1342
|
+
errors:
|
|
1343
|
+
- root.BadRequestError
|
|
1344
|
+
- root.UnauthorizedError
|
|
1345
|
+
- root.NotFoundError
|
|
1346
|
+
- root.TooManyRequestsError
|
|
1347
|
+
- root.InternalServerError
|
|
1348
|
+
examples:
|
|
1349
|
+
- path-parameters:
|
|
1350
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
1351
|
+
item_id: 580e64008c9a982ac9b8b754
|
|
1352
|
+
response:
|
|
1353
|
+
body:
|
|
1354
|
+
id: 42b720ef280c7a7a3be8cabe
|
|
1355
|
+
cmsLocaleId: 653ad57de882f528b32e810e
|
|
1356
|
+
lastPublished: '2022-11-29T16:22:43.159Z'
|
|
1357
|
+
lastUpdated: '2022-11-17T17:19:43.282Z'
|
|
1358
|
+
createdOn: '2022-11-17T17:11:57.148Z'
|
|
1359
|
+
isArchived: false
|
|
1360
|
+
isDraft: false
|
|
1361
|
+
fieldData:
|
|
1362
|
+
name: Pan Galactic Gargle Blaster Recipe
|
|
1363
|
+
slug: pan-galactic-gargle-blaster
|
|
1364
|
+
delete-item-live:
|
|
1365
|
+
path: /collections/{collection_id}/items/{item_id}/live
|
|
1366
|
+
method: DELETE
|
|
1367
|
+
auth: true
|
|
1368
|
+
docs: >
|
|
1369
|
+
Remove a live item from the site. Removing a published item will
|
|
1370
|
+
unpublish the item from the live site and set it to draft.
|
|
1371
|
+
|
|
1372
|
+
|
|
1373
|
+
This endpoint does not currently support bulk deletion.
|
|
1374
|
+
|
|
1375
|
+
|
|
1376
|
+
Required scope | `CMS:write`
|
|
1377
|
+
source:
|
|
1378
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
1379
|
+
path-parameters:
|
|
1380
|
+
collection_id:
|
|
1381
|
+
type: string
|
|
1382
|
+
docs: Unique identifier for a Collection
|
|
1383
|
+
item_id:
|
|
1384
|
+
type: string
|
|
1385
|
+
docs: Unique identifier for an Item
|
|
1386
|
+
display-name: Delete Live Collection Item
|
|
1387
|
+
request:
|
|
1388
|
+
name: ItemsDeleteItemLiveRequest
|
|
1389
|
+
query-parameters:
|
|
1390
|
+
cmsLocaleId:
|
|
1391
|
+
type: optional<string>
|
|
1392
|
+
docs: >-
|
|
1393
|
+
Unique identifier for a CMS Locale. This UID is different from the
|
|
1394
|
+
Site locale identifier and is listed as `cmsLocaleId` in the Sites
|
|
1395
|
+
response. To query multiple locales, input a comma separated
|
|
1396
|
+
string.
|
|
1397
|
+
errors:
|
|
1398
|
+
- root.BadRequestError
|
|
1399
|
+
- root.UnauthorizedError
|
|
1400
|
+
- root.NotFoundError
|
|
1401
|
+
- root.TooManyRequestsError
|
|
1402
|
+
- root.InternalServerError
|
|
1403
|
+
examples:
|
|
1404
|
+
- path-parameters:
|
|
1405
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
1406
|
+
item_id: 580e64008c9a982ac9b8b754
|
|
1407
|
+
update-item-live:
|
|
1408
|
+
path: /collections/{collection_id}/items/{item_id}/live
|
|
1409
|
+
method: PATCH
|
|
1410
|
+
auth: true
|
|
1411
|
+
docs: >
|
|
1412
|
+
Update a selected live Item in a Collection. The updates for this Item
|
|
1413
|
+
will be published to the live site.
|
|
1414
|
+
|
|
1415
|
+
|
|
1416
|
+
Required scope | `CMS:write`
|
|
1417
|
+
source:
|
|
1418
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
1419
|
+
path-parameters:
|
|
1420
|
+
collection_id:
|
|
1421
|
+
type: string
|
|
1422
|
+
docs: Unique identifier for a Collection
|
|
1423
|
+
item_id:
|
|
1424
|
+
type: string
|
|
1425
|
+
docs: Unique identifier for an Item
|
|
1426
|
+
display-name: Update Live Collection Item
|
|
1427
|
+
request:
|
|
1428
|
+
body: root.CollectionItem
|
|
1429
|
+
content-type: application/json
|
|
1430
|
+
response:
|
|
1431
|
+
docs: Request was successful
|
|
1432
|
+
type: root.CollectionItem
|
|
1433
|
+
errors:
|
|
1434
|
+
- root.BadRequestError
|
|
1435
|
+
- root.UnauthorizedError
|
|
1436
|
+
- root.NotFoundError
|
|
1437
|
+
- root.TooManyRequestsError
|
|
1438
|
+
- root.InternalServerError
|
|
1439
|
+
examples:
|
|
1440
|
+
- path-parameters:
|
|
1441
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
1442
|
+
item_id: 580e64008c9a982ac9b8b754
|
|
1443
|
+
request:
|
|
1444
|
+
id: 42b720ef280c7a7a3be8cabe
|
|
1445
|
+
cmsLocaleId: 653ad57de882f528b32e810e
|
|
1446
|
+
lastPublished: '2022-11-29T16:22:43.159Z'
|
|
1447
|
+
lastUpdated: '2022-11-17T17:19:43.282Z'
|
|
1448
|
+
createdOn: '2022-11-17T17:11:57.148Z'
|
|
1449
|
+
isArchived: false
|
|
1450
|
+
isDraft: false
|
|
1451
|
+
fieldData:
|
|
1452
|
+
name: Pan Galactic Gargle Blaster Recipe
|
|
1453
|
+
slug: pan-galactic-gargle-blaster
|
|
1454
|
+
response:
|
|
1455
|
+
body:
|
|
1456
|
+
id: 42b720ef280c7a7a3be8cabe
|
|
1457
|
+
cmsLocaleId: 653ad57de882f528b32e810e
|
|
1458
|
+
lastPublished: '2022-11-29T16:22:43.159Z'
|
|
1459
|
+
lastUpdated: '2022-11-17T17:19:43.282Z'
|
|
1460
|
+
createdOn: '2022-11-17T17:11:57.148Z'
|
|
1461
|
+
isArchived: false
|
|
1462
|
+
isDraft: false
|
|
1463
|
+
fieldData:
|
|
1464
|
+
name: Pan Galactic Gargle Blaster Recipe
|
|
1465
|
+
slug: pan-galactic-gargle-blaster
|
|
1466
|
+
publish-item:
|
|
1467
|
+
path: /collections/{collection_id}/items/publish
|
|
1468
|
+
method: POST
|
|
1469
|
+
auth: true
|
|
1470
|
+
docs: |
|
|
1471
|
+
Publish an item or multiple items.
|
|
1472
|
+
|
|
1473
|
+
Required scope | `cms:write`
|
|
1474
|
+
source:
|
|
1475
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
1476
|
+
path-parameters:
|
|
1477
|
+
collection_id:
|
|
1478
|
+
type: string
|
|
1479
|
+
docs: Unique identifier for a Collection
|
|
1480
|
+
display-name: Publish Collection Item
|
|
1481
|
+
request:
|
|
1482
|
+
name: ItemsPublishItemRequest
|
|
1483
|
+
body:
|
|
1484
|
+
properties:
|
|
1485
|
+
itemIds: list<string>
|
|
1486
|
+
content-type: application/json
|
|
1487
|
+
response:
|
|
1488
|
+
docs: Request was successful
|
|
1489
|
+
type: ItemsPublishItemResponse
|
|
1490
|
+
errors:
|
|
1491
|
+
- root.BadRequestError
|
|
1492
|
+
- root.UnauthorizedError
|
|
1493
|
+
- root.NotFoundError
|
|
1494
|
+
- root.ConflictError
|
|
1495
|
+
- root.TooManyRequestsError
|
|
1496
|
+
- root.InternalServerError
|
|
1497
|
+
examples:
|
|
1498
|
+
- path-parameters:
|
|
1499
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
1500
|
+
request:
|
|
1501
|
+
itemIds:
|
|
1502
|
+
- itemIds
|
|
1503
|
+
response:
|
|
1504
|
+
body:
|
|
1505
|
+
publishedItemIds:
|
|
1506
|
+
- 643fd856d66b6528195ee2ca
|
|
1507
|
+
- 643fd856d66b6528195ee2cb
|
|
1508
|
+
errors:
|
|
1509
|
+
- Staging item ID 643fd856d66b6528195ee2cf not found.
|
|
1510
|
+
source:
|
|
1511
|
+
openapi: ../../../referenced-specs/v2.yml
|