A layer's history: every version an edit ended, oldest first, then the current one.
const url = 'https://api.siteqwality.com/on_call_schedule/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/layer/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/versions';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.siteqwality.com/on_call_schedule/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/layer/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/versions \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”On-call schedule identifier
Layer identifier
Responses
Section titled “ Responses ”The layer’s versions
A layer’s history: every ended version, then the current one.
object
One version of a layer: an ended one, or the current one (effective_until absent unless the
layer itself ends).
object
Ended versions always name their zone; the current one only when it has its own.
A window a layer covers, repeated every day or every week in the layer’s zone. A window that runs past midnight (or past the end of the week) carries on into the next day.
object
Weekly only: the weekday the window opens, 0 = Sunday .. 6 = Saturday.
HH:MM, 24-hour local time.
1 to 1440 for daily windows, 1 to 10080 for weekly ones.
Who made the edit that ended this version.
Example
{ "versions": [ { "rotation_type": "daily", "restrictions": [ { "type": "daily" } ] } ]}Missing or invalid authentication
Schedule or layer not found
Internal server error