For Developers

List Days

GET https://ed.link/api/v2/graph/days

Retrieve a list of all Days.

Request Parameters

This query allows for filtering results.

This query allows for standard paging parameters.

ParameterLocationTypeDescription
$firstquerynumber

Returns the first n elements from the list.

$lastquerynumber

Returns the last n elements from the list.

$beforequeryuuid

Returns the elements in the list that come before the specified item.

$afterqueryuuid

Returns the elements in the list that come after the specified item.

It is best practice to use either $first or $last in conjunction with the $next value returned by the API to paginate through results.

Sample Request

axios.get('https://ed.link/api/v2/graph/days', {
    headers: {
        authorization: `Bearer ${integration_access_token}`
    }
});

Sample Response

{
    "data": [
        {
            "id": "f6b318e9-cbcf-4a22-9c17-5a5ee58093dd",
            "created_date": "2023-07-21T04:29:02.228Z",
            "date": "2016-08-19T00:00:00.000Z",
            "comments": "A very useful comment.",
            "properties": {},
            "identifiers": [],
            "rule_ids": [],
            "flags": ["inclement_weather"],
            "calendar_id": "bb5b48a0-7ada-4e71-9731-7e30b450fb0c",
            "route_ids": ["a1b2c3d4-e5f6-7a8b-9c0d-e1f2a3b4c5d6"],
            "period_ids": []
        },
        {
            "created_date": "2023-07-21T04:29:02.228Z",
            "date": "2016-08-22T00:00:00.000Z",
            "comments": null,
            "properties": {},
            "identifiers": [],
            "rule_ids": [],
            "id": "5182322b-4745-4370-834b-8f96348adad2",
            "flags": [],
            "calendar_id": "bb5b48a0-7ada-4e71-9731-7e30b450fb0c",
            "route_ids": [],
            "period_ids": []
        },
        {
            "created_date": "2023-07-21T04:29:02.228Z",
            "date": "2016-08-23T00:00:00.000Z",
            "comments": null,
            "properties": {},
            "identifiers": [],
            "rule_ids": [],
            "id": "51702a71-10a8-437e-91c7-b90fc7dec0a9",
            "flags": ["weekend"],
            "calendar_id": "bb5b48a0-7ada-4e71-9731-7e30b450fb0c",
            "route_ids": [],
            "period_ids": []
        },
    ],
    "$request": "00000000-0000-0000-0000-000000000000"
}