From 9a9efc85d3c24dd0c92f5b5fe6c751a2d21db47f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 11 Mar 2026 01:25:16 +0000 Subject: [PATCH 1/3] chore: sync OpenAPI spec from cosmos PR #2468 --- openapi.yaml | 512 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 512 insertions(+) diff --git a/openapi.yaml b/openapi.yaml index 470815da..dac759e6 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -981,6 +981,29 @@ paths: schema: type: string format: uuid + - name: collectionId + in: query + description: Filter pages by collection ID. + required: false + schema: + type: string + format: uuid + - name: pageTypeId + in: query + description: Filter pages by page type ID. + required: false + schema: + type: string + format: uuid + - name: untyped + in: query + description: 'When true, returns only pages with no page type.' + required: false + schema: + type: string + enum: + - 'true' + - 'false' - name: limit in: query description: 'Maximum number of pages to return. Defaults to 20, maximum is 100.' @@ -1396,6 +1419,202 @@ paths: $ref: '#/components/schemas/ConflictResponseDto' tags: - Locale + '/v0/sites/{siteId}/page-types': + post: + operationId: PageTypeController_create_v0 + summary: Create Page Type + description: Create a page type for a site. + parameters: + - name: siteId + in: path + required: true + schema: + type: string + format: uuid + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/CreatePageTypeBodyDto' + responses: + '201': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/CreatePageTypeResponseDto' + '403': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ForbiddenResponseDto' + '404': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/NotFoundResponseDto' + tags: + - Page Type + get: + operationId: PageTypeController_list_v0 + summary: List Page Types + description: List page types for a site. + parameters: + - name: siteId + in: path + required: true + schema: + type: string + format: uuid + responses: + '200': + description: '' + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/GetPageTypeResponseDto' + '403': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ForbiddenResponseDto' + '404': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/NotFoundResponseDto' + tags: + - Page Type + '/v0/sites/{siteId}/page-types/{pageTypeId}': + patch: + operationId: PageTypeController_update_v0 + summary: Update Page Type + description: Update a page type by ID. + parameters: + - name: siteId + in: path + required: true + schema: + type: string + format: uuid + - name: pageTypeId + in: path + required: true + schema: + type: string + format: uuid + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/UpdatePageTypeBodyDto' + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/UpdatePageTypeResponseDto' + '403': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ForbiddenResponseDto' + '404': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/NotFoundResponseDto' + tags: + - Page Type + delete: + operationId: PageTypeController_delete_v0 + summary: Delete Page Type + description: Delete a page type by ID. + parameters: + - name: siteId + in: path + required: true + schema: + type: string + format: uuid + - name: pageTypeId + in: path + required: true + schema: + type: string + format: uuid + responses: + '204': + description: '' + '403': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ForbiddenResponseDto' + '404': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/NotFoundResponseDto' + '409': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ConflictResponseDto' + tags: + - Page Type + get: + operationId: PageTypeController_get_v0 + summary: Get Page Type + description: Get a page type by ID. + parameters: + - name: siteId + in: path + required: true + schema: + type: string + format: uuid + - name: pageTypeId + in: path + required: true + schema: + type: string + format: uuid + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/GetPageTypeResponseDto' + '403': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ForbiddenResponseDto' + '404': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/NotFoundResponseDto' + tags: + - Page Type '/v1/sites/{siteId}/routes': get: operationId: SiteRouteController_list_v1 @@ -2148,6 +2367,18 @@ components: - fr-FR - ar-EG - ja-JP + localeManagementMode: + description: Controls whether locales are managed internally via the builder or externally via API. + type: string + enum: + - internal + - external + pageManagementMode: + description: Controls whether pages are managed internally via the builder or externally via API. + type: string + enum: + - internal + - external required: - object - id @@ -2155,6 +2386,8 @@ components: - hostOrigin - publicApiKey - defaultLocale + - localeManagementMode + - pageManagementMode BadRequestResponseDto: type: object properties: @@ -2249,6 +2482,18 @@ components: - fr-FR - ar-EG - ja-JP + localeManagementMode: + description: Controls whether locales are managed internally via the builder or externally via API. + type: string + enum: + - internal + - external + pageManagementMode: + description: Controls whether pages are managed internally via the builder or externally via API. + type: string + enum: + - internal + - external required: - object - id @@ -2256,6 +2501,8 @@ components: - hostOrigin - publicApiKey - defaultLocale + - localeManagementMode + - pageManagementMode UpdateSiteV1RequestBodyDto: type: object properties: @@ -2304,6 +2551,16 @@ components: type: string format: uri example: 'https://hearthfurniture.com' + defaultLocale: + description: The primary locale of this site. + type: string + example: en-US + examples: + - en + - es + - fr-FR + - ar-EG + - ja-JP additionalProperties: false UpdateSiteV2ResponseBodyDto: type: object @@ -2341,6 +2598,18 @@ components: - fr-FR - ar-EG - ja-JP + localeManagementMode: + description: Controls whether locales are managed internally via the builder or externally via API. + type: string + enum: + - internal + - external + pageManagementMode: + description: Controls whether pages are managed internally via the builder or externally via API. + type: string + enum: + - internal + - external required: - object - id @@ -2348,6 +2617,8 @@ components: - hostOrigin - publicApiKey - defaultLocale + - localeManagementMode + - pageManagementMode ListSiteV1ResponseBodyDto: type: object properties: @@ -2428,6 +2699,18 @@ components: - fr-FR - ar-EG - ja-JP + localeManagementMode: + description: Controls whether locales are managed internally via the builder or externally via API. + type: string + enum: + - internal + - external + pageManagementMode: + description: Controls whether pages are managed internally via the builder or externally via API. + type: string + enum: + - internal + - external required: - object - id @@ -2435,6 +2718,8 @@ components: - hostOrigin - publicApiKey - defaultLocale + - localeManagementMode + - pageManagementMode hasMore: description: The flag that indicates whether there are more sites available. type: boolean @@ -2522,6 +2807,18 @@ components: - fr-FR - ar-EG - ja-JP + localeManagementMode: + description: Controls whether locales are managed internally via the builder or externally via API. + type: string + enum: + - internal + - external + pageManagementMode: + description: Controls whether pages are managed internally via the builder or externally via API. + type: string + enum: + - internal + - external required: - object - id @@ -2529,6 +2826,8 @@ components: - hostOrigin - publicApiKey - defaultLocale + - localeManagementMode + - pageManagementMode CreatePageV1RequestBodyDto: type: object properties: @@ -2540,6 +2839,14 @@ components: description: The name of the page type: string nullable: true + pageTypeId: + description: The page type ID for the page. + type: string + format: uuid + collectionId: + description: The collection to place the page in. Defaults to the site root collection. + type: string + format: uuid required: - pathname - name @@ -2557,6 +2864,16 @@ components: description: The name of the page type: string example: About + pageTypeId: + description: The page type ID of the page. + type: string + format: uuid + nullable: true + collectionId: + description: The collection ID of the page. + type: string + format: uuid + nullable: true seoCanonicalUrl: description: The canonical URL of the page type: string @@ -2592,6 +2909,8 @@ components: - id - pathname - name + - pageTypeId + - collectionId - seoCanonicalUrl - seoIsIndexingBlocked - seoSitemapPriority @@ -2740,6 +3059,7 @@ components: isOnline: description: The flag that indicates whether the page is online. type: boolean + additionalProperties: false UpdatePageV6ResponseBodyDto: type: object properties: @@ -2861,6 +3181,10 @@ components: isOnline: description: Whether the page is online or offline type: boolean + collectionId: + description: The collection to move the page to. + type: string + format: uuid UpdatePageV1ResponseBodyDto: type: object properties: @@ -2875,6 +3199,16 @@ components: description: The name of the page type: string example: About + pageTypeId: + description: The page type ID of the page. + type: string + format: uuid + nullable: true + collectionId: + description: The collection ID of the page. + type: string + format: uuid + nullable: true seoCanonicalUrl: description: The canonical URL of the page type: string @@ -2910,6 +3244,8 @@ components: - id - pathname - name + - pageTypeId + - collectionId - seoCanonicalUrl - seoIsIndexingBlocked - seoSitemapPriority @@ -2932,6 +3268,16 @@ components: description: The name of the page type: string example: About + pageTypeId: + description: The page type ID of the page. + type: string + format: uuid + nullable: true + collectionId: + description: The collection ID of the page. + type: string + format: uuid + nullable: true seoCanonicalUrl: description: The canonical URL of the page type: string @@ -2967,6 +3313,8 @@ components: - id - pathname - name + - pageTypeId + - collectionId - seoCanonicalUrl - seoIsIndexingBlocked - seoSitemapPriority @@ -2990,10 +3338,20 @@ components: type: string isOnline: type: boolean + pageTypeId: + type: string + format: uuid + nullable: true + collectionId: + type: string + format: uuid + nullable: true required: - id - pathname - isOnline + - pageTypeId + - collectionId hasMore: description: Whether there are more pages available for pagination. type: boolean @@ -3475,6 +3833,7 @@ components: type: string format: uri example: 'https://hearthfurniture.com.mx' + nullable: true UpdateSiteLocaleV1ResponseBodyDto: type: object properties: @@ -3512,6 +3871,8 @@ components: type: string format: uri example: 'https://hearthfurniture.com.mx' + nullable: true + additionalProperties: false UpdateSiteLocaleV2ResponseBodyDto: type: object properties: @@ -3635,6 +3996,106 @@ components: - id - locale - domain + CreatePageTypeBodyDto: + type: object + properties: + name: + description: The name of the page type. + type: string + minLength: 1 + isExternal: + description: Whether pages of this type are externally managed. + type: boolean + required: + - name + - isExternal + CreatePageTypeResponseDto: + type: object + properties: + id: + type: string + format: uuid + name: + description: The name of the page type. + type: string + isExternal: + description: Whether pages of this type are externally managed. + type: boolean + createdAt: + description: When the page type was created. + type: string + format: date-time + updatedAt: + description: When the page type was last updated. + type: string + format: date-time + required: + - id + - name + - isExternal + - createdAt + - updatedAt + UpdatePageTypeBodyDto: + type: object + properties: + name: + description: The name of the page type. + type: string + minLength: 1 + required: + - name + UpdatePageTypeResponseDto: + type: object + properties: + id: + type: string + format: uuid + name: + description: The name of the page type. + type: string + isExternal: + description: Whether pages of this type are externally managed. + type: boolean + createdAt: + description: When the page type was created. + type: string + format: date-time + updatedAt: + description: When the page type was last updated. + type: string + format: date-time + required: + - id + - name + - isExternal + - createdAt + - updatedAt + GetPageTypeResponseDto: + type: object + properties: + id: + type: string + format: uuid + name: + description: The name of the page type. + type: string + isExternal: + description: Whether pages of this type are externally managed. + type: boolean + createdAt: + description: When the page type was created. + type: string + format: date-time + updatedAt: + description: When the page type was last updated. + type: string + format: date-time + required: + - id + - name + - isExternal + - createdAt + - updatedAt ListSiteRouteV1ResponseBodyDto: type: object properties: @@ -3817,6 +4278,7 @@ components: description: The route pathname. type: string example: /furniture + additionalProperties: false UpdateSiteRouteV2ResponseBodyDto: description: The route. type: object @@ -3996,6 +4458,8 @@ tags: description: '' - name: Page description: '' + - name: Page Type + description: '' - name: Webhook Management description: '' security: @@ -4028,6 +4492,16 @@ webhooks: description: The name of the page type: string example: About + pageTypeId: + description: The page type ID of the page. + type: string + format: uuid + nullable: true + collectionId: + description: The collection ID of the page. + type: string + format: uuid + nullable: true seoCanonicalUrl: description: The canonical URL of the page type: string @@ -4063,6 +4537,8 @@ webhooks: - id - pathname - name + - pageTypeId + - collectionId - seoCanonicalUrl - seoIsIndexingBlocked - seoSitemapPriority @@ -4104,6 +4580,16 @@ webhooks: description: The name of the page type: string example: About + pageTypeId: + description: The page type ID of the page. + type: string + format: uuid + nullable: true + collectionId: + description: The collection ID of the page. + type: string + format: uuid + nullable: true seoCanonicalUrl: description: The canonical URL of the page type: string @@ -4139,6 +4625,8 @@ webhooks: - id - pathname - name + - pageTypeId + - collectionId - seoCanonicalUrl - seoIsIndexingBlocked - seoSitemapPriority @@ -4180,6 +4668,16 @@ webhooks: description: The name of the page type: string example: About + pageTypeId: + description: The page type ID of the page. + type: string + format: uuid + nullable: true + collectionId: + description: The collection ID of the page. + type: string + format: uuid + nullable: true seoCanonicalUrl: description: The canonical URL of the page type: string @@ -4215,6 +4713,8 @@ webhooks: - id - pathname - name + - pageTypeId + - collectionId - seoCanonicalUrl - seoIsIndexingBlocked - seoSitemapPriority @@ -4256,6 +4756,16 @@ webhooks: description: The name of the page type: string example: About + pageTypeId: + description: The page type ID of the page. + type: string + format: uuid + nullable: true + collectionId: + description: The collection ID of the page. + type: string + format: uuid + nullable: true seoCanonicalUrl: description: The canonical URL of the page type: string @@ -4291,6 +4801,8 @@ webhooks: - id - pathname - name + - pageTypeId + - collectionId - seoCanonicalUrl - seoIsIndexingBlocked - seoSitemapPriority From 2bfd846c8ddc8cfbbbcd8c1106a0d1cf20fcc0f8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 11 Mar 2026 13:22:53 +0000 Subject: [PATCH 2/3] chore: sync OpenAPI spec from cosmos PR #2468 --- openapi.yaml | 111 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 111 insertions(+) diff --git a/openapi.yaml b/openapi.yaml index dac759e6..557c8f3c 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -4851,6 +4851,117 @@ webhooks: - to at: type: number + unstable_diff: + type: object + nullable: true + properties: + components: + items: + type: object + properties: + id: + type: string + locale: + type: string + nullable: true + changeType: + type: string + enum: + - created + - updated + - deleted + required: + - id + - locale + - changeType + type: array + pages: + type: array + items: + type: object + properties: + pageId: + type: string + format: uuid + locale: + type: string + nullable: true + changeType: + type: string + enum: + - created + - updated + - deleted + pathname: + type: string + previousPathname: + type: string + required: + - pageId + - locale + - changeType + - pathname + globalElements: + type: array + items: + type: object + properties: + id: + type: string + format: uuid + locale: + type: string + nullable: true + changeType: + type: string + enum: + - created + - updated + - deleted + required: + - id + - locale + - changeType + swatches: + type: array + items: + type: object + properties: + id: + type: string + format: uuid + changeType: + type: string + enum: + - created + - updated + - deleted + required: + - id + - changeType + typographies: + type: array + items: + type: object + properties: + id: + type: string + format: uuid + changeType: + type: string + enum: + - created + - updated + - deleted + required: + - id + - changeType + required: + - components + - pages + - globalElements + - swatches + - typographies required: - siteId - publish From 6a255bd82ca7388121201f58375701e3f0002c0d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 13 Mar 2026 20:45:48 +0000 Subject: [PATCH 3/3] chore: sync OpenAPI spec from cosmos PR #2468 --- openapi.yaml | 1492 ++++++++++++++++++++++++++++++++------------------ 1 file changed, 973 insertions(+), 519 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index 557c8f3c..2d887947 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -629,6 +629,218 @@ paths: $ref: '#/components/schemas/ForbiddenResponseDto' tags: - Site + '/v0/sites/{siteId}/collections': + post: + operationId: CollectionController_create_v0 + summary: Create Collection + description: Create a collection for a site. + parameters: + - name: siteId + in: path + required: true + schema: + type: string + format: uuid + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/CreateCollectionBodyDto' + responses: + '201': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/CreateCollectionResponseDto' + '400': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/BadRequestResponseDto' + '403': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ForbiddenResponseDto' + '404': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/NotFoundResponseDto' + tags: + - Collection + get: + operationId: CollectionController_list_v0 + summary: List Collections + description: List collections for a site. + parameters: + - name: siteId + in: path + required: true + schema: + type: string + format: uuid + - name: parentId + in: query + required: false + schema: + type: string + format: uuid + - name: pageTypeId + in: query + required: false + schema: + type: string + format: uuid + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ListCollectionsResponseDto' + '403': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ForbiddenResponseDto' + '404': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/NotFoundResponseDto' + tags: + - Collection + '/v0/sites/{siteId}/collections/{collectionId}': + patch: + operationId: CollectionController_update_v0 + summary: Update Collection + description: Rename or move a collection. + parameters: + - name: siteId + in: path + required: true + schema: + type: string + format: uuid + - name: collectionId + in: path + required: true + schema: + type: string + format: uuid + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateCollectionBodyDto' + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateCollectionResponseDto' + '400': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/BadRequestResponseDto' + '403': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ForbiddenResponseDto' + '404': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/NotFoundResponseDto' + tags: + - Collection + delete: + operationId: CollectionController_delete_v0 + summary: Delete Collection + description: Soft-delete a collection and all its descendant pages. + parameters: + - name: siteId + in: path + required: true + schema: + type: string + format: uuid + - name: collectionId + in: path + required: true + schema: + type: string + format: uuid + responses: + '204': + description: '' + '403': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ForbiddenResponseDto' + '404': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/NotFoundResponseDto' + tags: + - Collection + get: + operationId: CollectionController_get_v0 + summary: Get Collection + description: Get a collection by ID. + parameters: + - name: siteId + in: path + required: true + schema: + type: string + format: uuid + - name: collectionId + in: path + required: true + schema: + type: string + format: uuid + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/GetCollectionResponseDto' + '403': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ForbiddenResponseDto' + '404': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/NotFoundResponseDto' + tags: + - Collection '/v1/sites/{siteId}/pages': post: operationId: PageController_create_v1 @@ -1036,9 +1248,11 @@ paths: $ref: '#/components/schemas/ListPagesV0ResponseBodyDto' tags: - Page - '/v1/sites/{siteId}/locales': + '/v0/sites/{siteId}/page-types': post: - operationId: SiteLocaleController_create_v1 + operationId: PageTypeController_create_v0 + summary: Create Page Type + description: Create a page type for a site. parameters: - name: siteId in: path @@ -1051,24 +1265,33 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateSiteLocaleV1RequestBodyDto' + $ref: '#/components/schemas/CreatePageTypeBodyDto' responses: '201': description: '' content: application/json: schema: - $ref: '#/components/schemas/CreateSiteLocaleV1ResponseBodyDto' + $ref: '#/components/schemas/CreatePageTypeResponseDto' + '403': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ForbiddenResponseDto' + '404': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/NotFoundResponseDto' tags: - - Locale + - Page Type get: - operationId: SiteLocaleController_getByLocale_v1 + operationId: PageTypeController_list_v0 + summary: List Page Types + description: List page types for a site. parameters: - - name: code - in: query - required: true - schema: - type: string - name: siteId in: path required: true @@ -1081,34 +1304,9 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GetByLocaleSiteLocaleV1ResponseBodyDto' - tags: - - Locale - /v2/locales: - post: - operationId: SiteLocaleController_createV2_v2 - summary: Create Locale - description: Creates a new locale for a site. - parameters: [] - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/CreateSiteLocaleV2RequestBodyDto' - responses: - '201': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/CreateSiteLocaleV2ResponseBodyDto' - '400': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/BadRequestResponseDto' + type: array + items: + $ref: '#/components/schemas/GetPageTypeResponseDto' '403': description: '' content: @@ -1121,148 +1319,117 @@ paths: application/json: schema: $ref: '#/components/schemas/NotFoundResponseDto' - '409': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/ConflictResponseDto' tags: - - Locale - get: - operationId: SiteLocaleController_listV2_v2 - summary: List Locales - description: Returns a list of locales for a site. + - Page Type + '/v0/sites/{siteId}/page-types/{pageTypeId}': + patch: + operationId: PageTypeController_update_v0 + summary: Update Page Type + description: Update a page type by ID. parameters: - name: siteId - in: query - description: The site ID to list locales from. + in: path required: true schema: type: string format: uuid - - name: limit - in: query - description: The maximum number of locales to return. - required: false - schema: - type: number - default: 20 - maximum: 100 - minimum: 1 - - name: startingAfter - in: query - description: The pagination cursor. This is used to indicate what ID to list from. - required: false + - name: pageTypeId + in: path + required: true schema: type: string format: uuid + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/UpdatePageTypeBodyDto' responses: '200': description: '' content: application/json: schema: - $ref: '#/components/schemas/ListSiteLocaleV2ResponseBodyDto' - '400': + $ref: '#/components/schemas/UpdatePageTypeResponseDto' + '403': description: '' content: application/json: schema: - $ref: '#/components/schemas/BadRequestResponseDto' - '403': + $ref: '#/components/schemas/ForbiddenResponseDto' + '404': description: '' content: application/json: schema: - $ref: '#/components/schemas/ForbiddenResponseDto' + $ref: '#/components/schemas/NotFoundResponseDto' tags: - - Locale - '/v1/locales/{id}': + - Page Type delete: - operationId: SiteLocaleController_delete_v1 + operationId: PageTypeController_delete_v0 + summary: Delete Page Type + description: Delete a page type by ID. parameters: - - name: id + - name: siteId in: path required: true schema: type: string format: uuid - responses: - '204': - description: '' - tags: - - Locale - patch: - operationId: SiteLocaleController_update_v1 - parameters: - - name: id + - name: pageTypeId in: path required: true schema: type: string format: uuid - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/UpdateSiteLocaleV1RequestBodyDto' responses: - '200': + '204': + description: '' + '403': description: '' content: application/json: schema: - $ref: '#/components/schemas/UpdateSiteLocaleV1ResponseBodyDto' - tags: - - Locale - get: - operationId: SiteLocaleController_get_v1 - parameters: - - name: id - in: path - required: true - schema: - type: string - format: uuid - responses: - '200': + $ref: '#/components/schemas/ForbiddenResponseDto' + '404': description: '' content: application/json: schema: - $ref: '#/components/schemas/ReadSiteLocaleV1ResponseBodyDto' + $ref: '#/components/schemas/NotFoundResponseDto' + '409': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ConflictResponseDto' tags: - - Locale - '/v2/locales/{localeIdOrCode}': - delete: - operationId: SiteLocaleController_deleteV2_v2 - summary: Delete Locale - description: Deletes a locale. + - Page Type + get: + operationId: PageTypeController_get_v0 + summary: Get Page Type + description: Get a page type by ID. parameters: - - name: localeIdOrCode + - name: siteId in: path - description: The locale ID or locale code. required: true schema: type: string - - name: siteId - in: query - description: The site ID required when using a locale code instead of a locale ID. - required: false + format: uuid + - name: pageTypeId + in: path + required: true schema: type: string format: uuid responses: - '204': - description: Locale successfully deleted. - '400': + '200': description: '' content: application/json: schema: - $ref: '#/components/schemas/BadRequestResponseDto' + $ref: '#/components/schemas/GetPageTypeResponseDto' '403': description: '' content: @@ -1276,38 +1443,74 @@ paths: schema: $ref: '#/components/schemas/NotFoundResponseDto' tags: - - Locale - patch: - operationId: SiteLocaleController_updateV2_v2 - summary: Update Locale - description: Updates an existing locale. + - Page Type + '/v1/sites/{siteId}/locales': + post: + operationId: SiteLocaleController_create_v1 parameters: - - name: localeIdOrCode + - name: siteId in: path - description: The locale ID or locale code. required: true schema: type: string - - name: siteId + format: uuid + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/CreateSiteLocaleV1RequestBodyDto' + responses: + '201': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/CreateSiteLocaleV1ResponseBodyDto' + tags: + - Locale + get: + operationId: SiteLocaleController_getByLocale_v1 + parameters: + - name: code in: query - description: The site ID required when using a locale code instead of a locale ID. - required: false + required: true + schema: + type: string + - name: siteId + in: path + required: true schema: type: string format: uuid + responses: + '200': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/GetByLocaleSiteLocaleV1ResponseBodyDto' + tags: + - Locale + /v2/locales: + post: + operationId: SiteLocaleController_createV2_v2 + summary: Create Locale + description: Creates a new locale for a site. + parameters: [] requestBody: required: true content: application/json: schema: - $ref: '#/components/schemas/UpdateSiteLocaleV2RequestBodyDto' + $ref: '#/components/schemas/CreateSiteLocaleV2RequestBodyDto' responses: - '200': + '201': description: '' content: application/json: schema: - $ref: '#/components/schemas/UpdateSiteLocaleV2ResponseBodyDto' + $ref: '#/components/schemas/CreateSiteLocaleV2ResponseBodyDto' '400': description: '' content: @@ -1320,6 +1523,12 @@ paths: application/json: schema: $ref: '#/components/schemas/ForbiddenResponseDto' + '404': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/NotFoundResponseDto' '409': description: '' content: @@ -1329,19 +1538,29 @@ paths: tags: - Locale get: - operationId: SiteLocaleController_getV2_v2 - summary: Get Locale - description: Returns a locale by its ID or locale code. + operationId: SiteLocaleController_listV2_v2 + summary: List Locales + description: Returns a list of locales for a site. parameters: - - name: localeIdOrCode - in: path - description: The locale ID or locale code. + - name: siteId + in: query + description: The site ID to list locales from. required: true schema: type: string - - name: siteId + format: uuid + - name: limit in: query - description: The site ID required when using a locale code instead of a locale ID. + description: The maximum number of locales to return. + required: false + schema: + type: number + default: 20 + maximum: 100 + minimum: 1 + - name: startingAfter + in: query + description: The pagination cursor. This is used to indicate what ID to list from. required: false schema: type: string @@ -1352,7 +1571,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ReadSiteLocaleV2ResponseBodyDto' + $ref: '#/components/schemas/ListSiteLocaleV2ResponseBodyDto' '400': description: '' content: @@ -1367,65 +1586,25 @@ paths: $ref: '#/components/schemas/ForbiddenResponseDto' tags: - Locale - '/v2/locales/{localeIdOrCode}/restore': - post: - operationId: SiteLocaleController_restoreV2_v2 - summary: Restore Locale - description: Restores a previously deleted locale. + '/v1/locales/{id}': + delete: + operationId: SiteLocaleController_delete_v1 parameters: - - name: localeIdOrCode + - name: id in: path - description: The locale ID or locale code. required: true - schema: - type: string - - name: siteId - in: query - description: The site ID required when using a locale code instead of a locale ID. - required: false schema: type: string format: uuid responses: - '200': - description: Locale successfully restored. - content: - application/json: - schema: - $ref: '#/components/schemas/RestoreSiteLocaleV2ResponseBodyDto' - '400': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/BadRequestResponseDto' - '403': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/ForbiddenResponseDto' - '404': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/NotFoundResponseDto' - '409': + '204': description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/ConflictResponseDto' tags: - Locale - '/v0/sites/{siteId}/page-types': - post: - operationId: PageTypeController_create_v0 - summary: Create Page Type - description: Create a page type for a site. + patch: + operationId: SiteLocaleController_update_v1 parameters: - - name: siteId + - name: id in: path required: true schema: @@ -1436,48 +1615,62 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreatePageTypeBodyDto' + $ref: '#/components/schemas/UpdateSiteLocaleV1RequestBodyDto' responses: - '201': - description: '' - content: - application/json: - schema: - $ref: '#/components/schemas/CreatePageTypeResponseDto' - '403': + '200': description: '' content: application/json: schema: - $ref: '#/components/schemas/ForbiddenResponseDto' - '404': + $ref: '#/components/schemas/UpdateSiteLocaleV1ResponseBodyDto' + tags: + - Locale + get: + operationId: SiteLocaleController_get_v1 + parameters: + - name: id + in: path + required: true + schema: + type: string + format: uuid + responses: + '200': description: '' content: application/json: schema: - $ref: '#/components/schemas/NotFoundResponseDto' + $ref: '#/components/schemas/ReadSiteLocaleV1ResponseBodyDto' tags: - - Page Type - get: - operationId: PageTypeController_list_v0 - summary: List Page Types - description: List page types for a site. + - Locale + '/v2/locales/{localeIdOrCode}': + delete: + operationId: SiteLocaleController_deleteV2_v2 + summary: Delete Locale + description: Deletes a locale. parameters: - - name: siteId + - name: localeIdOrCode in: path + description: The locale ID or locale code. required: true + schema: + type: string + - name: siteId + in: query + description: The site ID required when using a locale code instead of a locale ID. + required: false schema: type: string format: uuid responses: - '200': + '204': + description: Locale successfully deleted. + '400': description: '' content: application/json: schema: - type: array - items: - $ref: '#/components/schemas/GetPageTypeResponseDto' + $ref: '#/components/schemas/BadRequestResponseDto' '403': description: '' content: @@ -1491,22 +1684,22 @@ paths: schema: $ref: '#/components/schemas/NotFoundResponseDto' tags: - - Page Type - '/v0/sites/{siteId}/page-types/{pageTypeId}': + - Locale patch: - operationId: PageTypeController_update_v0 - summary: Update Page Type - description: Update a page type by ID. + operationId: SiteLocaleController_updateV2_v2 + summary: Update Locale + description: Updates an existing locale. parameters: - - name: siteId + - name: localeIdOrCode in: path + description: The locale ID or locale code. required: true schema: type: string - format: uuid - - name: pageTypeId - in: path - required: true + - name: siteId + in: query + description: The site ID required when using a locale code instead of a locale ID. + required: false schema: type: string format: uuid @@ -1515,92 +1708,105 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdatePageTypeBodyDto' + $ref: '#/components/schemas/UpdateSiteLocaleV2RequestBodyDto' responses: '200': description: '' content: application/json: schema: - $ref: '#/components/schemas/UpdatePageTypeResponseDto' + $ref: '#/components/schemas/UpdateSiteLocaleV2ResponseBodyDto' + '400': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/BadRequestResponseDto' '403': description: '' content: application/json: schema: $ref: '#/components/schemas/ForbiddenResponseDto' - '404': + '409': description: '' content: application/json: schema: - $ref: '#/components/schemas/NotFoundResponseDto' + $ref: '#/components/schemas/ConflictResponseDto' tags: - - Page Type - delete: - operationId: PageTypeController_delete_v0 - summary: Delete Page Type - description: Delete a page type by ID. + - Locale + get: + operationId: SiteLocaleController_getV2_v2 + summary: Get Locale + description: Returns a locale by its ID or locale code. parameters: - - name: siteId + - name: localeIdOrCode in: path + description: The locale ID or locale code. required: true schema: type: string - format: uuid - - name: pageTypeId - in: path - required: true + - name: siteId + in: query + description: The site ID required when using a locale code instead of a locale ID. + required: false schema: type: string format: uuid responses: - '204': - description: '' - '403': + '200': description: '' content: application/json: schema: - $ref: '#/components/schemas/ForbiddenResponseDto' - '404': + $ref: '#/components/schemas/ReadSiteLocaleV2ResponseBodyDto' + '400': description: '' content: application/json: schema: - $ref: '#/components/schemas/NotFoundResponseDto' - '409': + $ref: '#/components/schemas/BadRequestResponseDto' + '403': description: '' content: application/json: schema: - $ref: '#/components/schemas/ConflictResponseDto' + $ref: '#/components/schemas/ForbiddenResponseDto' tags: - - Page Type - get: - operationId: PageTypeController_get_v0 - summary: Get Page Type - description: Get a page type by ID. + - Locale + '/v2/locales/{localeIdOrCode}/restore': + post: + operationId: SiteLocaleController_restoreV2_v2 + summary: Restore Locale + description: Restores a previously deleted locale. parameters: - - name: siteId + - name: localeIdOrCode in: path + description: The locale ID or locale code. required: true schema: type: string - format: uuid - - name: pageTypeId - in: path - required: true + - name: siteId + in: query + description: The site ID required when using a locale code instead of a locale ID. + required: false schema: type: string format: uuid responses: '200': + description: Locale successfully restored. + content: + application/json: + schema: + $ref: '#/components/schemas/RestoreSiteLocaleV2ResponseBodyDto' + '400': description: '' content: application/json: schema: - $ref: '#/components/schemas/GetPageTypeResponseDto' + $ref: '#/components/schemas/BadRequestResponseDto' '403': description: '' content: @@ -1613,8 +1819,14 @@ paths: application/json: schema: $ref: '#/components/schemas/NotFoundResponseDto' + '409': + description: '' + content: + application/json: + schema: + $ref: '#/components/schemas/ConflictResponseDto' tags: - - Page Type + - Locale '/v1/sites/{siteId}/routes': get: operationId: SiteRouteController_list_v1 @@ -2296,11 +2508,15 @@ components: apiKey: type: string format: uuid + collectionId: + type: string + format: uuid required: - id - name - hostUrl - apiKey + - collectionId CreateSiteV2RequestBodyDto: type: object properties: @@ -2441,11 +2657,15 @@ components: apiKey: type: string format: uuid + collectionId: + type: string + format: uuid required: - id - name - hostUrl - apiKey + - collectionId ReadSiteV2ResponseBodyDto: type: object properties: @@ -2534,11 +2754,15 @@ components: apiKey: type: string format: uuid + collectionId: + type: string + format: uuid required: - id - name - hostUrl - apiKey + - collectionId UpdateSiteV2RequestBodyDto: type: object properties: @@ -2643,11 +2867,15 @@ components: apiKey: type: string format: uuid + collectionId: + type: string + format: uuid required: - id - name - hostUrl - apiKey + - collectionId hasMore: type: boolean required: @@ -2756,11 +2984,15 @@ components: apiKey: type: string format: uuid + collectionId: + type: string + format: uuid required: - id - name - hostUrl - apiKey + - collectionId DuplicateSiteV2RequestBodyDto: type: object properties: @@ -2774,60 +3006,258 @@ components: description: The newly created duplicated site with all content and configuration copied from the original type: object properties: - object: - description: The type of the object - type: string - example: site - enum: - - site + object: + description: The type of the object + type: string + example: site + enum: + - site + id: + type: string + format: uuid + name: + description: The site name. + type: string + example: Hearth Furniture Company + hostOrigin: + description: The public URL where your site is hosted. This is the URL that Makeswift uses to render your site for editing. + type: string + format: uri + example: 'https://hearthfurniture.com' + nullable: true + publicApiKey: + description: The publishable API key that a host can use to get page and component data for rendering your site. + type: string + format: uuid + defaultLocale: + description: The primary locale of this site. + type: string + example: en-US + examples: + - en + - es + - fr-FR + - ar-EG + - ja-JP + localeManagementMode: + description: Controls whether locales are managed internally via the builder or externally via API. + type: string + enum: + - internal + - external + pageManagementMode: + description: Controls whether pages are managed internally via the builder or externally via API. + type: string + enum: + - internal + - external + required: + - object + - id + - name + - hostOrigin + - publicApiKey + - defaultLocale + - localeManagementMode + - pageManagementMode + CreateCollectionBodyDto: + type: object + properties: + name: + description: The name of the collection. + type: string + parentId: + description: The parent collection ID. + type: string + format: uuid + pageTypeId: + description: The page type to scope this collection to. + type: string + format: uuid + required: + - name + - parentId + CreateCollectionResponseDto: + type: object + properties: + id: + type: string + format: uuid + name: + description: The name of the collection. + type: string + parentId: + description: The parent collection ID. + type: string + format: uuid + nullable: true + pageTypeId: + description: The page type this collection is scoped to. + type: string + format: uuid + nullable: true + isPageTypeRoot: + description: Whether this is the root collection for its page type. + type: boolean + createdAt: + description: When the collection was created. + type: string + format: date-time + updatedAt: + description: When the collection was last updated. + type: string + format: date-time + required: + - id + - name + - parentId + - pageTypeId + - isPageTypeRoot + - createdAt + - updatedAt + NotFoundResponseDto: + type: object + properties: + object: + type: string + enum: + - error + code: + type: string + enum: + - not_found + message: + type: string + required: + - object + - code + - message + UpdateCollectionBodyDto: + type: object + properties: + name: + description: The new name of the collection. + type: string + parentId: + description: Move the collection under this parent. + type: string + format: uuid + UpdateCollectionResponseDto: + type: object + properties: + id: + type: string + format: uuid + name: + description: The name of the collection. + type: string + parentId: + description: The parent collection ID. + type: string + format: uuid + nullable: true + pageTypeId: + description: The page type this collection is scoped to. + type: string + format: uuid + nullable: true + isPageTypeRoot: + description: Whether this is the root collection for its page type. + type: boolean + createdAt: + description: When the collection was created. + type: string + format: date-time + updatedAt: + description: When the collection was last updated. + type: string + format: date-time + required: + - id + - name + - parentId + - pageTypeId + - isPageTypeRoot + - createdAt + - updatedAt + ListCollectionsResponseDto: + type: array + items: + type: object + properties: + id: + type: string + format: uuid + name: + description: The name of the collection. + type: string + parentId: + description: The parent collection ID. + type: string + format: uuid + nullable: true + pageTypeId: + description: The page type this collection is scoped to. + type: string + format: uuid + nullable: true + isPageTypeRoot: + description: Whether this is the root collection for its page type. + type: boolean + createdAt: + description: When the collection was created. + type: string + format: date-time + updatedAt: + description: When the collection was last updated. + type: string + format: date-time + required: + - id + - name + - parentId + - pageTypeId + - isPageTypeRoot + - createdAt + - updatedAt + GetCollectionResponseDto: + type: object + properties: id: type: string format: uuid name: - description: The site name. + description: The name of the collection. type: string - example: Hearth Furniture Company - hostOrigin: - description: The public URL where your site is hosted. This is the URL that Makeswift uses to render your site for editing. + parentId: + description: The parent collection ID. type: string - format: uri - example: 'https://hearthfurniture.com' + format: uuid nullable: true - publicApiKey: - description: The publishable API key that a host can use to get page and component data for rendering your site. + pageTypeId: + description: The page type this collection is scoped to. type: string format: uuid - defaultLocale: - description: The primary locale of this site. - type: string - example: en-US - examples: - - en - - es - - fr-FR - - ar-EG - - ja-JP - localeManagementMode: - description: Controls whether locales are managed internally via the builder or externally via API. + nullable: true + isPageTypeRoot: + description: Whether this is the root collection for its page type. + type: boolean + createdAt: + description: When the collection was created. type: string - enum: - - internal - - external - pageManagementMode: - description: Controls whether pages are managed internally via the builder or externally via API. + format: date-time + updatedAt: + description: When the collection was last updated. type: string - enum: - - internal - - external + format: date-time required: - - object - id - name - - hostOrigin - - publicApiKey - - defaultLocale - - localeManagementMode - - pageManagementMode + - parentId + - pageTypeId + - isPageTypeRoot + - createdAt + - updatedAt CreatePageV1RequestBodyDto: type: object properties: @@ -3481,118 +3911,274 @@ components: description: The flag that indicates whether there are more pages available. type: boolean required: - - object - - data - - hasMore - GetPageV6ResponseBodyDto: + - object + - data + - hasMore + GetPageV6ResponseBodyDto: + type: object + properties: + object: + type: string + example: page + enum: + - page + id: + description: The ID of the page. + type: string + format: uuid + pathname: + description: The page pathname. + type: string + example: furniture + canonicalUrl: + description: The canonical URL of the page. + type: string + nullable: true + title: + description: The page title. + type: string + nullable: true + description: + description: The page description. + type: string + nullable: true + socialImageUrl: + description: The social image URL of the page. + type: string + nullable: true + sitemapPriority: + description: The sitemap priority. + type: number + maximum: 1 + minimum: 0 + nullable: true + sitemapFrequency: + description: The sitemap update frequency. + type: string + enum: + - always + - hourly + - daily + - weekly + - monthly + - yearly + - never + nullable: true + createdAt: + description: The page creation date and time. + type: string + format: date-time + nullable: true + updatedAt: + description: The page last update date and time. + type: string + format: date-time + nullable: true + publishedAt: + description: The page publication date and time. + type: string + format: date-time + nullable: true + isOnline: + description: The flag that indicates whether the page is online. + type: boolean + excludedFromSearchEngines: + description: The flag that indicates whether the page is excluded from search. + type: boolean + nullable: true + locale: + description: The page locale. This defaults to the default locale of the parent site. + type: string + localizations: + description: The localizations of the page. + type: array + items: + type: object + properties: + locale: + description: The locale of the localization. + type: string + pathname: + description: The pathname of the localization. + type: string + id: + description: The ID of the localization. + type: string + format: uuid + required: + - pathname + required: + - object + - id + - pathname + - canonicalUrl + - title + - description + - socialImageUrl + - sitemapPriority + - sitemapFrequency + - createdAt + - updatedAt + - publishedAt + - isOnline + - excludedFromSearchEngines + - localizations + CreatePageTypeBodyDto: + type: object + properties: + name: + description: The name of the page type. + type: string + minLength: 1 + isExternal: + description: Whether pages of this type are externally managed. + type: boolean + slug: + description: Machine-readable identifier for the page type. + type: string + nullable: true + required: + - name + - isExternal + CreatePageTypeResponseDto: + type: object + properties: + id: + type: string + format: uuid + name: + description: The name of the page type. + type: string + isExternal: + description: Whether pages of this type are externally managed. + type: boolean + slug: + description: Machine-readable identifier for the page type. + type: string + nullable: true + rootCollectionId: + description: The ID of the root collection for this page type. + type: string + format: uuid + nullable: true + createdAt: + description: When the page type was created. + type: string + format: date-time + updatedAt: + description: When the page type was last updated. + type: string + format: date-time + required: + - id + - name + - isExternal + - slug + - rootCollectionId + - createdAt + - updatedAt + UpdatePageTypeBodyDto: + type: object + properties: + name: + description: The name of the page type. + type: string + minLength: 1 + slug: + description: Machine-readable identifier for the page type. + type: string + nullable: true + UpdatePageTypeResponseDto: + type: object + properties: + id: + type: string + format: uuid + name: + description: The name of the page type. + type: string + isExternal: + description: Whether pages of this type are externally managed. + type: boolean + slug: + description: Machine-readable identifier for the page type. + type: string + nullable: true + rootCollectionId: + description: The ID of the root collection for this page type. + type: string + format: uuid + nullable: true + createdAt: + description: When the page type was created. + type: string + format: date-time + updatedAt: + description: When the page type was last updated. + type: string + format: date-time + required: + - id + - name + - isExternal + - slug + - rootCollectionId + - createdAt + - updatedAt + ConflictResponseDto: type: object properties: object: type: string - example: page enum: - - page - id: - description: The ID of the page. - type: string - format: uuid - pathname: - description: The page pathname. + - error + code: type: string - example: furniture - canonicalUrl: - description: The canonical URL of the page. + enum: + - conflict + message: type: string - nullable: true - title: - description: The page title. + required: + - object + - code + - message + GetPageTypeResponseDto: + type: object + properties: + id: type: string - nullable: true - description: - description: The page description. + format: uuid + name: + description: The name of the page type. type: string - nullable: true - socialImageUrl: - description: The social image URL of the page. + isExternal: + description: Whether pages of this type are externally managed. + type: boolean + slug: + description: Machine-readable identifier for the page type. type: string nullable: true - sitemapPriority: - description: The sitemap priority. - type: number - maximum: 1 - minimum: 0 - nullable: true - sitemapFrequency: - description: The sitemap update frequency. + rootCollectionId: + description: The ID of the root collection for this page type. type: string - enum: - - always - - hourly - - daily - - weekly - - monthly - - yearly - - never + format: uuid nullable: true createdAt: - description: The page creation date and time. + description: When the page type was created. type: string format: date-time - nullable: true updatedAt: - description: The page last update date and time. - type: string - format: date-time - nullable: true - publishedAt: - description: The page publication date and time. + description: When the page type was last updated. type: string format: date-time - nullable: true - isOnline: - description: The flag that indicates whether the page is online. - type: boolean - excludedFromSearchEngines: - description: The flag that indicates whether the page is excluded from search. - type: boolean - nullable: true - locale: - description: The page locale. This defaults to the default locale of the parent site. - type: string - localizations: - description: The localizations of the page. - type: array - items: - type: object - properties: - locale: - description: The locale of the localization. - type: string - pathname: - description: The pathname of the localization. - type: string - id: - description: The ID of the localization. - type: string - format: uuid - required: - - pathname required: - - object - id - - pathname - - canonicalUrl - - title - - description - - socialImageUrl - - sitemapPriority - - sitemapFrequency + - name + - isExternal + - slug + - rootCollectionId - createdAt - updatedAt - - publishedAt - - isOnline - - excludedFromSearchEngines - - localizations CreateSiteLocaleV1RequestBodyDto: type: object properties: @@ -3692,40 +4278,6 @@ components: - locale - domain - isDefault - NotFoundResponseDto: - type: object - properties: - object: - type: string - enum: - - error - code: - type: string - enum: - - not_found - message: - type: string - required: - - object - - code - - message - ConflictResponseDto: - type: object - properties: - object: - type: string - enum: - - error - code: - type: string - enum: - - conflict - message: - type: string - required: - - object - - code - - message ListSiteLocaleV2ResponseBodyDto: type: object properties: @@ -3996,106 +4548,6 @@ components: - id - locale - domain - CreatePageTypeBodyDto: - type: object - properties: - name: - description: The name of the page type. - type: string - minLength: 1 - isExternal: - description: Whether pages of this type are externally managed. - type: boolean - required: - - name - - isExternal - CreatePageTypeResponseDto: - type: object - properties: - id: - type: string - format: uuid - name: - description: The name of the page type. - type: string - isExternal: - description: Whether pages of this type are externally managed. - type: boolean - createdAt: - description: When the page type was created. - type: string - format: date-time - updatedAt: - description: When the page type was last updated. - type: string - format: date-time - required: - - id - - name - - isExternal - - createdAt - - updatedAt - UpdatePageTypeBodyDto: - type: object - properties: - name: - description: The name of the page type. - type: string - minLength: 1 - required: - - name - UpdatePageTypeResponseDto: - type: object - properties: - id: - type: string - format: uuid - name: - description: The name of the page type. - type: string - isExternal: - description: Whether pages of this type are externally managed. - type: boolean - createdAt: - description: When the page type was created. - type: string - format: date-time - updatedAt: - description: When the page type was last updated. - type: string - format: date-time - required: - - id - - name - - isExternal - - createdAt - - updatedAt - GetPageTypeResponseDto: - type: object - properties: - id: - type: string - format: uuid - name: - description: The name of the page type. - type: string - isExternal: - description: Whether pages of this type are externally managed. - type: boolean - createdAt: - description: When the page type was created. - type: string - format: date-time - updatedAt: - description: When the page type was last updated. - type: string - format: date-time - required: - - id - - name - - isExternal - - createdAt - - updatedAt ListSiteRouteV1ResponseBodyDto: type: object properties: @@ -4460,6 +4912,8 @@ tags: description: '' - name: Page Type description: '' + - name: Collection + description: '' - name: Webhook Management description: '' security: