changedInput schema / properties / request / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "args": {
- "additionalProperties": false,
- "description": "Create a new document at the given sort position. Supply a group UID for a nested document or clone_uid to copy an accessible document. Use update_document to set content.",
- "properties": {
- "body": {
- "additionalProperties": false,
- "description": "New document placement and metadata, with optional source document for cloning.",
- "properties": {
- "clone_uid": {
- "description": "UID of the existing document to copy.",
- "minLength": 1,
- "type": "string"
- },
- "clone_version": {
- "description": "Numeric source document revision to copy when using clone_uid.",
- "type": "number"
- },
- "for_everyone_access_role_id": {
- "description": "Role UID that applies when access is for_everyone.",
- "minLength": 1,
- "type": "string"
- },
- "key": {
- "description": "Optional Kaiten key for this entity. Null clears the key where supported.",
- "type": [
- "string",
- "null"
- ]
- },
- "parent_entity_uid": {
- "anyOf": [
- {
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "UID of the destination group. Null selects the root."
- },
- "sort_order": {
- "description": "Numeric position relative to other items in the parent group.",
- "type": "number"
- },
- "title": {
- "description": "Display title for this document or document group.",
- "type": "string"
- }
- },
- "required": [
- "sort_order"
- ],
- "type": "object"
- }
- },
- "required": [
- "body"
- ],
- "type": "object"
- },
- "operation": {
- "const": "create_document",
- "description": "Create a new document at the given sort position. Supply a group UID for a nested document or clone_uid to copy an accessible document. Use update_document to set content.",
- "type": "string"
- }
- },
- "required": [
- "operation",
- "args"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "args": {
- "anyOf": [
- {
- "additionalProperties": false,
- "description": "Patch metadata, restore a backup, or edit content using the document’s current schema. Fetch get_document_schema before submitting the complete ProseMirror tree. Review audience and revision before publishing.",
- "properties": {
- "body": {
- "additionalProperties": false,
- "description": "Document patch. Omitted fields retain their values; explicit null only clears nullable fields.",
- "properties": {
- "access": {
- "anyOf": [
- {
- "const": "for_everyone",
- "type": "string"
- },
- {
- "const": "by_invite",
- "type": "string"
- }
- ],
- "description": "Use for_everyone for role-based general Kaiten access, or by_invite for explicitly invited users."
- },
- "backup_version": {
- "description": "Version of the document backup to restore.",
- "type": "number"
- },
- "data": {
- "additionalProperties": false,
- "description": "Replacement ProseMirror document tree with root type doc and a content array. Submit the full tree for the selected schema.",
- "properties": {
- "attrs": {
- "additionalProperties": {
- "$ref": "#/$defs/__schema1"
- },
- "description": "Root node attributes defined by Kaiten’s document schema.",
- "propertyNames": {
- "type": "string"
- },
- "type": "object"
- },
- "content": {
- "description": "Ordered top-level nodes, which can nest content and contain schema-defined marks and attributes.",
- "items": {
- "$ref": "#/$defs/__schema0"
- },
- "type": "array"
- },
- "marks": {
- "description": "Optional marks defined by the selected Kaiten document schema.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "attrs": {
- "additionalProperties": {
- "$ref": "#/$defs/__schema1"
- },
- "propertyNames": {
- "type": "string"
- },
- "type": "object"
- },
- "type": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "text": {
- "description": "Root text field where supported by the document schema.",
- "type": "string"
- },
- "type": {
- "const": "doc",
- "description": "Root node type, doc.",
- "type": "string"
- }
- },
- "required": [
- "type",
- "content"
- ],
- "type": "object"
- },
- "for_everyone_access_role_id": {
- "description": "Role UID that applies when access is for_everyone.",
- "minLength": 1,
- "type": "string"
- },
- "hidden_on_public_site": {
- "description": "Hide this record from the public site when true.",
- "type": "boolean"
- },
- "icon_color": {
- "description": "Kaiten icon color code. Null clears it.",
- "type": [
- "number",
- "null"
- ]
- },
- "icon_type": {
- "anyOf": [
- {
- "anyOf": [
- {
- "const": "material_icon",
- "type": "string"
- },
- {
- "const": "emoji",
- "type": "string"
- }
- ]
- },
- {
- "type": "null"
- }
- ],
- "description": "Choice of icon representation. Null removes the configured type."
- },
- "icon_value": {
- "description": "Identifier or value of the selected icon. Null clears it.",
- "type": [
- "string",
- "null"
- ]
- },
- "key": {
- "description": "Optional Kaiten key for this entity. Null clears the key where supported.",
- "type": [
- "string",
- "null"
- ]
- },
- "notification_period_end": {
- "description": "End timestamp of the notification window. Null clears it.",
- "type": [
- "string",
- "null"
- ]
- },
- "notification_period_start": {
- "description": "Start timestamp of the notification window. Null clears it.",
- "type": [
- "string",
- "null"
- ]
- },
- "parent_entity_uid": {
- "anyOf": [
- {
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "UID of the destination group. Null selects the root."
- },
- "public": {
- "description": "Set public-site publication visibility.",
- "type": "boolean"
- },
- "publish_date": {
- "description": "Publication timestamp. Null clears the configured date.",
- "type": [
- "string",
- "null"
- ]
- },
- "published_version": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "const": "current",
- "type": "string"
- }
- ]
- },
- {
- "type": "null"
- }
- ],
- "description": "Revision to publish, current for the latest saved version, or null to clear the published revision."
- },
- "redirect_url": {
- "description": "Public-site redirect destination. Null clears the redirect.",
- "type": [
- "string",
- "null"
- ]
- },
- "settings": {
- "additionalProperties": false,
- "description": "Document display settings.",
- "properties": {
- "content_width": {
- "anyOf": [
- {
- "const": "default",
- "type": "string"
- },
- {
- "const": "wide",
- "type": "string"
- }
- ],
- "description": "Default or wide layout. Wide requires the corresponding Kaiten rollout."
- }
- },
- "type": "object"
- },
- "slug": {
- "description": "Public URL slug. Null clears the custom slug.",
- "type": [
- "string",
- "null"
- ]
- },
- "sort_order": {
- "description": "Numeric position relative to other items in the parent group.",
- "type": "number"
- },
- "title": {
- "description": "Display title for this document or document group.",
- "type": "string"
- }
- },
- "type": "object"
- },
- "document_uid": {
- "description": "Document UID from list_documents. Use uid rather than the numeric id field.",
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "document_uid",
- "body"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "description": "Update content using an explicit ProseMirror schema. Get the current or newer supported schema with get_document_schema and pass its concrete version with the full validated tree. Kaiten saves schema and content together and rejects downgrades. Use the ordinary form to restore a backup.",
- "properties": {
- "body": {
- "additionalProperties": false,
- "description": "Document patch with a concrete schema_version and complete data. This form excludes backup_version.",
- "properties": {
- "access": {
- "anyOf": [
- {
- "const": "for_everyone",
- "type": "string"
- },
- {
- "const": "by_invite",
- "type": "string"
- }
- ],
- "description": "Use for_everyone for role-based general Kaiten access, or by_invite for explicitly invited users."
- },
- "data": {
- "additionalProperties": false,
- "description": "Replacement ProseMirror document tree with root type doc and a content array. Submit the full tree for the selected schema.",
- "properties": {
- "attrs": {
- "additionalProperties": {
- "$ref": "#/$defs/__schema1"
- },
- "description": "Root node attributes defined by Kaiten’s document schema.",
- "propertyNames": {
- "type": "string"
- },
- "type": "object"
- },
- "content": {
- "description": "Ordered top-level nodes, which can nest content and contain schema-defined marks and attributes.",
- "items": {
- "$ref": "#/$defs/__schema0"
- },
- "type": "array"
- },
- "marks": {
- "description": "Optional marks defined by the selected Kaiten document schema.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "attrs": {
- "additionalProperties": {
- "$ref": "#/$defs/__schema1"
- },
- "propertyNames": {
- "type": "string"
- },
- "type": "object"
- },
- "type": {
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "type"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "text": {
- "description": "Root text field where supported by the document schema.",
- "type": "string"
- },
- "type": {
- "const": "doc",
- "description": "Root node type, doc.",
- "type": "string"
- }
- },
- "required": [
- "type",
- "content"
- ],
- "type": "object"
- },
- "for_everyone_access_role_id": {
- "description": "Role UID that applies when access is for_everyone.",
- "minLength": 1,
- "type": "string"
- },
- "hidden_on_public_site": {
- "description": "Hide this record from the public site when true.",
- "type": "boolean"
- },
- "icon_color": {
- "description": "Kaiten icon color code. Null clears it.",
- "type": [
- "number",
- "null"
- ]
- },
- "icon_type": {
- "anyOf": [
- {
- "anyOf": [
- {
- "const": "material_icon",
- "type": "string"
- },
- {
- "const": "emoji",
- "type": "string"
- }
- ]
- },
- {
- "type": "null"
- }
- ],
- "description": "Choice of icon representation. Null removes the configured type."
- },
- "icon_value": {
- "description": "Identifier or value of the selected icon. Null clears it.",
- "type": [
- "string",
- "null"
- ]
- },
- "key": {
- "description": "Optional Kaiten key for this entity. Null clears the key where supported.",
- "type": [
- "string",
- "null"
- ]
- },
- "notification_period_end": {
- "description": "End timestamp of the notification window. Null clears it.",
- "type": [
- "string",
- "null"
- ]
- },
- "notification_period_start": {
- "description": "Start timestamp of the notification window. Null clears it.",
- "type": [
- "string",
- "null"
- ]
- },
- "parent_entity_uid": {
- "anyOf": [
- {
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "UID of the destination group. Null selects the root."
- },
- "public": {
- "description": "Set public-site publication visibility.",
- "type": "boolean"
- },
- "publish_date": {
- "description": "Publication timestamp. Null clears the configured date.",
- "type": [
- "string",
- "null"
- ]
- },
- "published_version": {
- "anyOf": [
- {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "const": "current",
- "type": "string"
- }
- ]
- },
- {
- "type": "null"
- }
- ],
- "description": "Revision to publish, current for the latest saved version, or null to clear the published revision."
- },
- "redirect_url": {
- "description": "Public-site redirect destination. Null clears the redirect.",
- "type": [
- "string",
- "null"
- ]
- },
- "schema_version": {
- "description": "Concrete v<number> from get_document_schema, such as v28. Resolve latest before calling.",
- "pattern": "^v[1-9][0-9]*$",
- "type": "string"
- },
- "settings": {
- "additionalProperties": false,
- "description": "Document display settings.",
- "properties": {
- "content_width": {
- "anyOf": [
- {
- "const": "default",
- "type": "string"
- },
- {
- "const": "wide",
- "type": "string"
- }
- ],
- "description": "Default or wide layout. Wide requires the corresponding Kaiten rollout."
- }
- },
- "type": "object"
- },
- "slug": {
- "description": "Public URL slug. Null clears the custom slug.",
- "type": [
- "string",
- "null"
- ]
- },
- "sort_order": {
- "description": "Numeric position relative to other items in the parent group.",
- "type": "number"
- },
- "title": {
- "description": "Display title for this document or document group.",
- "type": "string"
- }
- },
- "required": [
- "data",
- "schema_version"
- ],
- "type": "object"
- },
- "document_uid": {
- "description": "Document UID from list_documents. Use uid rather than the numeric id field.",
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "document_uid",
- "body"
- ],
- "type": "object"
- }
- ]
- },
- "operation": {
- "const": "update_document",
- "description": "Choose the update_document argument form matching your task.",
- "type": "string"
- }
- },
- "required": [
- "operation",
- "args"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "args": {
- "additionalProperties": false,
- "description": "Remove a document through Kaiten’s archive endpoint. It returns the archived document; this catalog has no restore operation.",
- "properties": {
- "document_uid": {
- "description": "Document UID from list_documents. Use uid rather than the numeric id field.",
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "document_uid"
- ],
- "type": "object"
- },
- "operation": {
- "const": "archive_document",
- "description": "Remove a document through Kaiten’s archive endpoint. It returns the archived document; this catalog has no restore operation.",
- "type": "string"
- }
- },
- "required": [
- "operation",
- "args"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "args": {
- "additionalProperties": false,
- "description": "Create a titled folder at the root or under an existing parent group. Verify that the token can create in that destination.",
- "properties": {
- "body": {
- "additionalProperties": false,
- "description": "New document folder title, parent, role and ordering.",
- "properties": {
- "for_everyone_access_role_id": {
- "anyOf": [
- {
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Role UID that applies when access is for_everyone."
- },
- "key": {
- "description": "Optional Kaiten key for this entity. Null clears the key where supported.",
- "type": [
- "string",
- "null"
- ]
- },
- "parent_entity_uid": {
- "anyOf": [
- {
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "UID of the destination group. Null selects the root."
- },
- "sort_order": {
- "description": "Numeric position relative to other items in the parent group.",
- "type": "number"
- },
- "title": {
- "description": "Display title for this document or document group.",
- "type": "string"
- }
- },
- "required": [
- "title"
- ],
- "type": "object"
- }
- },
- "required": [
- "body"
- ],
- "type": "object"
- },
- "operation": {
- "const": "create_document_group",
- "description": "Create a titled folder at the root or under an existing parent group. Verify that the token can create in that destination.",
- "type": "string"
- }
- },
- "required": [
- "operation",
- "args"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "args": {
- "additionalProperties": false,
- "description": "Change an existing folder’s title, parent, order or access/public-site settings. If setting a homepage, choose a visible document inside this group’s tree.",
- "properties": {
- "body": {
- "additionalProperties": false,
- "description": "Folder patch. Include at least one of title, parent, sort order, access, hostname, key, icon type, public-site visibility, news feed or index document.",
- "properties": {
- "access": {
- "anyOf": [
- {
- "const": "for_everyone",
- "type": "string"
- },
- {
- "const": "by_invite",
- "type": "string"
- }
- ],
- "description": "Use for_everyone for role-based general Kaiten access, or by_invite for explicitly invited users."
- },
- "for_everyone_access_role_id": {
- "anyOf": [
- {
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Role UID that applies when access is for_everyone."
- },
- "hidden_on_public_site": {
- "description": "Hide this record from the public site when true.",
- "type": "boolean"
- },
- "hostname": {
- "description": "Hostname for this group’s public site. Null clears it.",
- "type": [
- "string",
- "null"
- ]
- },
- "icon_color": {
- "description": "Kaiten icon color code. Null clears it.",
- "type": [
- "number",
- "null"
- ]
- },
- "icon_type": {
- "anyOf": [
- {
- "const": "material_icon",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Choice of icon representation. Null removes the configured type."
- },
- "icon_value": {
- "description": "Identifier or value of the selected icon. Null clears it.",
- "type": [
- "string",
- "null"
- ]
- },
- "index_document_uid": {
- "anyOf": [
- {
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "Homepage document UID. Requires a configured hostname and a visible, unarchived document within this folder tree. Null clears it."
- },
- "key": {
- "description": "Optional Kaiten key for this entity. Null clears the key where supported.",
- "type": [
- "string",
- "null"
- ]
- },
- "news_feed": {
- "description": "Enable the public-site news feed for this group.",
- "type": "boolean"
- },
- "parent_entity_uid": {
- "anyOf": [
- {
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "UID of the destination group. Null selects the root."
- },
- "redirect_url": {
- "description": "Public-site redirect destination. Null clears the redirect.",
- "type": [
- "string",
- "null"
- ]
- },
- "sort_order": {
- "description": "Numeric position relative to other items in the parent group.",
- "type": "number"
- },
- "title": {
- "description": "Display title for this document or document group.",
- "type": "string"
- }
- },
- "type": "object"
- },
- "document_group_uid": {
- "description": "Document group UID from list_document_groups. Use uid rather than the numeric id field.",
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "document_group_uid",
- "body"
- ],
- "type": "object"
- },
- "operation": {
- "const": "update_document_group",
- "description": "Change an existing folder’s title, parent, order or access/public-site settings. If setting a homepage, choose a visible document inside this group’s tree.",
- "type": "string"
- }
- },
- "required": [
- "operation",
- "args"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "args": {
- "additionalProperties": false,
- "description": "Remove a selected group through Kaiten; it returns the group with archived true. Inspect its child groups and documents first. This catalog exposes no restore operation.",
- "properties": {
- "document_group_uid": {
- "description": "Document group UID from list_document_groups. Use uid rather than the numeric id field.",
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "document_group_uid"
- ],
- "type": "object"
- },
- "operation": {
- "const": "archive_document_group",
- "description": "Remove a selected group through Kaiten; it returns the group with archived true. Inspect its child groups and documents first. This catalog exposes no restore operation.",
- "type": "string"
- }
- },
- "required": [
- "operation",
- "args"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "args": {
- "anyOf": [
- {
- "additionalProperties": false,
- "description": "Upload a restricted file attached to the card itself. Resolve its parent UUIDs first.",
- "properties": {
- "card_uid": {
- "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
- "format": "uuid",
- "type": "string"
- },
- "file": {
- "additionalProperties": false,
- "description": "Upload bytes in canonical padded base64, without a data URL or local path.",
- "properties": {
- "data_base64": {
- "description": "Canonical padded base64, without a data URL prefix; empty files are allowed.",
- "type": "string"
- },
- "filename": {
- "description": "Filename to store in Kaiten. Defaults to file.",
- "minLength": 1,
- "type": "string"
- },
- "mime_type": {
- "description": "MIME type of the bytes. Defaults to application/octet-stream.",
- "minLength": 1,
- "pattern": "^[\\x20-\\x7e]+$",
- "type": "string"
- }
- },
- "required": [
- "data_base64"
- ],
- "type": "object"
- },
- "target": {
- "const": "card",
- "description": "Select a restricted file attached to the card itself.",
- "type": "string"
- }
- },
- "required": [
- "target",
- "card_uid",
- "file"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "description": "Upload a restricted file attached to a card comment. Resolve its parent UUIDs first.",
- "properties": {
- "card_uid": {
- "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
- "format": "uuid",
- "type": "string"
- },
- "comment_uid": {
- "description": "Parent comment UUID from collaboration_read list_comments with format full, or from the create response.",
- "format": "uuid",
- "type": "string"
- },
- "file": {
- "additionalProperties": false,
- "description": "Upload bytes in canonical padded base64, without a data URL or local path.",
- "properties": {
- "data_base64": {
- "description": "Canonical padded base64, without a data URL prefix; empty files are allowed.",
- "type": "string"
- },
- "filename": {
- "description": "Filename to store in Kaiten. Defaults to file.",
- "minLength": 1,
- "type": "string"
- },
- "mime_type": {
- "description": "MIME type of the bytes. Defaults to application/octet-stream.",
- "minLength": 1,
- "pattern": "^[\\x20-\\x7e]+$",
- "type": "string"
- }
- },
- "required": [
- "data_base64"
- ],
- "type": "object"
- },
- "target": {
- "const": "comment",
- "description": "Select a restricted file attached to a card comment.",
- "type": "string"
- }
- },
- "required": [
- "target",
- "card_uid",
- "comment_uid",
- "file"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "description": "Upload a restricted file attached to a card custom property. Resolve its parent UUIDs first.",
- "properties": {
- "card_uid": {
- "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
- "format": "uuid",
- "type": "string"
- },
- "file": {
- "additionalProperties": false,
- "description": "Upload bytes in canonical padded base64, without a data URL or local path.",
- "properties": {
- "data_base64": {
- "description": "Canonical padded base64, without a data URL prefix; empty files are allowed.",
- "type": "string"
- },
- "filename": {
- "description": "Filename to store in Kaiten. Defaults to file.",
- "minLength": 1,
- "type": "string"
- },
- "mime_type": {
- "description": "MIME type of the bytes. Defaults to application/octet-stream.",
- "minLength": 1,
- "pattern": "^[\\x20-\\x7e]+$",
- "type": "string"
- }
- },
- "required": [
- "data_base64"
- ],
- "type": "object"
- },
- "property_uid": {
- "description": "Parent custom-property definition UUID. Resolve it with custom_properties_read.",
- "format": "uuid",
- "type": "string"
- },
- "target": {
- "const": "property",
- "description": "Select a restricted file attached to a card custom property.",
- "type": "string"
- }
- },
- "required": [
- "target",
- "card_uid",
- "property_uid",
- "file"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "description": "Upload through the deprecated public route only for an integration that explicitly needs it and a Kaiten company that still permits it.",
- "properties": {
- "card_id": {
- "description": "Numeric card ID from cards_read. Use this with an existing legacy numeric-ID attachment.",
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- "file": {
- "additionalProperties": false,
- "description": "Upload bytes in canonical padded base64, without a data URL or local path.",
- "properties": {
- "data_base64": {
- "description": "Canonical padded base64, without a data URL prefix; empty files are allowed.",
- "type": "string"
- },
- "filename": {
- "description": "Filename to store in Kaiten. Defaults to file.",
- "minLength": 1,
- "type": "string"
- },
- "mime_type": {
- "description": "MIME type of the bytes. Defaults to application/octet-stream.",
- "minLength": 1,
- "pattern": "^[\\x20-\\x7e]+$",
- "type": "string"
- }
- },
- "required": [
- "data_base64"
- ],
- "type": "object"
- },
- "target": {
- "const": "legacy_card",
- "description": "Select a legacy file with a numeric card attachment ID.",
- "type": "string"
- }
- },
- "required": [
- "target",
- "card_id",
- "file"
- ],
- "type": "object"
- }
- ]
- },
- "operation": {
- "const": "attach_file",
- "description": "Choose the attach_file argument form matching your task.",
- "type": "string"
- }
- },
- "required": [
- "operation",
- "args"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "args": {
- "anyOf": [
- {
- "additionalProperties": false,
- "description": "Rename or set the cover flag on a restricted file attached to the card itself. Omitted fields remain unchanged.",
- "properties": {
- "body": {
- "additionalProperties": false,
- "description": "Metadata patch containing at least one supported change.",
- "properties": {
- "card_cover": {
- "description": "Set true to select this file as the card cover or false to clear its cover flag. Omit to keep the current flag.",
- "type": "boolean"
- },
- "name": {
- "description": "Replacement stored filename. Omit to keep the current name.",
- "type": "string"
- }
- },
- "type": "object"
- },
- "card_uid": {
- "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
- "format": "uuid",
- "type": "string"
- },
- "file_uid": {
- "description": "Restricted attachment UUID from the relevant card, comment or property metadata.",
- "format": "uuid",
- "type": "string"
- },
- "target": {
- "const": "card",
- "description": "Select a restricted file attached to the card itself.",
- "type": "string"
- }
- },
- "required": [
- "target",
- "card_uid",
- "file_uid",
- "body"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "description": "Rename or set the cover flag on a restricted file attached to a card comment. Omitted fields remain unchanged.",
- "properties": {
- "body": {
- "additionalProperties": false,
- "description": "Metadata patch containing at least one supported change.",
- "properties": {
- "card_cover": {
- "description": "Set true to select this file as the card cover or false to clear its cover flag. Omit to keep the current flag.",
- "type": "boolean"
- },
- "name": {
- "description": "Replacement stored filename. Omit to keep the current name.",
- "type": "string"
- }
- },
- "type": "object"
- },
- "card_uid": {
- "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
- "format": "uuid",
- "type": "string"
- },
- "comment_uid": {
- "description": "Parent comment UUID from collaboration_read list_comments with format full, or from the create response.",
- "format": "uuid",
- "type": "string"
- },
- "file_uid": {
- "description": "Restricted attachment UUID from the relevant card, comment or property metadata.",
- "format": "uuid",
- "type": "string"
- },
- "target": {
- "const": "comment",
- "description": "Select a restricted file attached to a card comment.",
- "type": "string"
- }
- },
- "required": [
- "target",
- "card_uid",
- "comment_uid",
- "file_uid",
- "body"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "description": "Rename or set the cover flag on a restricted file attached to a card custom property. Omitted fields remain unchanged.",
- "properties": {
- "body": {
- "additionalProperties": false,
- "description": "Metadata patch containing at least one supported change.",
- "properties": {
- "card_cover": {
- "description": "Set true to select this file as the card cover or false to clear its cover flag. Omit to keep the current flag.",
- "type": "boolean"
- },
- "name": {
- "description": "Replacement stored filename. Omit to keep the current name.",
- "type": "string"
- }
- },
- "type": "object"
- },
- "card_uid": {
- "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
- "format": "uuid",
- "type": "string"
- },
- "file_uid": {
- "description": "Restricted attachment UUID from the relevant card, comment or property metadata.",
- "format": "uuid",
- "type": "string"
- },
- "property_uid": {
- "description": "Parent custom-property definition UUID. Resolve it with custom_properties_read.",
- "format": "uuid",
- "type": "string"
- },
- "target": {
- "const": "property",
- "description": "Select a restricted file attached to a card custom property.",
- "type": "string"
- }
- },
- "required": [
- "target",
- "card_uid",
- "property_uid",
- "file_uid",
- "body"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "description": "Set or clear the cover flag of an existing legacy card attachment.",
- "properties": {
- "body": {
- "additionalProperties": false,
- "description": "Metadata patch containing at least one supported change.",
- "properties": {
- "card_cover": {
- "description": "Set true to select this file as the card cover or false to clear its cover flag. Omit to keep the current flag.",
- "type": "boolean"
- }
- },
- "type": "object"
- },
- "card_id": {
- "description": "Numeric card ID from cards_read. Use this with an existing legacy numeric-ID attachment.",
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- "file_id": {
- "description": "Legacy numeric attachment ID found on the card.",
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- "target": {
- "const": "legacy_card",
- "description": "Select a legacy file with a numeric card attachment ID.",
- "type": "string"
- }
- },
- "required": [
- "target",
- "card_id",
- "file_id",
- "body"
- ],
- "type": "object"
- }
- ]
- },
- "operation": {
- "const": "update_attachment",
- "description": "Choose the update_attachment argument form matching your task.",
- "type": "string"
- }
- },
- "required": [
- "operation",
- "args"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "args": {
- "anyOf": [
- {
- "additionalProperties": false,
- "description": "Remove a restricted file attached to the card itself from its parent. There is no attachment restore operation.",
- "properties": {
- "card_uid": {
- "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
- "format": "uuid",
- "type": "string"
- },
- "file_uid": {
- "description": "Restricted attachment UUID from the relevant card, comment or property metadata.",
- "format": "uuid",
- "type": "string"
- },
- "target": {
- "const": "card",
- "description": "Select a restricted file attached to the card itself.",
- "type": "string"
- }
- },
- "required": [
- "target",
- "card_uid",
- "file_uid"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "description": "Remove a restricted file attached to a card comment from its parent. There is no attachment restore operation.",
- "properties": {
- "card_uid": {
- "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
- "format": "uuid",
- "type": "string"
- },
- "comment_uid": {
- "description": "Parent comment UUID from collaboration_read list_comments with format full, or from the create response.",
- "format": "uuid",
- "type": "string"
- },
- "file_uid": {
- "description": "Restricted attachment UUID from the relevant card, comment or property metadata.",
- "format": "uuid",
- "type": "string"
- },
- "target": {
- "const": "comment",
- "description": "Select a restricted file attached to a card comment.",
- "type": "string"
- }
- },
- "required": [
- "target",
- "card_uid",
- "comment_uid",
- "file_uid"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "description": "Remove a restricted file attached to a card custom property from its parent. There is no attachment restore operation.",
- "properties": {
- "card_uid": {
- "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
- "format": "uuid",
- "type": "string"
- },
- "file_uid": {
- "description": "Restricted attachment UUID from the relevant card, comment or property metadata.",
- "format": "uuid",
- "type": "string"
- },
- "property_uid": {
- "description": "Parent custom-property definition UUID. Resolve it with custom_properties_read.",
- "format": "uuid",
- "type": "string"
- },
- "target": {
- "const": "property",
- "description": "Select a restricted file attached to a card custom property.",
- "type": "string"
- }
- },
- "required": [
- "target",
- "card_uid",
- "property_uid",
- "file_uid"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "description": "Remove a legacy file with a numeric card attachment ID from its parent. There is no attachment restore operation.",
- "properties": {
- "card_id": {
- "description": "Numeric card ID from cards_read. Use this with an existing legacy numeric-ID attachment.",
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- "file_id": {
- "description": "Legacy numeric attachment ID found on the card.",
- "exclusiveMinimum": 0,
- "type": "integer"
- },
- "target": {
- "const": "legacy_card",
- "description": "Select a legacy file with a numeric card attachment ID.",
- "type": "string"
- }
- },
- "required": [
- "target",
- "card_id",
- "file_id"
- ],
- "type": "object"
- }
- ]
- },
- "operation": {
- "const": "delete_attachment",
- "description": "Choose the delete_attachment argument form matching your task.",
- "type": "string"
- }
- },
- "required": [
- "operation",
- "args"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "args": {
+ "additionalProperties": false,
+ "description": "Create a new document at the given sort position. Supply a group UID for a nested document or clone_uid to copy an accessible document. Use update_document to set content.",
+ "properties": {
+ "body": {
+ "additionalProperties": false,
+ "description": "New document placement and metadata, with optional source document for cloning.",
+ "properties": {
+ "clone_uid": {
+ "description": "UID of the existing document to copy.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "clone_version": {
+ "description": "Numeric source document revision to copy when using clone_uid.",
+ "type": "number"
+ },
+ "for_everyone_access_role_id": {
+ "description": "Role UID that applies when access is for_everyone.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "key": {
+ "description": "Optional Kaiten key for this entity. Null clears the key where supported.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "parent_entity_uid": {
+ "anyOf": [
+ {
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "UID of the destination group. Null selects the root."
+ },
+ "sort_order": {
+ "description": "Numeric position relative to other items in the parent group.",
+ "type": "number"
+ },
+ "title": {
+ "description": "Display title for this document or document group.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "sort_order"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "body"
+ ],
+ "type": "object"
+ },
+ "operation": {
+ "const": "create_document",
+ "description": "Create a new document at the given sort position. Supply a group UID for a nested document or clone_uid to copy an accessible document. Use update_document to set content.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "operation",
+ "args"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "args": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "description": "Patch metadata, restore a backup, or edit content using the document’s current schema. Fetch get_document_schema before submitting the complete ProseMirror tree. Review audience and revision before publishing.",
+ "properties": {
+ "body": {
+ "additionalProperties": false,
+ "description": "Document patch. Omitted fields retain their values; explicit null only clears nullable fields.",
+ "properties": {
+ "access": {
+ "anyOf": [
+ {
+ "const": "for_everyone",
+ "type": "string"
+ },
+ {
+ "const": "by_invite",
+ "type": "string"
+ }
+ ],
+ "description": "Use for_everyone for role-based general Kaiten access, or by_invite for explicitly invited users."
+ },
+ "backup_version": {
+ "description": "Version of the document backup to restore.",
+ "type": "number"
+ },
+ "data": {
+ "additionalProperties": false,
+ "description": "Replacement ProseMirror document tree with root type doc and a content array. Submit the full tree for the selected schema.",
+ "properties": {
+ "attrs": {
+ "additionalProperties": {
+ "$ref": "#/$defs/__schema1"
+ },
+ "description": "Root node attributes defined by Kaiten’s document schema.",
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "content": {
+ "description": "Ordered top-level nodes, which can nest content and contain schema-defined marks and attributes.",
+ "items": {
+ "$ref": "#/$defs/__schema0"
+ },
+ "type": "array"
+ },
+ "marks": {
+ "description": "Optional marks defined by the selected Kaiten document schema.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "attrs": {
+ "additionalProperties": {
+ "$ref": "#/$defs/__schema1"
+ },
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "type": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "text": {
+ "description": "Root text field where supported by the document schema.",
+ "type": "string"
+ },
+ "type": {
+ "const": "doc",
+ "description": "Root node type, doc.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "content"
+ ],
+ "type": "object"
+ },
+ "for_everyone_access_role_id": {
+ "description": "Role UID that applies when access is for_everyone.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "hidden_on_public_site": {
+ "description": "Hide this record from the public site when true.",
+ "type": "boolean"
+ },
+ "icon_color": {
+ "description": "Kaiten icon color code. Null clears it.",
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "icon_type": {
+ "anyOf": [
+ {
+ "anyOf": [
+ {
+ "const": "material_icon",
+ "type": "string"
+ },
+ {
+ "const": "emoji",
+ "type": "string"
+ }
+ ]
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Choice of icon representation. Null removes the configured type."
+ },
+ "icon_value": {
+ "description": "Identifier or value of the selected icon. Null clears it.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "key": {
+ "description": "Optional Kaiten key for this entity. Null clears the key where supported.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "notification_period_end": {
+ "description": "End timestamp of the notification window. Null clears it.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "notification_period_start": {
+ "description": "Start timestamp of the notification window. Null clears it.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "parent_entity_uid": {
+ "anyOf": [
+ {
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "UID of the destination group. Null selects the root."
+ },
+ "public": {
+ "description": "Set public-site publication visibility.",
+ "type": "boolean"
+ },
+ "publish_date": {
+ "description": "Publication timestamp. Null clears the configured date.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "published_version": {
+ "anyOf": [
+ {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "const": "current",
+ "type": "string"
+ }
+ ]
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Pass a revision number to publish that revision. Use current or null to publish the current revision."
+ },
+ "redirect_url": {
+ "description": "Public-site redirect destination. Null clears the redirect.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "settings": {
+ "additionalProperties": false,
+ "description": "Document display settings.",
+ "properties": {
+ "content_width": {
+ "anyOf": [
+ {
+ "const": "default",
+ "type": "string"
+ },
+ {
+ "const": "wide",
+ "type": "string"
+ }
+ ],
+ "description": "Default or wide layout. Wide requires the corresponding Kaiten rollout."
+ }
+ },
+ "type": "object"
+ },
+ "slug": {
+ "description": "Public URL slug. Null clears the custom slug.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "sort_order": {
+ "description": "Numeric position relative to other items in the parent group.",
+ "type": "number"
+ },
+ "title": {
+ "description": "Display title for this document or document group.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "document_uid": {
+ "description": "Document UID from list_documents. Use uid rather than the numeric id field.",
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "document_uid",
+ "body"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Save a complete ProseMirror tree with its schema. Resolve the current or a newer schema using get_document_schema, then pass result.version as body.schema_version. Kaiten validates the tree as supplied and saves schema and content together.",
+ "properties": {
+ "body": {
+ "additionalProperties": false,
+ "description": "Document patch with a concrete schema_version and complete data. This form excludes backup_version.",
+ "properties": {
+ "access": {
+ "anyOf": [
+ {
+ "const": "for_everyone",
+ "type": "string"
+ },
+ {
+ "const": "by_invite",
+ "type": "string"
+ }
+ ],
+ "description": "Use for_everyone for role-based general Kaiten access, or by_invite for explicitly invited users."
+ },
+ "data": {
+ "additionalProperties": false,
+ "description": "Replacement ProseMirror document tree with root type doc and a content array. Submit the full tree for the selected schema.",
+ "properties": {
+ "attrs": {
+ "additionalProperties": {
+ "$ref": "#/$defs/__schema1"
+ },
+ "description": "Root node attributes defined by Kaiten’s document schema.",
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "content": {
+ "description": "Ordered top-level nodes, which can nest content and contain schema-defined marks and attributes.",
+ "items": {
+ "$ref": "#/$defs/__schema0"
+ },
+ "type": "array"
+ },
+ "marks": {
+ "description": "Optional marks defined by the selected Kaiten document schema.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "attrs": {
+ "additionalProperties": {
+ "$ref": "#/$defs/__schema1"
+ },
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "type": {
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "type"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "text": {
+ "description": "Root text field where supported by the document schema.",
+ "type": "string"
+ },
+ "type": {
+ "const": "doc",
+ "description": "Root node type, doc.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "content"
+ ],
+ "type": "object"
+ },
+ "for_everyone_access_role_id": {
+ "description": "Role UID that applies when access is for_everyone.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "hidden_on_public_site": {
+ "description": "Hide this record from the public site when true.",
+ "type": "boolean"
+ },
+ "icon_color": {
+ "description": "Kaiten icon color code. Null clears it.",
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "icon_type": {
+ "anyOf": [
+ {
+ "anyOf": [
+ {
+ "const": "material_icon",
+ "type": "string"
+ },
+ {
+ "const": "emoji",
+ "type": "string"
+ }
+ ]
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Choice of icon representation. Null removes the configured type."
+ },
+ "icon_value": {
+ "description": "Identifier or value of the selected icon. Null clears it.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "key": {
+ "description": "Optional Kaiten key for this entity. Null clears the key where supported.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "notification_period_end": {
+ "description": "End timestamp of the notification window. Null clears it.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "notification_period_start": {
+ "description": "Start timestamp of the notification window. Null clears it.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "parent_entity_uid": {
+ "anyOf": [
+ {
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "UID of the destination group. Null selects the root."
+ },
+ "public": {
+ "description": "Set public-site publication visibility.",
+ "type": "boolean"
+ },
+ "publish_date": {
+ "description": "Publication timestamp. Null clears the configured date.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "published_version": {
+ "anyOf": [
+ {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "const": "current",
+ "type": "string"
+ }
+ ]
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Pass a revision number to publish that revision. Use current or null to publish the current revision."
+ },
+ "redirect_url": {
+ "description": "Public-site redirect destination. Null clears the redirect.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "schema_version": {
+ "description": "Use result.version from get_document_schema, for example v28. If you queried latest, use the returned concrete version. Include the full body.data tree and omit body.backup_version.",
+ "pattern": "^v[1-9][0-9]*$",
+ "type": "string"
+ },
+ "settings": {
+ "additionalProperties": false,
+ "description": "Document display settings.",
+ "properties": {
+ "content_width": {
+ "anyOf": [
+ {
+ "const": "default",
+ "type": "string"
+ },
+ {
+ "const": "wide",
+ "type": "string"
+ }
+ ],
+ "description": "Default or wide layout. Wide requires the corresponding Kaiten rollout."
+ }
+ },
+ "type": "object"
+ },
+ "slug": {
+ "description": "Public URL slug. Null clears the custom slug.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "sort_order": {
+ "description": "Numeric position relative to other items in the parent group.",
+ "type": "number"
+ },
+ "title": {
+ "description": "Display title for this document or document group.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "data",
+ "schema_version"
+ ],
+ "type": "object"
+ },
+ "document_uid": {
+ "description": "Document UID from list_documents. Use uid rather than the numeric id field.",
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "document_uid",
+ "body"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "operation": {
+ "const": "update_document",
+ "description": "Choose the update_document argument form matching your task.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "operation",
+ "args"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "args": {
+ "additionalProperties": false,
+ "description": "Remove a document through Kaiten’s archive endpoint. It returns the archived document; this catalog has no restore operation.",
+ "properties": {
+ "document_uid": {
+ "description": "Document UID from list_documents. Use uid rather than the numeric id field.",
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "document_uid"
+ ],
+ "type": "object"
+ },
+ "operation": {
+ "const": "archive_document",
+ "description": "Remove a document through Kaiten’s archive endpoint. It returns the archived document; this catalog has no restore operation.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "operation",
+ "args"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "args": {
+ "additionalProperties": false,
+ "description": "Create a titled folder at the root or under an existing parent group. Verify that the token can create in that destination.",
+ "properties": {
+ "body": {
+ "additionalProperties": false,
+ "description": "New document folder title, parent, role and ordering.",
+ "properties": {
+ "for_everyone_access_role_id": {
+ "anyOf": [
+ {
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Role UID that applies when access is for_everyone."
+ },
+ "key": {
+ "description": "Optional Kaiten key for this entity. Null clears the key where supported.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "parent_entity_uid": {
+ "anyOf": [
+ {
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "UID of the destination group. Null selects the root."
+ },
+ "sort_order": {
+ "description": "Numeric position relative to other items in the parent group.",
+ "type": "number"
+ },
+ "title": {
+ "description": "Display title for this document or document group.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "title"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "body"
+ ],
+ "type": "object"
+ },
+ "operation": {
+ "const": "create_document_group",
+ "description": "Create a titled folder at the root or under an existing parent group. Verify that the token can create in that destination.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "operation",
+ "args"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "args": {
+ "additionalProperties": false,
+ "description": "Change an existing folder’s title, parent, order or access/public-site settings. If setting a homepage, choose a visible document inside this group’s tree.",
+ "properties": {
+ "body": {
+ "additionalProperties": false,
+ "description": "Folder patch. Include at least one of title, parent, sort order, access, hostname, key, icon type, public-site visibility, news feed or index document.",
+ "properties": {
+ "access": {
+ "anyOf": [
+ {
+ "const": "for_everyone",
+ "type": "string"
+ },
+ {
+ "const": "by_invite",
+ "type": "string"
+ }
+ ],
+ "description": "Use for_everyone for role-based general Kaiten access, or by_invite for explicitly invited users."
+ },
+ "for_everyone_access_role_id": {
+ "anyOf": [
+ {
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Role UID that applies when access is for_everyone."
+ },
+ "hidden_on_public_site": {
+ "description": "Hide this record from the public site when true.",
+ "type": "boolean"
+ },
+ "hostname": {
+ "description": "Hostname for this group’s public site. Null clears it.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "icon_color": {
+ "description": "Kaiten icon color code. Null clears it.",
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "icon_type": {
+ "anyOf": [
+ {
+ "const": "material_icon",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Choice of icon representation. Null removes the configured type."
+ },
+ "icon_value": {
+ "description": "Identifier or value of the selected icon. Null clears it.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "index_document_uid": {
+ "anyOf": [
+ {
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Homepage document UID. Requires a configured hostname and a visible, unarchived document within this folder tree. Null clears it."
+ },
+ "key": {
+ "description": "Optional Kaiten key for this entity. Null clears the key where supported.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "news_feed": {
+ "description": "Enable the public-site news feed for this group.",
+ "type": "boolean"
+ },
+ "parent_entity_uid": {
+ "anyOf": [
+ {
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "UID of the destination group. Null selects the root."
+ },
+ "redirect_url": {
+ "description": "Public-site redirect destination. Null clears the redirect.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "sort_order": {
+ "description": "Numeric position relative to other items in the parent group.",
+ "type": "number"
+ },
+ "title": {
+ "description": "Display title for this document or document group.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "document_group_uid": {
+ "description": "Document group UID from list_document_groups. Use uid rather than the numeric id field.",
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "document_group_uid",
+ "body"
+ ],
+ "type": "object"
+ },
+ "operation": {
+ "const": "update_document_group",
+ "description": "Change an existing folder’s title, parent, order or access/public-site settings. If setting a homepage, choose a visible document inside this group’s tree.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "operation",
+ "args"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "args": {
+ "additionalProperties": false,
+ "description": "Remove a selected group through Kaiten; it returns the group with archived true. Inspect its child groups and documents first. This catalog exposes no restore operation.",
+ "properties": {
+ "document_group_uid": {
+ "description": "Document group UID from list_document_groups. Use uid rather than the numeric id field.",
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "document_group_uid"
+ ],
+ "type": "object"
+ },
+ "operation": {
+ "const": "archive_document_group",
+ "description": "Remove a selected group through Kaiten; it returns the group with archived true. Inspect its child groups and documents first. This catalog exposes no restore operation.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "operation",
+ "args"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "args": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "description": "Upload a restricted file attached to the card itself. Resolve the required parent UUIDs first and reuse the returned attachment ID for later updates or deletion.",
+ "properties": {
+ "card_uid": {
+ "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
+ "format": "uuid",
+ "type": "string"
+ },
+ "file": {
+ "additionalProperties": false,
+ "description": "Place canonical padded base64 in data_base64, for example SGk= for two bytes. Omit any data URL prefix. The decoded size is capped by KAITEN_MAX_FILE_BYTES.",
+ "properties": {
+ "data_base64": {
+ "description": "Canonical padded base64, without a data URL prefix; empty files are allowed.",
+ "type": "string"
+ },
+ "filename": {
+ "description": "Filename to store in Kaiten. Defaults to file.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "mime_type": {
+ "description": "MIME type of the bytes. Defaults to application/octet-stream.",
+ "minLength": 1,
+ "pattern": "^[\\x20-\\x7e]+$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "data_base64"
+ ],
+ "type": "object"
+ },
+ "target": {
+ "const": "card",
+ "description": "Select a restricted file attached to the card itself.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "target",
+ "card_uid",
+ "file"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Upload a restricted file attached to a card comment. Resolve the required parent UUIDs first and reuse the returned attachment ID for later updates or deletion.",
+ "properties": {
+ "card_uid": {
+ "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
+ "format": "uuid",
+ "type": "string"
+ },
+ "comment_uid": {
+ "description": "Parent comment UUID from collaboration_read list_comments with format full, or from the create response.",
+ "format": "uuid",
+ "type": "string"
+ },
+ "file": {
+ "additionalProperties": false,
+ "description": "Place canonical padded base64 in data_base64, for example SGk= for two bytes. Omit any data URL prefix. The decoded size is capped by KAITEN_MAX_FILE_BYTES.",
+ "properties": {
+ "data_base64": {
+ "description": "Canonical padded base64, without a data URL prefix; empty files are allowed.",
+ "type": "string"
+ },
+ "filename": {
+ "description": "Filename to store in Kaiten. Defaults to file.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "mime_type": {
+ "description": "MIME type of the bytes. Defaults to application/octet-stream.",
+ "minLength": 1,
+ "pattern": "^[\\x20-\\x7e]+$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "data_base64"
+ ],
+ "type": "object"
+ },
+ "target": {
+ "const": "comment",
+ "description": "Select a restricted file attached to a card comment.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "target",
+ "card_uid",
+ "comment_uid",
+ "file"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Upload a restricted file attached to a card custom property. Resolve the required parent UUIDs first and reuse the returned attachment ID for later updates or deletion.",
+ "properties": {
+ "card_uid": {
+ "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
+ "format": "uuid",
+ "type": "string"
+ },
+ "file": {
+ "additionalProperties": false,
+ "description": "Place canonical padded base64 in data_base64, for example SGk= for two bytes. Omit any data URL prefix. The decoded size is capped by KAITEN_MAX_FILE_BYTES.",
+ "properties": {
+ "data_base64": {
+ "description": "Canonical padded base64, without a data URL prefix; empty files are allowed.",
+ "type": "string"
+ },
+ "filename": {
+ "description": "Filename to store in Kaiten. Defaults to file.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "mime_type": {
+ "description": "MIME type of the bytes. Defaults to application/octet-stream.",
+ "minLength": 1,
+ "pattern": "^[\\x20-\\x7e]+$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "data_base64"
+ ],
+ "type": "object"
+ },
+ "property_uid": {
+ "description": "Parent custom-property definition UUID. Resolve it with custom_properties_read.",
+ "format": "uuid",
+ "type": "string"
+ },
+ "target": {
+ "const": "property",
+ "description": "Select a restricted file attached to a card custom property.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "target",
+ "card_uid",
+ "property_uid",
+ "file"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Use numeric card_id for a deprecated upload only when the Kaiten company still permits it. New uploads should use a restricted UUID route.",
+ "properties": {
+ "card_id": {
+ "description": "Numeric card ID from cards_read. Use this with an existing legacy numeric-ID attachment.",
+ "exclusiveMinimum": 0,
+ "type": "integer"
+ },
+ "file": {
+ "additionalProperties": false,
+ "description": "Place canonical padded base64 in data_base64, for example SGk= for two bytes. Omit any data URL prefix. The decoded size is capped by KAITEN_MAX_FILE_BYTES.",
+ "properties": {
+ "data_base64": {
+ "description": "Canonical padded base64, without a data URL prefix; empty files are allowed.",
+ "type": "string"
+ },
+ "filename": {
+ "description": "Filename to store in Kaiten. Defaults to file.",
+ "minLength": 1,
+ "type": "string"
+ },
+ "mime_type": {
+ "description": "MIME type of the bytes. Defaults to application/octet-stream.",
+ "minLength": 1,
+ "pattern": "^[\\x20-\\x7e]+$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "data_base64"
+ ],
+ "type": "object"
+ },
+ "target": {
+ "const": "legacy_card",
+ "description": "Select a legacy file with a numeric card attachment ID.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "target",
+ "card_id",
+ "file"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "operation": {
+ "const": "attach_file",
+ "description": "Choose the attach_file argument form matching your task.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "operation",
+ "args"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "args": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "description": "Rename or set the cover flag on a restricted file attached to the card itself. Omitted fields remain unchanged.",
+ "properties": {
+ "body": {
+ "additionalProperties": false,
+ "description": "Metadata patch containing at least one supported change.",
+ "properties": {
+ "card_cover": {
+ "description": "Set true to select this file as the card cover or false to clear its cover flag. Omit to keep the current flag.",
+ "type": "boolean"
+ },
+ "name": {
+ "description": "Replacement stored filename. Omit to keep the current name.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "card_uid": {
+ "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
+ "format": "uuid",
+ "type": "string"
+ },
+ "file_uid": {
+ "description": "Restricted attachment UUID from the relevant card, comment or property metadata.",
+ "format": "uuid",
+ "type": "string"
+ },
+ "target": {
+ "const": "card",
+ "description": "Select a restricted file attached to the card itself.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "target",
+ "card_uid",
+ "file_uid",
+ "body"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Rename or set the cover flag on a restricted file attached to a card comment. Omitted fields remain unchanged.",
+ "properties": {
+ "body": {
+ "additionalProperties": false,
+ "description": "Metadata patch containing at least one supported change.",
+ "properties": {
+ "card_cover": {
+ "description": "Set true to select this file as the card cover or false to clear its cover flag. Omit to keep the current flag.",
+ "type": "boolean"
+ },
+ "name": {
+ "description": "Replacement stored filename. Omit to keep the current name.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "card_uid": {
+ "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
+ "format": "uuid",
+ "type": "string"
+ },
+ "comment_uid": {
+ "description": "Parent comment UUID from collaboration_read list_comments with format full, or from the create response.",
+ "format": "uuid",
+ "type": "string"
+ },
+ "file_uid": {
+ "description": "Restricted attachment UUID from the relevant card, comment or property metadata.",
+ "format": "uuid",
+ "type": "string"
+ },
+ "target": {
+ "const": "comment",
+ "description": "Select a restricted file attached to a card comment.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "target",
+ "card_uid",
+ "comment_uid",
+ "file_uid",
+ "body"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Rename or set the cover flag on a restricted file attached to a card custom property. Omitted fields remain unchanged.",
+ "properties": {
+ "body": {
+ "additionalProperties": false,
+ "description": "Metadata patch containing at least one supported change.",
+ "properties": {
+ "card_cover": {
+ "description": "Set true to select this file as the card cover or false to clear its cover flag. Omit to keep the current flag.",
+ "type": "boolean"
+ },
+ "name": {
+ "description": "Replacement stored filename. Omit to keep the current name.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "card_uid": {
+ "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
+ "format": "uuid",
+ "type": "string"
+ },
+ "file_uid": {
+ "description": "Restricted attachment UUID from the relevant card, comment or property metadata.",
+ "format": "uuid",
+ "type": "string"
+ },
+ "property_uid": {
+ "description": "Parent custom-property definition UUID. Resolve it with custom_properties_read.",
+ "format": "uuid",
+ "type": "string"
+ },
+ "target": {
+ "const": "property",
+ "description": "Select a restricted file attached to a card custom property.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "target",
+ "card_uid",
+ "property_uid",
+ "file_uid",
+ "body"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Set or clear the cover flag of an existing legacy card attachment.",
+ "properties": {
+ "body": {
+ "additionalProperties": false,
+ "description": "Metadata patch containing at least one supported change.",
+ "properties": {
+ "card_cover": {
+ "description": "Set true to select this file as the card cover or false to clear its cover flag. Omit to keep the current flag.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ },
+ "card_id": {
+ "description": "Numeric card ID from cards_read. Use this with an existing legacy numeric-ID attachment.",
+ "exclusiveMinimum": 0,
+ "type": "integer"
+ },
+ "file_id": {
+ "description": "Legacy numeric attachment ID found on the card.",
+ "exclusiveMinimum": 0,
+ "type": "integer"
+ },
+ "target": {
+ "const": "legacy_card",
+ "description": "Select a legacy file with a numeric card attachment ID.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "target",
+ "card_id",
+ "file_id",
+ "body"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "operation": {
+ "const": "update_attachment",
+ "description": "Choose the update_attachment argument form matching your task.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "operation",
+ "args"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "args": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "description": "Remove a restricted file attached to the card itself from its parent. There is no attachment restore operation.",
+ "properties": {
+ "card_uid": {
+ "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
+ "format": "uuid",
+ "type": "string"
+ },
+ "file_uid": {
+ "description": "Restricted attachment UUID from the relevant card, comment or property metadata.",
+ "format": "uuid",
+ "type": "string"
+ },
+ "target": {
+ "const": "card",
+ "description": "Select a restricted file attached to the card itself.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "target",
+ "card_uid",
+ "file_uid"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Remove a restricted file attached to a card comment from its parent. There is no attachment restore operation.",
+ "properties": {
+ "card_uid": {
+ "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
+ "format": "uuid",
+ "type": "string"
+ },
+ "comment_uid": {
+ "description": "Parent comment UUID from collaboration_read list_comments with format full, or from the create response.",
+ "format": "uuid",
+ "type": "string"
+ },
+ "file_uid": {
+ "description": "Restricted attachment UUID from the relevant card, comment or property metadata.",
+ "format": "uuid",
+ "type": "string"
+ },
+ "target": {
+ "const": "comment",
+ "description": "Select a restricted file attached to a card comment.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "target",
+ "card_uid",
+ "comment_uid",
+ "file_uid"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Remove a restricted file attached to a card custom property from its parent. There is no attachment restore operation.",
+ "properties": {
+ "card_uid": {
+ "description": "Card UUID returned by list_card_files for the card that owns the attachment.",
+ "format": "uuid",
+ "type": "string"
+ },
+ "file_uid": {
+ "description": "Restricted attachment UUID from the relevant card, comment or property metadata.",
+ "format": "uuid",
+ "type": "string"
+ },
+ "property_uid": {
+ "description": "Parent custom-property definition UUID. Resolve it with custom_properties_read.",
+ "format": "uuid",
+ "type": "string"
+ },
+ "target": {
+ "const": "property",
+ "description": "Select a restricted file attached to a card custom property.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "target",
+ "card_uid",
+ "property_uid",
+ "file_uid"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Remove a legacy file with a numeric card attachment ID from its parent. There is no attachment restore operation.",
+ "properties": {
+ "card_id": {
+ "description": "Numeric card ID from cards_read. Use this with an existing legacy numeric-ID attachment.",
+ "exclusiveMinimum": 0,
+ "type": "integer"
+ },
+ "file_id": {
+ "description": "Legacy numeric attachment ID found on the card.",
+ "exclusiveMinimum": 0,
+ "type": "integer"
+ },
+ "target": {
+ "const": "legacy_card",
+ "description": "Select a legacy file with a numeric card attachment ID.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "target",
+ "card_id",
+ "file_id"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "operation": {
+ "const": "delete_attachment",
+ "description": "Choose the delete_attachment argument form matching your task.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "operation",
+ "args"
+ ],
+ "type": "object"
+ }
+]