latestSwagger 2.02026-08-20196638916.1 KB

23d8982b533d

General.Calendar
ENTERPRISE

Get period details

Get details for the supplied period. Will always return one of the monthly resolutions.

get/api/v1/calendar/periods/{period}

Path parameters

period'YYYY' | 'YYYY-MM' | 'YYYY-MM-DD' required

Period to get details for

Response

The periods were successfully returned.

endDateinteger

Timestamp at the end of the period

namestring
resolution'MONTHLY' | 'MONTHLY_ADJUSTED'

Resolution for the statistics.

startDateinteger

Timestamp at the start of the period

Example response

[
  {
    "endDate": 1464739199000,
    "name": "2016-05",
    "resolution": "MONTHLY",
    "startDate": 1462060800000
  }
]