Schedules
Working hours for one resource, versioned by date. Several weeks make a rotation. Times are local wall-clock, so 09:00 stays 09:00 through daylight saving.
Create a schedule
/v1/schedulesSets working hours for a resource from a date. The version in force on a day is the latest one that has started, so a future version is a planned change. Several weeks make a rotation.
Send the business’s id in Tiempo-Account.
Body parameters
resourcestringrequiredA resource id.
effective_fromdaterequiredFirst local date the hours apply.
weeksarray of mapsrequiredOne entry per week of the rotation; each maps a weekday to { start, end, location? } intervals in HH:mm.
metadatamapUp to 50 keys of your own (strings, keys up to 40 characters, values up to 500). Returned on every read and webhook. On update, an empty string removes a key.
Returns
The schedule. Bookings the new hours no longer cover are flagged conflicted (booking.conflicted).
List schedules
/v1/schedulesSend the business’s id in Tiempo-Account.
Query parameters
resourcestringOnly those involving this resource. On the calendar, repeat it for several.
limitinteger1 to 100. Defaults to 20.
starting_afterstringAn object id from the previous page; returns the page after it.
ending_beforestringAn object id; returns the page before it.
metadata[key]stringOnly objects whose metadata has this key and value. Repeat for several.
Retrieve a schedule
/v1/schedules/{id}Send the business’s id in Tiempo-Account.
Path parameters
idstringrequiredThe object’s id.
Update a schedule
/v1/schedules/{id}Send the business’s id in Tiempo-Account.
Path parameters
idstringrequiredThe object’s id.
Body parameters
effective_fromdateFirst local date the hours apply.
weeksarray of mapsOne entry per week of the rotation; each maps a weekday to { start, end, location? } intervals in HH:mm.
metadatamapUp to 50 keys of your own (strings, keys up to 40 characters, values up to 500). Returned on every read and webhook. On update, an empty string removes a key.
Delete a schedule
/v1/schedules/{id}Send the business’s id in Tiempo-Account.
Path parameters
idstringrequiredThe object’s id.