{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/anthropic/main/json-schema/anthropic-add-workspace-member-request-schema.json",
  "title": "AddWorkspaceMemberRequest",
  "x-generated": "2026-09-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/anthropic-workspace-members-api-openapi.yml#/components/schemas/AddWorkspaceMemberRequest",
  "type": "object",
  "required": [
    "user_id",
    "workspace_role"
  ],
  "properties": {
    "user_id": {
      "type": "string",
      "description": "ID of the user to add"
    },
    "workspace_role": {
      "$ref": "#/$defs/WorkspaceRole"
    }
  },
  "$defs": {
    "WorkspaceRole": {
      "type": "string",
      "enum": [
        "workspace_user",
        "workspace_developer",
        "workspace_admin",
        "workspace_billing"
      ],
      "description": "Role within the workspace"
    }
  }
}