curl --request GET \ --url 'https://YOURSITE.konstant.ly/openapi/v1/groups/123/statistics' \ --header 'X-API-KEY: 1qaz2wsx3edc4rfv1qaz2wsx3edc4rfv'
{ "group": { "id": 123, "name": "Marketing Team", "parentId": null, "usersCount": 25, "coursesCount": 10, "image": null, "attributes": {} }, "usersWithoutActivity": [ { "id": "user1", "name": "John Smith", "email": "john@example.com", "role": { "alias": "learner" } } ], "usersWithoutResults": [ { "id": "user2", "name": "Jane Doe", "email": "jane@example.com", "role": { "alias": "learner" } } ], "leaders": [ { "coursesCount": 8, "resultValue": 95, "user": { "id": "user3", "name": "Mike Johnson", "email": "mike@example.com", "role": { "alias": "learner" } } } ] }
Get statistics for a group
Show Group Object
Show User Object
Show Leader Object
Show Error object properties
Was this page helpful?