Edit an appointment
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
This function allows you to modify an existing appointment. See Appointment for a list of attributes which are supported for appointments. Only attributes marked as Read-Write can be modified using this endpoint.
Repeating appointments cannot be created or modified via the API. Attempting to edit an existing repeating appointment will return a
should_not_edit_appointmenterror. To work with repeating appointments, use the Daylite application directly.
NoteWhen editing an appointment, including the add or remove actions will allow you to specify a list of items to update/remove from the field's existing contents. Leaving out add or remove will replace the fields contents entirely.
Examples:
{ "resources": { "add":["/v1/resources/1000"] } }
{ "invitations": { "remove":[{ "invitee": "/v1/contacts/2000" }] } }
Attributes you leave out are not changed. Some appointments are marked as not editable through the API; editing one returns 400 with {"error":"not_editable_via_api"}.
An appointment in the trash can't be edited (404 with {"error":"trashed_object"}) until you restore it with {"trashed": false}. A successful update returns 204 No Content.
204204 No Content