Cal.com Orgs / Attributes / Options API

The Orgs / Attributes / Options API from Cal.com — 7 operation(s) for orgs / attributes / options.

GitHub OpenAPI

Operations 11

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /v2/organizations/{orgId}/attributes/{attributeId}/options Add an option to a custom attribute · Create an attribute option #
Ask an LLM
“How do I add a new value to a custom attribute?”
“Can I create an option for an attribute by its slug instead of ID?”
Tell an agent
Create option {value} with slug {slug} for attribute {attributeId} in organization {orgId}.
Add a new {value} option to attribute {attributeId} in org {orgId}, slug {slug}.
GET /v2/organizations/{orgId}/attributes/{attributeId}/options List the options of an attribute · Get all attribute options #
Ask an LLM
“What values can I pick for a custom attribute in my organization?”
“Which option slugs belong to a given attribute?”
Tell an agent
List the options of attribute {attributeId} in organization {orgId}.
Show every value and slug defined for attribute {attributeId} in org {orgId}.
DELETE /v2/organizations/{orgId}/attributes/{attributeId}/options/{optionId} Delete an attribute option · Delete an attribute option #
Ask an LLM
“How do I delete an option from a custom organization attribute?”
“Do I need to be an org admin to remove an attribute option?”
Tell an agent destructive · confirm first
Delete option {optionId} from attribute {attributeId} in organization {orgId}.
Remove attribute option {optionId} from custom attribute {attributeId} for org {orgId}.
PATCH /v2/organizations/{orgId}/attributes/{attributeId}/options/{optionId} Rename or relabel an attribute option · Update an attribute option #
Ask an LLM
“Can I rename an existing option on a custom attribute?”
“How do I change the slug of an attribute option?”
Tell an agent
Rename option {optionId} on attribute {attributeId} in organization {orgId} to {value}.
Change the slug of option {optionId} of attribute {attributeId} in org {orgId} to {slug}.
GET /v2/organizations/{orgId}/attributes/{attributeId}/options/assigned List attribute options assigned to users · Get all assigned attribute options by attribute ID #
Ask an LLM
“Which users have a given attribute option assigned?”
“Can I filter assigned attribute options by team?”
Tell an agent
List the users assigned option {optionId} of attribute {attributeId} in organization {orgId}.
Show assigned options for attribute {attributeId} in org {orgId} for teams {teamIds}.
GET /v2/organizations/{orgId}/attributes/slugs/{attributeSlug}/options/assigned List an attribute's assigned options · Get all assigned attribute options by attribute slug #
Ask an LLM
“Which users have a particular custom attribute option assigned?”
“Can I filter an attribute's assigned option list by team?”
Tell an agent
List assigned options for attribute {attributeSlug} in organization {orgId}.
Show which users hold option {assignedOptionIds} on attribute {attributeSlug} for org {orgId}.
POST /v2/organizations/{orgId}/attributes/options/{userId} Assign an attribute option to a user · Assign an attribute to a user #
Ask an LLM
“How do I give a user a custom attribute value?”
“Can I set a weight when assigning an option to a user?”
Tell an agent
Assign option {attributeOptionId} of attribute {attributeId} to user {userId} in organization {orgId}.
Give user {userId} the {value} option of attribute {attributeId} in org {orgId} with weight {weight}.
GET /v2/organizations/{orgId}/attributes/options/{userId} Get a user's assigned attribute options · Get all attribute options for a user #
Ask an LLM
“What custom attribute values has a user been assigned?”
“Which options does one user hold for an attribute?”
Tell an agent
List the attribute options assigned to user {userId} in organization {orgId}.
Show which values user {userId} holds in org {orgId}.
PATCH /v2/organizations/{orgId}/attributes/options/{userId}/{attributeOptionId} Change a user's attribute option weight · Update an attribute assignment for a user #
Ask an LLM
“Can I change how much weight a user's attribute option carries?”
“Is it possible to adjust a single assigned option's weight?”
Tell an agent
Set the weight of option {attributeOptionId} for user {userId} in organization {orgId} to {weight}.
Change user {userId}'s weight on option {attributeOptionId} in org {orgId} to {weight}.
DELETE /v2/organizations/{orgId}/attributes/options/{userId}/{attributeOptionId} Unassign an attribute option from a user · Unassign an attribute from a user #
Ask an LLM
“How do I take a custom attribute option away from a team member?”
“Can an org admin unassign an attribute option from a user?”
Tell an agent destructive · confirm first
Unassign option {attributeOptionId} from user {userId} in organization {orgId}.
Revoke custom attribute {attributeOptionId} from team member {userId} for org {orgId}.
GET /v2/organizations/{orgId}/attributes/assignments/{userId}/history View a user's attribute assignment history · Get attribute assignment history for a user #
Ask an LLM
“Who assigned or removed an attribute option from a user, and when?”
“Can I see the audit trail of a user's attribute assignments?”
Tell an agent
Show the assignment history for user {userId} in organization {orgId}.
List the last {limit} attribute assignment changes for user {userId} in org {orgId}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cal-com:cal-com-orgs-attributes-options-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cal-com-orgs-attributes-options-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cal.com API v2 Orgs / Attributes / Options API
  description: ''
  version: 1.0.0
  contact: {}
