From e58ea310d8ed4d680a5f2b2152354eab8839f183 Mon Sep 17 00:00:00 2001 From: ChristopherJennings <1398135+ChristopherJennings@users.noreply.github.com> Date: Tue, 29 Sep 2026 17:17:02 -0400 Subject: [PATCH 1/2] Add preview_url to collections schema Co-Authored-By: Claude Opus 5.5 --- openapi/components/schemas/collections.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openapi/components/schemas/collections.yaml b/openapi/components/schemas/collections.yaml index 88a856e..4bd8fe0 100644 --- a/openapi/components/schemas/collections.yaml +++ b/openapi/components/schemas/collections.yaml @@ -16,6 +16,11 @@ properties: nullable: true description: How items in this collection should be displayed when viewed relationally in the Data Studio. type: string + preview_url: + nullable: true + description: URL template used for Live Preview. Supports the `{{$version}}` and `{{$preview_base_url}}` variables and any field in the collection, such as `{{$preview_base_url}}/blog/{{slug}}`. + example: https://example.com/blog/{{slug}} + type: string hidden: nullable: false description: Whether or not this collection is hidden in the Data Studio. From a13aed455ae0d61211051437d6d374c397edaf75 Mon Sep 17 00:00:00 2001 From: ChristopherJennings <1398135+ChristopherJennings@users.noreply.github.com> Date: Tue, 29 Sep 2026 17:19:11 -0400 Subject: [PATCH 2/2] Add color, status, and autosave_revision_interval to collections schema Co-Authored-By: Claude Opus 5.5 --- openapi/components/schemas/collections.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/openapi/components/schemas/collections.yaml b/openapi/components/schemas/collections.yaml index 4bd8fe0..7790b35 100644 --- a/openapi/components/schemas/collections.yaml +++ b/openapi/components/schemas/collections.yaml @@ -8,6 +8,12 @@ properties: nullable: true description: Icon displayed in the Data Studio when working with this collection. type: string + color: + nullable: true + description: Color of the collection's icon in the Data Studio. + type: string + format: hexcode + example: '#6644FF' note: nullable: true description: Short description displayed in the Data Studio. @@ -78,4 +84,17 @@ properties: nullable: false description: Whether or not Content Versioning is enabled for this collection. type: boolean + autosave_revision_interval: + nullable: true + description: How often, in seconds, auto-saving a content version creates a new revision. Only applies when `versioning` is enabled and `accountability` is `all`. When `null`, the `AUTOSAVE_REVISION_INTERVAL` environment variable is used. + type: number + example: 300 + status: + nullable: false + description: Whether the collection is active. Inactive collections cannot be read or written through the API and return a `COLLECTION_INACTIVE` error. One of `active`, `inactive`. + type: string + enum: + - active + - inactive + example: active x-collection: directus_collections