{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/calypsoai-com/json-schema/calypsoai-com-patch-chat-body-schema.json",
  "title": "PatchChatBody",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/calypsoai-com-chats-api-openapi.yml#/components/schemas/PatchChatBody",
  "properties": {
    "name": {
      "anyOf": [
        {
          "maxLength": 100,
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Name"
    },
    "orgAccess": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "description": "Allow the chat to be access by anyone in the org",
      "title": "Orgaccess"
    },
    "publicAccess": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "description": "Make the chat publicly shareable",
      "title": "Publicaccess"
    },
    "removeUserAccess": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "description": "Remove a users access if they have been given user_access",
      "title": "Removeuseraccess"
    },
    "starred": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "description": "Use starred to bookmark chat",
      "title": "Starred"
    },
    "userAccess": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "description": "Give specific users access by adding their user ID to the list",
      "title": "Useraccess"
    }
  },
  "type": "object"
}