tiempoAPI reference
API reference

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

POST/v1/schedules

Sets 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

  • resourcestringrequired

    A resource id.

  • effective_fromdaterequired

    First local date the hours apply.

  • weeksarray of mapsrequired

    One entry per week of the rotation; each maps a weekday to { start, end, location? } intervals in HH:mm.

  • metadatamap

    Up 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

GET/v1/schedules

Send the business’s id in Tiempo-Account.

Query parameters

  • resourcestring

    Only those involving this resource. On the calendar, repeat it for several.

  • limitinteger

    1 to 100. Defaults to 20.

  • starting_afterstring

    An object id from the previous page; returns the page after it.

  • ending_beforestring

    An object id; returns the page before it.

  • metadata[key]string

    Only objects whose metadata has this key and value. Repeat for several.

Retrieve a schedule

GET/v1/schedules/{id}

Send the business’s id in Tiempo-Account.

Path parameters

  • idstringrequired

    The object’s id.

Update a schedule

POST/v1/schedules/{id}

Send the business’s id in Tiempo-Account.

Path parameters

  • idstringrequired

    The object’s id.

Body parameters

  • effective_fromdate

    First local date the hours apply.

  • weeksarray of maps

    One entry per week of the rotation; each maps a weekday to { start, end, location? } intervals in HH:mm.

  • metadatamap

    Up 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

DELETE/v1/schedules/{id}

Send the business’s id in Tiempo-Account.

Path parameters

  • idstringrequired

    The object’s id.