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

# Update Appointment

> Reschedule or update an appointment

## Path Parameters

<ParamField path="id" type="string" required>The appointment ID</ParamField>

## Body Parameters

<ParamField body="startTime" type="string">New start time (ISO 8601)</ParamField>
<ParamField body="endTime" type="string">New end time (ISO 8601)</ParamField>
<ParamField body="doctorId" type="string">Reassign to a different doctor</ParamField>
<ParamField body="locationId" type="string">Move to a different location</ParamField>
<ParamField body="notes" type="string">Update notes</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X PUT "https://api.nevatal.com/api/v1/appointments/apt_xyz789" \
    -H "Authorization: Bearer nvtl_your_api_key" \
    -H "Content-Type: application/json" \
    -d '{
      "startTime": "2025-04-02T10:00:00-05:00",
      "endTime": "2025-04-02T10:30:00-05:00"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "id": "apt_xyz789",
    "startTime": "2025-04-02T10:00:00-05:00",
    "endTime": "2025-04-02T10:30:00-05:00",
    "status": "confirmed",
    "updatedAt": "2025-03-21T08:00:00Z"
  }
  ```
</ResponseExample>
