Skip to main content
List training campaigns

Authorizations

Authorization
string
header
required

An API service account's access token, from the client credentials grant.

Scopes

training_campaigns:view

Training campaigns

Query Parameters

query
string

Words to find in campaign or course names

status
enum<string>

Only campaigns in this state, judged as the web app's filter judges it

Available options:
draft,
scheduled,
active,
completed,
cancelled
courseId
string<uuid>

Only campaigns of this course

Pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
startsFrom
string

Only campaigns whose scheduledStartDate is on or after this: a day, YYYY-MM-DD, or a date and time with its offset

Pattern: ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}:\d{2}))?$
startsBefore
string

Only campaigns whose scheduledStartDate is before this, a day or a date and time as startsFrom takes. For a period that ends with a day, the day after it

Pattern: ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}:\d{2}))?$
timeZone
string

An IANA time zone, such as Europe/London, in which a day given to startsFrom or startsBefore begins. UTC without it

limit
integer
default:20

How many to return, up to 100. Defaults to 20

Required range: 1 <= x <= 100
offset
integer

How many to skip: the nextOffset of the previous page

Required range: x >= 0

Response

What was asked for.

campaigns
null | object[]
required
totalCount
integer
required

How many campaigns match, across every page

nextOffset
null | integer

The offset of the next page. Absent on the last