{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zentrik-ai/json-schema/zentrik-ai-post-external-v1-workspaces-request-schema.json",
  "title": "PostExternalV1WorkspacesRequest",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/zentrik-ai-openapi-generated.yml#/components/schemas/PostExternalV1WorkspacesRequest",
  "type": "object",
  "properties": {
    "reference": {
      "type": "string",
      "description": "Stable prospect reference, unique per owning user and environment. 1-120 lowercase letters, digits, dots, underscores, colons or hyphens; first character is a letter or digit."
    },
    "name": {
      "type": "string",
      "description": "Initial workspace name, 1-80 characters without control characters."
    },
    "keyName": {
      "type": "string",
      "description": "Normal workspace key name, 1-80 characters. Default: a name like `Zentrik Setup [agent-912]`."
    },
    "keyExpiresAt": {
      "type": "string",
      "description": "ISO timestamp Future workspace key expiry. Default: 90 days from this request."
    },
    "expectedWorkspaceId": {
      "type": "string",
      "description": "UUID For explicit replacement: require this reference to already identify this workspace."
    }
  },
  "required": [
    "reference",
    "name"
  ]
}