---
title: "Edit an appointment type"
method: PATCH
path: "/appointment_types/{id}"
tags: ["Appointment Types"]
---

# Edit an appointment type

`PATCH /appointment_types/{id}`

## Path parameters

- `id` integer, required

## Query parameters

- `subdomain` string, required

## Request body

- PatchAppointmentTypesId — Edit an appointment type
  - `location_id` integer — Id of the associated location, required when appointment types are location specific
  - `appointment_type` object, required
    - `name` string — Appointment type name. Unique string identifier
    - `minutes` integer — The length of time this appointment type takes up, increments of 5 minutes recommended
    - `parent_type` 'Institution' | 'Location' — Parent model to scope appointment types to, defaults to Institution
    - `parent_id` integer — Id of the parent model of the associated appointment type, required if parent_type is Location
    - `bookable_online` boolean — Set to True if this appointment type should be bookable via the NexHealth online booking page
    - `emr_appt_descriptor_ids` integer[] — Array of EMR appointment descriptor ids

## Response `200`

Successful

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/nexhealth/apis/nexhealth-api.md) · [All operations](https://skmtc.dev/nexhealth/apis/nexhealth-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nexhealth/nexhealth-api/revisions/a180e830b672/schema)
