{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vaquill-ai/json-schema/vaquill-ai-folder-schema.json",
  "title": "Folder",
  "description": "A folder as this API publishes it.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vaquill-ai-folders-api-openapi.yml#/components/schemas/Folder",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id",
      "description": "Public identifier, `fld_` followed by 32 hex characters."
    },
    "name": {
      "type": "string",
      "title": "Name",
      "description": "The folder's display name."
    },
    "parentId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Parentid",
      "description": "`fld_` identifier of the containing folder. Absent when the folder sits at the root."
    },
    "matterId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Matterid",
      "description": "`mat_` identifier when the folder is scoped to one matter. Absent means a workspace-level folder, visible across drafts and chats."
    },
    "createdAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Createdat",
      "description": "When the folder was created (RFC 3339)."
    },
    "updatedAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Updatedat",
      "description": "When the folder was last modified (RFC 3339)."
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "id",
    "name"
  ]
}