You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.
Unique identifier of the User this Time Off/Downtime event was created by. (DEPRECATED: Use booker_id. Future versions of the API will not include this field)
booker_id
integer
Unique identifier of the User this Time Off/Downtime event was created by.
deleted
boolean
Denoted whether the Time Off/Downtime event has been deleted.
details
string
Extra details about this Time Off/Downtime event.
downtime_type_id
integer
Unique identifier of the Time Off/Downtime event Type this Time Off/Downtime event is for (can be null).
end_time
integer
End time in minutes from midnight for this Time Off/Downtime event duration (can't be null).
from
string
Start date for the Time Off/Downtime event.
id
integer
Unique identifier for a Time Off/Downtime event.
resource_ids
array of integers
Unique identifiers of the Resources this Time Off/Downtime event is for.
start_time
integer
Start time in minutes from midnight for this Time Off/Downtime event duration (can't be null).
state
string
Status details about the Time Off/Downtime event.
timezone
string
Specified timezone for the Time Off/Downtime event.
to
string
End date for the Time Off/Downtime event.
updated_at
String
Last updated date and time.
Get a Specific Time Off/Downtime Event
GET /v1/:account-id/downtimes/:id returns a specific Time Off/Downtime Event.
Create a Time Off/Downtime Event
POST /v1/:account-id/downtimes will create a new Time Off/Downtime event from the parameters passed.
The resources that the Time Off/Downtime event is being created for.
creator_id
integer
Unique identifier of the User this Time Off/Downtime event is for (displayed as "Booker" in the UI. ) (DEPRECATED: Use booker_id)
booker_id
integer
Unique identifier of the User this Time Off/Downtime event is for
from
string
The ISO 8601 formatted first date for the Time Off/Downtime event.
to
string
The ISO 8601 formatted last date for the Time Off/Downtime event.
start_time
integer
Start time in minutes from midnight for this Time Off/Downtime event duration (can't be null).
end_time
integer
End time in minutes from midnight for this Time Off/Downtime event duration (can't be null).
details
string
Optional plain text details for the Time Off/Downtime event.
downtime_type_id
integer
Unique identifier of the Time Off/Downtime event Type this Time Off/Downtime event is for (can be null).
timezone
string
The timezone which the Time Off/Downtime event is created for. (null for the local resource's timezone) (Details)
Timezones
When creating a new Time Off/Downtime event, a timezone may be specified if the Time Off/Downtime event is being created for multiple resources. If left blank, it will default to the local timezone of each resource.
The timezone values are based off of Ruby On Rails's ActiveSupport::TimeZone's key mappings. For example, to create a Time Off/Downtime event for (GMT +0) London, the value would be "London". See our timezone page for a list of valid timezones.
Update a Time Off/Downtime Event
PUT /v1/:account-id/downtimes/5 will update the Time Off/Downtime event from the parameters passed and return
the JSON representation of the updated Time Off/Downtime event. If the user does not have access to update
the Time Off/Downtime event, you'll see 403 Forbidden.
Delete a Time Off/Downtime Event
DELETE /v1/:account-id/downtimes/5 will delete the Time Off/Downtime event specified and return 204 No Content
if that was successful. If the user does not have access to delete the Time Off/Downtime event, you'll see 403 Forbidden.
Get Time Off/Downtime Event Types
GET /v1/:account-id/downtime_types returns an Array of Time Off/Downtime events.