servers: []
tags:
- name: Orgs / Attributes / Options
paths:
  /v2/organizations/{orgId}/attributes/{attributeId}/options:
    post:
      description: 'Required membership role: `org admin`. PBAC permission: `organization.attributes.create`. Learn more about API access control at https://cal.com/docs/api-reference/v2/access-control'
      operationId: OrganizationsAttributesOptionsController_createOrganizationAttributeOption
      parameters:
      - name: Authorization
        in: header
        description: value must be `Bearer <token>` where `<token>` is api key prefixed with cal_
        required: true
        schema:
          type: string
      - name: orgId
        required: true
        in: path
        schema:
          type: number
      - name: attributeId
        required: true
        in: path
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateOrganizationAttributeOptionInput'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateAttributeOptionOutput'
      summary: Create an attribute option
      tags:
      - Orgs / Attributes / Options
      x-platform-plan: ESSENTIALS
    get:
      description: 'Required membership role: `org member`. PBAC permission: `organization.attributes.read`. Learn more about API access control at https://cal.com/docs/api-reference/v2/access-control'
      operationId: OrganizationsAttributesOptionsController_getOrganizationAttributeOptions
      parameters:
      - name: Authorization
        in: header
        description: value must be `Bearer <token>` where `<token>` is api key prefixed with cal_
        required: true
        schema:
          type: string
      - name: orgId
        required: true
        in: path
        schema:
          type: number
      - name: attributeId
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetAllAttributeOptionOutput'
      summary: Get all attribute options
      tags:
      - Orgs / Attributes / Options
      x-mcp:
        name: get_attribute_options
        guidance: List all available options for a SINGLE_SELECT or MULTI_SELECT attribute. Returns option IDs and values needed when assigning attributes to users via assign_attribute_to_user.
      x-oauth-scopes:
      - ORG_ATTRIBUTES_READ
      x-platform-plan: ESSENTIALS
  /v2/organizations/{orgId}/attributes/{attributeId}/options/{optionId}:
    delete:
      description: 'Required membership role: `org admin`. PBAC permission: `organization.attributes.delete`. Learn more about API access control at https://cal.com/docs/api-reference/v2/access-control'
      operationId: OrganizationsAttributesOptionsController_deleteOrganizationAttributeOption
      parameters:
      - name: Authorization
        in: header
        description: value must be `Bearer <token>` where `<token>` is api key prefixed with cal_
        required: true
        schema:
          type: string
      - name: orgId
        required: true
        in: path
        schema:
          type: number
      - name: attributeId
        required: true
        in: path
        schema:
          type: string
      - name: optionId
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteAttributeOptionOutput'
      summary: Delete an attribute option
      tags:
      - Orgs / Attributes / Options
      x-platform-plan: ESSENTIALS
    patch:
      description: 'Required membership role: `org admin`. PBAC permission: `organization.attributes.update`. Learn more about API access control at https://cal.com/docs/api-reference/v2/access-control'
      operationId: OrganizationsAttributesOptionsController_updateOrganizationAttributeOption
      parameters:
      - name: Authorization
        in: header
        description: value must be `Bearer <token>` where `<token>` is api key prefixed with cal_
        required: true
        schema:
          type: string
      - name: orgId
        required: true
        in: path
        schema:
          type: number
      - name: attributeId
        required: true
        in: path
        schema:
          type: string
      - name: optionId
        required: true
        in: path
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateOrganizationAttributeOptionInput'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateAttributeOptionOutput'
      summary: Update an attribute option
      tags:
      - Orgs / Attributes / Options
      x-platform-plan: ESSENTIALS
  /v2/organizations/{orgId}/attributes/{attributeId}/options/assigned:
    get:
      description: 'Required membership role: `org member`. PBAC permission: `organization.attributes.read`. Learn more about API access control at https://cal.com/docs/api-reference/v2/access-control'
      operationId: OrganizationsAttributesOptionsController_getOrganizationAttributeAssignedOptions
      parameters:
      - name: Authorization
        in: header
        description: value must be `Bearer <token>` where `<token>` is api key prefixed with cal_
        required: true
        schema:
          type: string
      - name: orgId
        required: true
        in: path
        schema:
          type: number
      - name: attributeId
        required: true
        in: path
        schema:
          type: string
      - name: skip
        required: false
        in: query
        description: Number of responses to skip
        schema:
          type: number
      - name: take
        required: false
        in: query
        description: Number of responses to take
        schema:
          type: number
      - name: assignedOptionIds
        required: false
        in: query
        description: Filter by assigned attribute option ids. ids must be separated by a comma.
        schema:
          minItems: 1
          example: ?assignedOptionIds=aaaaaaaa-bbbb-cccc-dddd-eeeeee1eee,aaaaaaaa-bbbb-cccc-dddd-eeeeee2eee
          type: array
          items:
            type: string
      - name: teamIds
        required: false
        in: query
        description: Filter by teamIds. Team ids must be separated by a comma.
        schema:
          minItems: 1
          example: ?teamIds=100,200
          type: array
          items:
            type: number
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetAllAttributeAssignedOptionOutput'
      summary: Get all assigned attribute options by attribute ID
      tags:
      - Orgs / Attributes / Options
      x-oauth-scopes:
      - ORG_ATTRIBUTES_READ
      x-platform-plan: ESSENTIALS
  /v2/organizations/{orgId}/attributes/slugs/{attributeSlug}/options/assigned:
    get:
      description: 'Required membership role: `org member`. PBAC permission: `organization.attributes.read`. Learn more about API access control at https://cal.com/docs/api-reference/v2/access-control'
      operationId: OrganizationsAttributesOptionsController_getOrganizationAttributeAssignedOptionsBySlug
      parameters:
      - name: Authorization
        in: header
        description: value must be `Bearer <token>` where `<token>` is api key prefixed with cal_
        required: true
        schema:
          type: string
      - name: orgId
        required: true
        in: path
        schema:
          type: number
      - name: attributeSlug
        required: true
        in: path
        schema:
          type: string
      - name: skip
        required: false
        in: query
        description: Number of responses to skip
        schema:
          type: number
      - name: take
        required: false
        in: query
        description: Number of responses to take
        schema:
          type: number
      - name: assignedOptionIds
        required: false
        in: query
        description: Filter by assigned attribute option ids. ids must be separated by a comma.
        schema:
          minItems: 1
          example: ?assignedOptionIds=aaaaaaaa-bbbb-cccc-dddd-eeeeee1eee,aaaaaaaa-bbbb-cccc-dddd-eeeeee2eee
          type: array
          items:
            type: string
      - name: teamIds
        required: false
        in: query
        description: Filter by teamIds. Team ids must be separated by a comma.
        schema:
          minItems: 1
          example: ?teamIds=100,200
          type: array
          items:
            type: number
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetAllAttributeAssignedOptionOutput'
      summary: Get all assigned attribute options by attribute slug
      tags:
      - Orgs / Attributes / Options
      x-oauth-scopes:
      - ORG_ATTRIBUTES_READ
      x-platform-plan: ESSENTIALS
  /v2/organizations/{orgId}/attributes/options/{userId}:
    post:
      description: 'Required membership role: `org admin`. PBAC permission: `organization.attributes.editUsers`. Learn more about API access control at https://cal.com/docs/api-reference/v2/access-control'
      operationId: OrganizationsAttributesOptionsController_assignOrganizationAttributeOptionToUser
      parameters:
      - name: Authorization
        in: header
        description: value must be `Bearer <token>` where `<token>` is api key prefixed with cal_
        required: true
        schema:
          type: string
      - name: orgId
        required: true
        in: path
        schema:
          type: number
      - name: userId
        required: true
        in: path
        schema:
          type: number
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AssignOrganizationAttributeOptionToUserInput'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssignOptionUserOutput'
      summary: Assign an attribute to a user
      tags:
      - Orgs / Attributes / Options
      x-mcp:
        name: assign_attribute_to_user
        guidance: Assign an attribute option to a user. For SINGLE_SELECT/MULTI_SELECT attributes, pass attributeOptionId (use get_attribute_options to list available options). For TEXT/NUMBER attributes, pass value instead to create an option on the fly. Optionally set a weight for round-robin routing.
      x-oauth-scopes:
      - ORG_ATTRIBUTES_WRITE
      x-platform-plan: ESSENTIALS
    get:
      description: 'Required membership role: `org member`. PBAC permission: `organization.attributes.read`. Learn more about API access control at https://cal.com/docs/api-reference/v2/access-control'
      operationId: OrganizationsAttributesOptionsController_getOrganizationAttributeOptionsForUser
      parameters:
      - name: Authorization
        in: header
        description: value must be `Bearer <token>` where `<token>` is api key prefixed with cal_
        required: true
        schema:
          type: string
      - name: orgId
        required: true
        in: path
        schema:
          type: number
      - name: userId
        required: true
        in: path
        schema:
          type: number
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetOptionUserOutput'
      summary: Get all attribute options for a user
      tags:
      - Orgs / Attributes / Options
      x-mcp:
        name: get_user_attributes
        guidance: Get all attribute options assigned to a specific user within an organization. Returns grouped attributes with their assigned option values and weights.
      x-oauth-scopes:
      - ORG_ATTRIBUTES_READ
      x-platform-plan: ESSENTIALS
  /v2/organizations/{orgId}/attributes/options/{userId}/{attributeOptionId}:
    patch:
      description: 'Required membership role: `org admin`. PBAC permission: `organization.attributes.editUsers`. Learn more about API access control at https://cal.com/docs/api-reference/v2/access-control'
      operationId: OrganizationsAttributesOptionsController_updateOrganizationAttributeOptionForUser
      parameters:
      - name: Authorization
        in: header
        description: value must be `Bearer <token>` where `<token>` is api key prefixed with cal_
        required: true
        schema:
          type: string
      - name: orgId
        required: true
        in: path
        schema:
          type: number
      - name: userId
        required: true
        in: path
        schema:
          type: number
      - name: attributeOptionId
        required: true
        in: path
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateOrganizationAttributeOptionUserInput'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateOptionUserOutput'
      summary: Update an attribute assignment for a user
      tags:
      - Orgs / Attributes / Options
      x-mcp:
        name: update_user_attribute
        guidance: Update an existing attribute assignment for a user (e.g. change the weight). Use get_user_attributes to find the attributeOptionId.
      x-oauth-scopes:
      - ORG_ATTRIBUTES_WRITE
      x-platform-plan: ESSENTIALS
    delete:
      description: 'Required membership role: `org admin`. PBAC permission: `organization.attributes.editUsers`. Learn more about API access control at https://cal.com/docs/api-reference/v2/access-control'
      operationId: OrganizationsAttributesOptionsController_unassignOrganizationAttributeOptionFromUser
      parameters:
      - name: Authorization
        in: header
        description: value must be `Bearer <token>` where `<token>` is api key prefixed with cal_
        required: true
        schema:
          type: string
      - name: orgId
        required: true
        in: path
        schema:
          type: number
      - name: userId
        required: true
        in: path
        schema:
          type: number
      - name: attributeOptionId
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnassignOptionUserOutput'
      summary: Unassign an attribute from a user
      tags:
      - Orgs / Attributes / Options
      x-mcp:
        name: unassign_attribute_from_user
        guidance: Remove an attribute option assignment from a user. Use get_user_attributes to find the attributeOptionId. Confirm with the user before proceeding.
      x-oauth-scopes:
      - ORG_ATTRIBUTES_WRITE
      x-platform-plan: ESSENTIALS
  /v2/organizations/{orgId}/attributes/assignments/{userId}/history:
    get:
      description: 'Required membership role: `org admin`. PBAC permission: `organization.attributes.readAuditLogs`. Learn more about API access control at https://cal.com/docs/api-reference/v2/access-control'
      operationId: OrganizationsAttributesOptionsController_getOrganizationAttributeAssignmentHistory
      parameters:
      - name: Authorization
        in: header
        description: value must be `Bearer <token>` where `<token>` is api key prefixed with cal_
        required: true
        schema:
          type: string
      - name: orgId
        required: true
        in: path
        schema:
          type: number
      - name: userId
        required: true
        in: path
        schema:
          type: number
      - name: limit
        required: false
        in: query
        description: Maximum number of audit log entries to return.
        schema:
          minimum: 1
          maximum: 50
          default: 25
          type: number
      - name: cursor
        required: false
        in: query
        description: Cursor from the previous response.
        schema:
          format: uuid
          example: 018ff5cd-6dc4-7d57-bcbc-374702ca8b38
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetAttributeAssignmentHistoryOutput'
      summary: Get attribute assignment history for a user
      tags:
      - Orgs / Attributes / Options
      x-mcp:
        name: get_user_attribute_history
        guidance: Get the attribute assignment history (audit log) for a user within an organization. Returns a chronological log of attribute assignment changes (assigned, updated, unassigned). Supports pagination with limit (1-50) and cursor. Requires org admin role.
      x-platform-plan: ESSENTIALS
