Generate team attendance report
GET {{baseUrl}}/{{version}}/stats/attendance/team/{{team_id}}?from_date=2022-09-01
This endpoint gives the opportunity to get attendance report of a given team by team Unique identification (UID) team_id
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
from_date | string | required |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | A valid JWT token |
RESPONSES
status: OK
{"error":false,"code":200,"message":"The team attendance report","team":[{"team_id":17,"team_name":"Atlanteans U16","team_description":"","team_avatar":"https://files.teamsportz.app/teams/176_1646910429.png","team_code":"TtbBfX","coach1":88,"coach2":10,"team_tags":null,"created_by":838,"created_at":"2022-01-27 13:57:59","org_id":24,"team_venue_formatted_address":null,"team_venue_street_number":null,"team_venue_street_name":"venue","team_venue_postcode":"S","team_venue_city_name":"London","team_venue_state_province":null,"team_venue_country_name":null,"team_venue_country_code":null,"team_venue_lat":null,"team_venue_lng":null,"team_venue_northeast_lat":null,"team_venue_northeast_lng":null,"team_venue_southwest_lat":null,"team_venue_southwest_lng":null,"team_venue_lng_delta":null,"team_venue_lat_delta":null,"org_name":"Ouakhila FC","player_count":2}],"result":[{"user_id":5,"profile_first_name":"Silvino","profile_last_name":"Crocetta","profile_avatar":"https://files.teamsportz.app/avatars/955_1675856628.jpg","profile_role":"Player","profile_position":"PG","profile_number":26,"team_id":17,"avg_rating":"4","games_percent_attendance":0,"total_of_games":"4","practice_percent_attendance":0,"total_of_practices":0},{"user_id":24,"profile_first_name":"Nunzio","profile_last_name":"N'Blondie","profile_avatar":"https://files.teamsportz.app/avatars/261484_1675853946.jpeg","profile_role":"Player","profile_position":"FG","profile_number":88,"team_id":17,"avg_rating":null,"games_percent_attendance":0,"total_of_games":"4","practice_percent_attendance":0,"total_of_practices":0}]}