Events (Admin)
Dashboard survey aggregations (Admin)
GET
/manage/events/:eventId/dashboard-chartsReturn aggregations for the choice questions (singleSelect / multiSelect / toggle / radioButton) marked for dashboard display, counted over confirmed participants (CONFIRMED / CHECKED_IN). Requires the dashboardRead permission.
| Auth | Login required |
|---|
Path parameters
eventIdstringrequiredEvent ID or slug.
Response
| Field | Type | Description |
|---|---|---|
aggregations | QuestionAggregation[] | One entry per question; `options` holds the count for each choice. |
Request
curl https://api.4s.link/manage/events/EVENT_ID/dashboard-charts \-H "Authorization: Bearer 4s_at_..."
Example response
{"aggregations": [{"questionId": "q1a2b3c4-...","questionTitle": "このイベントを何で知りましたか?","type": "singleSelect","options": [{ "value": "o1", "label": "SNS", "count": 120 },{ "value": "o2", "label": "知人の紹介", "count": 64 }]}]}