components:
  schemas:
    UpdateAttributeOptionOutput:
      type: object
      properties:
        status:
          enum:
          - success
          - error
          type: string
          example: success
        data:
          $ref: '#/components/schemas/OptionOutput'
      required:
      - status
      - data
    AssignOptionUserOutputData:
      type: object
      properties:
        id:
          type: string
          description: The ID of the option assigned to the user
        memberId:
          type: number
          description: The ID form the org membership for the user
        attributeOptionId:
          type: string
          description: The value of the option
        weight:
          type:
          - number
          - 'null'
          description: The weight of the attribute for this user
      required:
      - id
      - memberId
      - attributeOptionId
    AttributeAssignmentHistoryLogOutput:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier of the audit log entry.
          example: 018ff5cd-6dc4-7d57-bcbc-374702ca8b38
        timestamp:
          type: string
          description: The ISO timestamp when the assignment change was recorded.
          example: '2026-06-04T10:00:00.000Z'
        source:
          type: string
          description: The source that emitted the audit event, such as WEBAPP, API_V2, WEBHOOK, or SYSTEM.
          example: API_V2
        actor:
          description: Details about the user, app, or system actor that made the change.
          allOf:
          - $ref: '#/components/schemas/AttributeAssignmentHistoryActorOutput'
        sourceContext:
          type: object
          additionalProperties: true
          description: Source-specific context for the audit event, for example API v2, web app, DSync, or integration sync metadata.
          example:
            kind: API_V2
        changes:
          description: The attribute assignment changes captured in this audit log entry.
          type: array
          items:
            $ref: '#/components/schemas/AttributeAssignmentHistoryChangeOutput'
        hasError:
          type: boolean
          description: Whether the audit log payload could not be fully parsed.
          example: true
      required:
      - id
      - timestamp
      - source
      - actor
      - sourceContext
      - changes
    AttributeAssignmentHistoryValueOutput:
      type: object
      properties:
        optionId:
          type: string
          description: The unique identifier of the assigned attribute option.
          example: opt_engineering
        optionSlug:
          type: string
          description: The URL-safe slug of the assigned attribute option.
          example: engineering
        value:
          type: string
          description: The display value of the assigned attribute option.
          example: Engineering
        weight:
          type:
          - number
          - 'null'
          description: The routing weight for the assigned option, or null when weights are not used.
          example: 100
      required:
      - optionId
      - optionSlug
      - value
    AssignOrganizationAttributeOptionToUserInput:
      type: object
      properties:
        value:
          type: string
        attributeOptionId:
          type: string
        attributeId:
          type: string
        weight:
          type: number
          minimum: 0
          description: The weight of the attribute for this user
      required:
      - attributeId
    AttributeAssignmentHistoryDataOutput:
      type: object
      properties:
        userId:
          type: number
          description: The ID of the user whose attribute assignment history was requested.
          example: 5
        membershipId:
          type: number
          description: The organization membership ID for the requested user.
          example: 42
        auditLogs:
          description: The paginated audit log entries for the user's attribute assignments.
          type: array
          items:
            $ref: '#/components/schemas/AttributeAssignmentHistoryLogOutput'
        nextCursor:
          type: string
          description: The cursor to pass to the next request when more audit logs are available.
          example: 018ff5cd-6dc4-7d57-bcbc-374702ca8b38
        hasMore:
          type: boolean
          description: Whether additional audit log entries are available after this page.
          example: true
      required:
      - userId
      - membershipId
      - auditLogs
      - hasMore
    UpdateOrganizationAttributeOptionInput:
      type: object
      properties:
        value:
          type: string
        slug:
          type: string
    GetOptionUserOutput:
      type: object
      properties:
        status:
          enum:
          - success
          - error
          type: string
          example: success
        data:
          type: array
          items:
            $ref: '#/components/schemas/GetOptionUserOutputData'
      required:
      - status
      - data
    GetAllAttributeAssignedOptionOutput:
      type: object
      properties:
        status:
          enum:
          - success
          - error
          type: string
          example: success
        data:
          type: array
          items:
            $ref: '#/components/schemas/AssignedOptionOutput'
      required:
      - status
      - data
    AttributeAssignmentHistoryActorOutput:
      type: object
      properties:
        type:
          type: string
          description: The type of actor that made the attribute assignment change.
          example: USER
        displayName:
          type: string
          description: The human-readable name of the actor that made the change.
          example: Alice Admin
        displayEmail:
          type:
          - string
          - 'null'
          description: The email address of the actor when one is available.
          example: alice@example.com
        displayAvatar:
          type:
          - string
          - 'null'
          description: The avatar URL of the actor when one is available.
          example: https://example.com/avatar.png
      required:
      - type
      - displayName
    DeleteAttributeOptionOutput:
      type: object
      properties:
        status:
          enum:
          - success
          - error
          type: string
          example: success
        data:
          $ref: '#/components/schemas/OptionOutput'
      required:
      - status
      - data
    UnassignOptionUserOutput:
      type: object
      properties:
        status:
          enum:
          - success
          - error
          type: string
          example: success
        data:
          $ref: '#/components/schemas/AssignOptionUserOutputData'
      required:
      - status
      - data
    CreateAttributeOptionOutput:
      type: object
      properties:
        status:
          enum:
          - success
          - error
          type: string
          example: success
        data:
          $ref: '#/components/schemas/OptionOutput'
      required:
      - status
      - data
    CreateOrganizationAttributeOptionInput:
      type: object
      properties:
        value:
          type: string
        slug:
          type: string
      required:
      - value
      - slug
    GetAttributeAssignmentHistoryOutput:
      type: object
      properties:
        status:
          enum:
          - success
          - error
          type: string
          example: success
        data:
          description: The attribute assignment history response payload.
          allOf:
          - $ref: '#/components/schemas/AttributeAssignmentHistoryDataOutput'
      required:
      - status
      - data
    AttributeAssignmentHistoryAttributeOutput:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier of the attribute that changed.
          example: attr_dept
        slug:
          type: string
          description: The URL-safe slug of the attribute that changed.
          example: department
        name:
          type: string
          description: The display name of the attribute that changed.
          example: Department
        type:
          type: string
          description: The attribute input type, such as TEXT, NUMBER, SINGLE_SELECT, or MULTI_SELECT.
          example: SINGLE_SELECT
      required:
      - id
      - slug
      - name
      - type
    OptionOutput:
      type: object
      properties:
        id:
          type: string
          description: The ID of the option
          example: attr_option_id
        attributeId:
          type: string
          description: The ID of the attribute
          example: attr_id
        value:
          type: string
          description: The value of the option
          example: option_value
        slug:
          type: string
          description: The slug of the option
          example: option-slug
      required:
      - id
      - attributeId
      - value
      - slug
    AttributeAssignmentHistoryChangeOutput:
      type: object
      properties:
        type:
          type: string
          description: The type of assignment change, such as ASSIGNED, UNASSIGNED, VALUE_CHANGED, or WEIGHT_CHANGED.
          example: VALUE_CHANGED
        attribute:
          description: Details for the attribute affected by this change.
          allOf:
          - $ref: '#/components/schemas/AttributeAssignmentHistoryAttributeOutput'
        previous:
          description: The previous assignment value before the change, or null when the value was newly assigned.
          type:
          - object
          - 'null'
          allOf:
          - $ref: '#/components/schemas/AttributeAssignmentHistoryValueOutput'
        current:
          description: The current assignment value after the change, or null when the value was unassigned.
          type:
          - object
          - 'null'
          allOf:
          - $ref: '#/components/schemas/AttributeAssignmentHistoryValueOutput'
      required:
      - type
      - attribute
    UpdateOptionUserOutput:
      type: object
      properties:
        status:
          enum:
          - success
          - error
          type: string
          example: success
        data:
          $ref: '#/components/schemas/AssignOptionUserOutputData'
      required:
      - status
      - data
    GetAllAttributeOptionOutput:
      type: object
      properties:
        status:
          enum:
          - success
          - error
          type: string
          example: success
        data:
          type: array
          items:
            $ref: '#/components/schemas/OptionOutput'
      required:
      - status
      - data
    AssignedOptionOutput:
      type: object
      properties:
        id:
          type: string
          description: The ID of the option
          example: attr_option_id
        attributeId:
          type: string
          description: The ID of the attribute
          example: attr_id
        value:
          type: string
          description: The value of the option
          example: option_value
        slug:
          type: string
          description: The slug of the option
          example: option-slug
        assignedUserIds:
          description: Ids of the users assigned to the attribute option.
          example:
          - 124
          - 224
          type: array
          items:
            type: number
      required:
      - id
      - attributeId
      - value
      - slug
      - assignedUserIds
    UpdateOrganizationAttributeOptionUserInput:
      type: object
      properties:
        weight:
          type: number
          minimum: 0
          description: The weight of the attribute for this user
    GetOptionUserOutputData:
      type: object
      properties:
        id:
          type: string
          description: The ID of the option assigned to the user
        attributeId:
          type: string
          description: The ID of the attribute
        value:
          type: string
          description: The value of the option
        slug:
          type: string
          description: The slug of the option
      required:
      - id
      - attributeId
      - value
      - slug
    AssignOptionUserOutput:
      type: object
      properties:
        status:
          enum:
          - success
          - error
          type: string
          example: success
        data:
          $ref: '#/components/schemas/AssignOptionUserOutputData'
      required:
      - status
      - data
x-provenance:
  method: harvested
  publisher: Cal.com
  source: https://cal.com/docs/api-reference/v2/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)