Skip to main content
View as Markdown

Changelog

The Analytics changelog is a list of recent and upcoming changes to our Analytics API. It includes backwards-compatible changes, schema previews, and upcoming breaking changes.

Every entry is labelled so you can scan for what affects you. Breaking changes can break existing queries or change runtime behaviour; Deprecated items keep working until the removal date announced in the entry, following the versioning and deprecation policy.

time_gt is now required​

Effective today the time_gt parameters is mandatory on the analytics endpoint.

In a few weeks, the time_lt parameter will also be enforced and become mandatory, as announced in December 2023. By proceeding this way, we believe sufficient time has been provided for the systems to be updated in line with the changes announced earlier in the year.

Time range parameters become required​

Effective December 1st 2023, the time_gt and time_lt parameters will be mandatory on the analytics endpoint.

Before​

curl -X POST \
'https://developer.swapcard.com/event-admin/export/analytics' \
-H 'Content-Type: application/json' \
-H 'Authorization: ACCESS_TOKEN_HERE' \
-d '{"event_ids": [List of event ids]}'

After​

curl -X POST \
'https://developer.swapcard.com/event-admin/export/analytics' \
-H 'Content-Type: application/json' \
-H 'Authorization: ACCESS_TOKEN_HERE' \
-d '{
"event_ids": [List of event ids],
"time_gt": "Time interval" # ex: 2022-09-01T00:00:00.000Z,
"time_lt": "Time interval" # ex: 2022-10-01T00:00:00.000Z
}'