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.
Breaking changes include changes that will break existing queries or could affect the runtime behavior of clients. For a list of breaking changes and when they will occur, see our breaking changes labels.
Changes for 2024-08-22
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.
⚠️ Breaking changes for 2023-12-01
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
}'