---
title: "Book reschedule or cancel an appointment atomically"
description: "Requires a verified session, current workspace membership. Contact actions enforce visibility; visit configuration requires manager access."
---

> Documentation Index
> Fetch the complete documentation index at: https://developer.channelautomations.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Channel Automation API › Calendar

`POST /api/call-center/contacts/{contactId}/appointment-changes`

Requires a verified session, current workspace membership. Contact actions enforce visibility; visit configuration requires manager access.

## Authentication

- `BearerAuth`, http, header `Authorization`, format `JWT`

## Path parameters

- `contactId` (`post/api/call-center/contacts/contactId/appointment-changes.path.contactId`; string, required)
  - format `uuid`

## Header parameters

- `X-Workspace-Id` (`post/api/call-center/contacts/contactId/appointment-changes.header.X-Workspace-Id`; string, required)

## Request body

_Required._

- `requestId` (`post/api/call-center/contacts/contactId/appointment-changes.requestId`; string, required)
  - format `uuid`
- `operation` (`post/api/call-center/contacts/contactId/appointment-changes.operation`; string, required)
  - one of `"book"`, `"reschedule"`, `"cancel"`
- `offerId` (`post/api/call-center/contacts/contactId/appointment-changes.offerId`; string, optional)
  - format `uuid`
- `appointmentId` (`post/api/call-center/contacts/contactId/appointment-changes.appointmentId`; string, optional)
  - format `uuid`
- `revision` (`post/api/call-center/contacts/contactId/appointment-changes.revision`; integer, optional)
  - min 1
- `expectedUpdatedAt` (`post/api/call-center/contacts/contactId/appointment-changes.expectedUpdatedAt`; string, optional) — Last viewed appointment timestamp; required for internal appointments without a visit revision
  - format `date-time`
- `reason` (`post/api/call-center/contacts/contactId/appointment-changes.reason`; string, optional) — Required for cancellation

## Example request

```json
{
  "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
  "operation": "book",
  "offerId": "42da58f8-9040-4cf5-98ce-bce9965cca0d",
  "appointmentId": "24c6adb3-18be-4108-aa61-3d58879e05a2",
  "revision": 1,
  "expectedUpdatedAt": "2019-08-24T14:15:22Z",
  "reason": "string"
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.channelautomation.com/api/call-center/contacts/<contactId>/appointment-changes' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Workspace-Id: string' \
  --data '
{
  "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
  "operation": "book",
  "offerId": "42da58f8-9040-4cf5-98ce-bce9965cca0d",
  "appointmentId": "24c6adb3-18be-4108-aa61-3d58879e05a2",
  "revision": 1,
  "expectedUpdatedAt": "2019-08-24T14:15:22Z",
  "reason": "string"
}
'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/call-center/contacts/<contactId>/appointment-changes';
const options = {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'X-Workspace-Id': 'string',
    Authorization: 'Bearer <token>'
  },
  body: JSON.stringify({
    requestId: 'd385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6',
    operation: 'book',
    offerId: '42da58f8-9040-4cf5-98ce-bce9965cca0d',
    appointmentId: '24c6adb3-18be-4108-aa61-3d58879e05a2',
    revision: 1,
    expectedUpdatedAt: '2019-08-24T14:15:22Z',
    reason: 'string'
  })
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.channelautomation.com/api/call-center/contacts/<contactId>/appointment-changes"

payload = {
    "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",
    "operation": "book",
    "offerId": "42da58f8-9040-4cf5-98ce-bce9965cca0d",
    "appointmentId": "24c6adb3-18be-4108-aa61-3d58879e05a2",
    "revision": 1,
    "expectedUpdatedAt": "2019-08-24T14:15:22Z",
    "reason": "string"
}
headers = {
    "Content-Type": "application/json",
    "X-Workspace-Id": "string",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

Successful operation

### 400

Invalid input

### 401

Invalid session

### 403

Access denied

### 404

Resource not found or resource not found

### 409

Resource changed concurrently

### 500

Unexpected error

### 503

Dependency unavailable


Source: https://developer.channelautomations.com/api/post-api-call-center-contacts-contact-id-appointment-changes/index.md
