Reschedule a booking
Moves the booking to another availability window and day. The assigned user and the client are told of the new time, and the assigned user's calendar events follow. A cancelled booking cannot be moved. An unknown booking returns 404.
Moves the booking to another availability window and day. The assigned user and the client are told of the new time, and the assigned user's calendar events follow. A cancelled booking cannot be moved. An unknown booking returns 404.
Authorization
x-api-key Company API key, created under Settings > API Keys.
In: header
Path Parameters
The booking to move.
Header Parameters
Optional with an API key or OAuth token: leave it out and the company the key or token belongs to is used. If sent, it must be that same company, otherwise the request is refused with 403 API_KEY_WRONG_COMPANY or OAUTH_WRONG_COMPANY.
^[0-9a-fA-F]{24}$Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X PATCH "https://example.com/bookings/string/reschedule" \ -H "Content-Type: application/json" \ -d '{ "availabilityId": "string", "date": "2019-08-24" }'{ "assignedUser": { "email": "string", "firstName": "string", "id": "string", "lastName": "string" }, "attribution": { "firstTouch": { "capturedAt": "string", "fbclid": "string", "gclid": "string", "landingPage": "string", "msclkid": "string", "referrer": "string", "ttclid": "string", "utmCampaign": "string", "utmContent": "string", "utmMedium": "string", "utmSource": "string", "utmTerm": "string" }, "lastTouch": { "capturedAt": "string", "fbclid": "string", "gclid": "string", "landingPage": "string", "msclkid": "string", "referrer": "string", "ttclid": "string", "utmCampaign": "string", "utmContent": "string", "utmMedium": "string", "utmSource": "string", "utmTerm": "string" } }, "cancellationReason": "string", "client": { "address": "string", "contactId": "string", "email": "string", "name": "string", "notes": "string", "phone": "string" }, "duration": 0, "endDateTime": "string", "formData": [ { "label": "string", "value": "string" } ], "id": "string", "service": { "id": "string", "name": "string" }, "startDateTime": "string", "status": "string", "timeZone": "string"}List a service's working days GET
Returns the weekdays the service has at least one availability window on, so a date picker can grey out the rest. A service from another company returns 404.
List the caller's connected calendars GET
Returns the Google and Outlook calendars the caller connected in this company. With an API key, the caller is the member who created the key; other members' calendars are never returned. An empty list means no calendar is connected.