{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/ContentView", "title": "ContentView", "type": "object", "description": "A content view defining a curated set of repositories and content available to hosts.", "properties": { "id": { "type": "integer", "description": "Unique identifier for the content view.", "example": "abc123" }, "name": { "type": "string", "description": "Name of the content view.", "example": "Example Title" }, "label": { "type": "string", "description": "Unique label for the content view (auto-generated from name).", "example": "Example Title" }, "description": { "type": [ "string", "null" ], "description": "Description of the content view.", "example": "A sample description." }, "organization_id": { "type": "integer", "description": "Organization this content view belongs to.", "example": "500123" }, "organization": { "type": "object", "properties": { "name": { "type": "string" }, "label": { "type": "string" }, "id": { "type": "integer" } }, "example": "example_value" }, "composite": { "type": "boolean", "description": "Whether this is a composite content view combining other content view versions.", "example": true }, "rolling": { "type": "boolean", "description": "Whether this is a rolling content view.", "example": true }, "auto_publish": { "type": "boolean", "description": "Whether composite content views auto-publish when a component is updated.", "example": true }, "solve_dependencies": { "type": "boolean", "description": "Whether RPM dependencies are resolved during publish.", "example": true }, "import_only": { "type": "boolean", "description": "Whether this content view is only for upstream imports.", "example": true }, "generated_for": { "type": [ "string", "null" ], "description": "If generated, indicates the purpose (e.g., import or export).", "example": "example_value" }, "default": { "type": "boolean", "description": "Whether this is the default content view (every organization has one).", "example": true }, "repository_ids": { "type": "array", "description": "Identifiers of repositories in this content view.", "items": { "type": "integer" }, "example": [] }, "repositories": { "type": "array", "description": "Repositories included in this content view.", "items": { "type": "object", "properties": { "id": { "type": "integer" }, "name": { "type": "string" }, "label": { "type": "string" }, "content_type": { "type": "string" } } }, "example": [] }, "component_ids": { "type": "array", "description": "Content view version IDs for composite content views.", "items": { "type": "integer" }, "example": [] }, "versions": { "type": "array", "description": "Published versions of this content view.", "items": { "type": "object", "properties": { "id": { "type": "integer" }, "version": { "type": "string" }, "published": { "type": "string", "format": "date-time" }, "environment_ids": { "type": "array", "items": { "type": "integer" } } } }, "example": [] }, "environments": { "type": "array", "description": "Lifecycle environments this content view is in.", "items": { "type": "object", "properties": { "id": { "type": "integer" }, "name": { "type": "string" }, "label": { "type": "string" } } }, "example": [] }, "activation_keys": { "type": "array", "description": "Activation keys using this content view.", "items": { "type": "object", "properties": { "id": { "type": "integer" }, "name": { "type": "string" } } }, "example": [] }, "next_version": { "type": "string", "description": "Next version number to be published.", "example": "example_value" }, "last_published": { "type": [ "string", "null" ], "format": "date-time", "description": "Timestamp of the last publish.", "example": "2026-01-15T10:30:00Z" }, "latest_version": { "type": [ "string", "null" ], "description": "Latest published version number.", "example": "example_value" }, "latest_version_id": { "type": [ "integer", "null" ], "description": "Identifier of the latest published version.", "example": "500123" }, "created_at": { "type": "string", "format": "date-time", "example": "2026-01-15T10:30:00Z" }, "updated_at": { "type": "string", "format": "date-time", "example": "2026-01-15T10:30:00Z" } } }