Skip to content

Update (reschedule) an appointment

Request

Edits or reschedules an appointment with a merge-patch body: start time, Team Member, services, duration, comment. The appointment status is not editable here — use the status command. Cancellation is a separate cancel command.

If-Match is required: appointments are the most contended resource (a human and an agent often edit the same one), and a stale version fails with 412 stale_version instead of silently overwriting someone's change.

Security
OAuth2(Required scopes: appointments:write) or ApiKey
Path
location_idintegerrequired

Identifier of the Location. Verified against the credential on every call — a Location the credential cannot access responds with 404.

appointment_idintegerrequired

Identifier of the appointment.

Headers
If-Matchstringrequired

ETag value of the resource version the change is based on. A stale value fails with 412 stale_version; a missing header fails with 428 precondition_required.

Bodyapplication/merge-patch+jsonrequired
starts_atstring, (date-time)

RFC 3339 with the Location's local UTC offset.

team_member_idinteger
service_idsArray of integers, non-empty
resource_instance_idsArray of integers
duration_secondsinteger
commentstring or null
curl -i -X PATCH \
  'https://developer.alteg.io/_mock/en/b2b-v3/openapi/locations/{location_id}/appointments/{appointment_id}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/merge-patch+json' \
  -H 'If-Match: string' \
  -d '{
    "starts_at": "2026-07-24T15:00:00+01:00",
    "team_member_id": 322
  }'

Responses

The updated appointment.

Headers
RateLimit-Remaininginteger, (int32), >= 0

Requests left in the most constrained policy window that applies to this request.

RateLimit-Resetinteger, (int32), >= 0

On 429, seconds until the most constrained policy frees up; it equals Retry-After there. On a successful response it reports the length of that policy's window rather than the time left in the current one, so treat it as the window size, not as a countdown — the counter to pace against is RateLimit-Remaining.

RateLimit-Policystring

Most constrained policy applied to the request, as <limit>;w=<window in seconds>.

Example:"10;w=60"
ETagstring

Version tag of the returned resource. Send it back in If-Match on the next PATCH or DELETE.

X-Request-Idstring

Request identifier for support and log correlation.

Bodyapplication/json
idintegerread-onlyrequired
objectstringread-onlyrequired
Value:"appointment"
location_idintegerread-onlyrequired
client_idinteger or nullrequired

null only on appointments without a client.

visit_idinteger or nullread-onlyrequired

Billing visit of this appointment; null on an appointment without a client and on a canceled appointment.

team_member_idintegerrequired
service_idsArray of integersrequired

Services of the appointment; can be empty. An appointment of a package component lists the component service.

package_service_idinteger or nullread-onlyrequired

The package service (getService) this appointment is a component of; null outside a package.

resource_instance_idsArray of integersrequired

Resource instances occupied by the appointment.

statusstring(AppointmentStatus)required

Status of an appointment. waiting — scheduled, not yet confirmed; confirmed — confirmed by the client; arrived — the client attended (terminal "done" state); no_show — the client did not attend.

Enum:"waiting""confirmed""arrived""no_show"
is_canceledbooleanread-onlyrequired

true on a canceled appointment, including one deleted in Altegio. status keeps the status the appointment had when it was canceled; visit_id is null.

starts_atstring, (date-time)required

RFC 3339 with the Location's local UTC offset.

duration_secondsintegerrequired
commentstring or nullrequired
created_atstring, (date-time)read-onlyrequired

UTC.

updated_atstring, (date-time)read-onlyrequired

UTC. Last change of the appointment.

clientClient (object) or nullread-only
One of:

A client of the Location. Contact fields (phone, additional_phone, email) require clients:read_contact plus the contact permission of the token subject; surname and patronymic require the subject's permission to see client surnames; comment requires the subject's client card comment permission. A withheld field is returned as null and its name is listed in redacted_fields instead of exposing the value.

team_memberTeamMember (object) or nullread-only
One of:

A Team Member of the Location. Personal contact data of Team Members is not exposed in the preview scope.

Response
{ "id": 12345, "object": "appointment", "location_id": 4321, "client_id": 789, "visit_id": 5001, "team_member_id": 321, "service_ids": [ 100 ], "package_service_id": null, "resource_instance_ids": [], "status": "waiting", "is_canceled": false, "starts_at": "2026-07-24T11:30:00+01:00", "duration_seconds": 3600, "comment": null, "created_at": "2026-07-20T09:57:15Z", "updated_at": "2026-07-20T09:57:15Z" }