---
title: "Update Appointment Type"
method: PATCH
path: "/v1/appointment-types/{appointmentTypeId}"
---

# Update Appointment Type

`PATCH /v1/appointment-types/{appointmentTypeId}`

## Request

- Base URL: `https://app.untetherlabs.com/api`
- URL: `https://app.untetherlabs.com/api/v1/appointment-types/{appointmentTypeId}`
- Auth: HTTP bearer

## Path parameters

- `appointmentTypeId` string, uuid, required

## Request body

- UpdateAppointmentTypeRequest
  - `name` string
  - `length` integer: in minutes
  - `allowedRoles` string[], nullable: Roles which are considered for this appointment type. Null means any role is allowed.
  - `skillRequirement` union
    - SkillRequirementCondition
      - `type` 'equal', required
      - `skill` string, required
      - `value` string, required
    - SkillRequirementGroup
      - `type` 'and' | 'or', required
      - `entries` union[], required
        - union
          - SkillRequirementCondition
            - `type` 'equal', required
            - `skill` string, required
            - `value` string, required
          - SkillRequirementNestedGroup
            - `type` 'and' | 'or', required
            - `entries` SkillRequirementCondition[], required
              - …

## Response `200`

- AppointmentType
  - `id` string, uuid, required
  - `name` string, required
  - `length` integer, required: in minutes
  - `allowedRoles` string[], nullable, required: Roles which are considered for this appointment type. Null means any role is allowed.
  - `skillRequirement` union
    - SkillRequirementCondition
      - `type` 'equal', required
      - `skill` string, required
      - `value` string, required
    - SkillRequirementGroup
      - `type` 'and' | 'or', required
      - `entries` union[], required
        - union
          - SkillRequirementCondition
            - `type` 'equal', required
            - `skill` string, required
            - `value` string, required
          - SkillRequirementNestedGroup
            - `type` 'and' | 'or', required
            - `entries` SkillRequirementCondition[], required
              - …

## Other responses

- `400`: We follow the [RFC-9457](https://www.rfc-editor.org/rfc/rfc9457.html) Problem Detail specification for error responses. Errors should be identified by their `type` field. You can view extensions for each error response below.
- `404`: We follow the [RFC-9457](https://www.rfc-editor.org/rfc/rfc9457.html) Problem Detail specification for error responses. Errors should be identified by their `type` field. You can view extensions for each error response below.

---

[API](https://skmtc.dev/untetherlabs/apis/untether-labs-api.md) - [All operations](https://skmtc.dev/untetherlabs/apis/untether-labs-api/llms.txt) - [OpenAPI document](https://skmtc.dev/untetherlabs/apis/untether-labs-api/revisions/143223935df3?raw)
