academyFIVE API Beta icon

academyFIVE API Beta

Interact with academyFIVE API

Actions482

Working-periods → List working periods

AI-generated

Summary

Retrieves a paginated list of working periods from the academyFIVE API, supporting filtering by ID, cohort, and name, and sorting.

Inputs

  • additionalFields — Optional parameters for pagination, filtering, and sorting. Available options include page[number] (pagination start), page[size] (results per page), filter[id] (comma-separated IDs), filter[cohortId] (comma-separated cohort IDs), filter[periodName] (substring match), and sort (comma-separated fields, prefixed with '-' for descending order).

Output shape

a list of items, each containing a JSON object representing a working period

The structure of the JSON object corresponds to the API response. Filtering by cohort enforces per-site feature flags and may result in HTTP 403 if disabled. Pagination is supported via page[number] and page[size].

Examples

Example 1: Fetch the first page of working periods

Use default settings for page[number] (1) and page[size] (50).

Example 2: Filter working periods for a specific cohort

Set filter[cohortId] to the desired cohort ID.

Example 3: Sort results by start date in descending order

Set sort to '-periodStartDate'.

Links

Discussion