{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clarifymedical/json-schema/clarifymedical-create-workspace-request-dto-schema.json",
  "title": "CreateWorkspaceRequestDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clarifymedical-workspaces-api-openapi.yml#/components/schemas/CreateWorkspaceRequestDto",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "workspace"
          ],
          "description": "The resource type, always `workspace`."
        },
        "attributes": {
          "type": "object",
          "properties": {
            "name": {
              "description": "The workspace display name: at least 5 characters of letters, numbers, spaces, periods, and hyphens. The slug derives from it at creation.",
              "type": "string",
              "minLength": 5,
              "pattern": "^[a-zA-Z0-9 .-]+$"
            },
            "domain_join": {
              "type": "boolean",
              "description": "When true, anyone signing up with your work email domain joins the workspace automatically. Not available for personal email domains. Defaults to false."
            },
            "region": {
              "type": "string",
              "enum": [
                "AF",
                "AN",
                "AS",
                "EU",
                "NA",
                "OC",
                "SA"
              ],
              "description": "The continent code of the workspace’s main market: `AF`, `AN`, `AS`, `EU`, `NA`, `OC`, or `SA`."
            }
          },
          "required": [
            "name"
          ]
        }
      },
      "required": [
        "type",
        "attributes"
      ],
      "description": "The workspace to create."
    }
  },
  "required": [
    "data"
  ]
}