List Switch Time Templates


This request returns a list of switch time overrides.

Resource

GET /switchtimetemplates

Payload

None

Context

Authorization

User

Errors

Example

Request
GET https://xelion.nl/api/v1/master/switchtimetemplates
Response
{
    "data": [
        {
            "object": {
                "commonName": "Office hours",
                "oid": "2240420",
                "objectType": "XCCSwitchTimeTemplate"
            },
            "links": [
                {
                    "rel": "self",
                    "method": "GET"
                }
            ]
        },
        {
            "object": {
                "commonName": "General switch times",
                "oid": "2279572",
                "objectType": "XCCSwitchTimeTemplate"
            },
            "links": [
                {
                    "rel": "self",
                    "method": "GET"
                }
            ]
        }
    ],
    "meta": {
        "links": [
            {
                "rel": "refresh",
                "href": "https://xelion.nl/api/v1/master/switchtimetemplates",
                "method": "GET"
            },
            {
                "rel": "next",
                "href": "https://xelion.nl/api/v1/master/switchtimetemplates?after=2279572",
                "method": "GET"
            },
            {
                "rel": "previous",
                "href": "https://xelion.nl/api/v1/master/switchtimetemplates?before=2240420",
                "method": "GET"
            }
        ],
        "paging": {
            "previousId": "2240420",
            "nextId": "2279572"
        }
    }
}