---
title: "POST /api/appointment_profiles"
method: POST
path: "/api/appointment_profiles"
tags: ["Clinical"]
---

# POST /api/appointment_profiles

`POST /api/appointment_profiles`

## Request

- Base URL: `https://app.drchrono.com`
- URL: `https://app.drchrono.com/api/appointment_profiles`
- Auth: OAuth 2
  - Authorization code: `https://app.drchrono.com/o/authorize/`
  - Token URL: `https://app.drchrono.com/o/token/` scopes: `calendar:read`, `calendar:write`, `settings:read`, `settings:write`

Create appointment profiles for a doctor's calendar

## Query parameters

- `doctor` integer

## Response `201`

Created

- AppointmentProfile: Appointment profiles are for common kinds of appointments a doctor might have, such as "physical exam", which have a standard duration and should show up as the same color on the calendar.
  - `archived` boolean: Indicates that the object has been soft-deleted and should not be used
  - `name` string, required
  - `doctor` integer
  - `color` string, required
  - `reason` string
  - `sort_order` integer: Override the usual ordering ordering of appointments in the patient's appointments page. Lower values are shown at the top
  - `duration` integer: Length of an appointment in minutes
  - `id` integer
  - `online_scheduling` boolean, required: Whether this profile should be available for online scheduling

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Permission Denied
- `404`: Not Found
- `405`: Method Not Allowed
- `500`: Internal Server Error

---

[API](https://skmtc.dev/drchrono/apis/drchrono-api.md) - [All operations](https://skmtc.dev/drchrono/apis/drchrono-api/llms.txt) - [OpenAPI document](https://skmtc.dev/drchrono/apis/drchrono-api/revisions/98cabe79d150?raw)
