List of organisations or clubs

GET {{baseUrl}}/organisations?start_date=2022-01-21&end_date=2022-06-21&name=&head_coach=&type=Club&sort_name=&sorting=&limit=20&email=

It returns the list of Clubs

Reserved to Club Administration only

Request Params

KeyDatatypeRequiredDescription
start_datestringnullable
end_datestringnullable
namenullnullable
Allow to search by the Club name
head_coachnullnullable
Allow to search by the Head Coach first or last name
typestringnullable
sort_namenullnullable
sortingnullnullable
limitnumbernullable
emailnullnullable

Allow to search by the Head Coache's email |

HEADERS

KeyDatatypeRequiredDescription
AuthorizationstringA valid JWT token
Admin-Tokenstring

RESPONSES

status: OK

{"error":false,"code":200,"message":"List of all organisations.","response":{"current_page":1,"data":[{"org_id":90,"org_name":"Swadlincote Lasers","org_avatar":null,"org_description":null,"created_at":"2022-03-12T13:48:58.000000Z","created_by":null,"payment_plan":"club","head_coach":[{"user_id":14,"email":"swadlincotelasers@email.com","pass_reset_token":"pass rest token","reset_token_updated":"2022-03-24 19:40:55","created_at":"2022-03-12T13:48:58.000000Z","updated_at":"2022-06-14T19:41:58.000000Z","deleted_at":null,"first_login_at":"2022-03-13 07:28:21","provider_user_id":null,"provider":null,"onboarding":1,"debugging":0,"org_id":30,"admin_first_login":"2022-03-13 07:20:28","admin_last_login":"2022-06-14 19:41:58","login_counter":3,"admin_login_counter":10,"last_login_at":"2022-03-24 20:18:12","email_confirmation":1,"direct_registration_flag":1,"confirm_email_token":"","push_notifications":1,"push_personal":1,"push_team":1,"push_newsletter":1,"email_notifications":1,"email_personal":1,"email_team":1,"email_newsletter":1,"time_zone":null,"strava_integration":0,"user_pending_coach_approval":0,"onboarding_coach":1,"onboarding_payment":1,"show_skeleton_flag":1,"profile_id":14,"profile_first_name":"Dave","profile_last_name":"Smith","profile_avatar":"https://files.teamsportz.app/avatars/14_12345678.jpeg","profile_role":"Head Coach","team_id":23}],"teams_count":4},{"org_id":24,"org_name":"Club Atlanteans","org_avatar":"https://files.teamsportz.app/organisations/24_1009998801.png","org_description":null,"created_at":"2021-06-27T15:12:13.000000Z","created_by":null,"payment_plan":"club","head_coach":[{"user_id":88,"email":"useremail@teamsportz.pro","pass_reset_token":"pass rest token","reset_token_updated":"2021-11-01 09:19:21","created_at":"2021-06-27T15:12:13.000000Z","updated_at":"2022-06-20T22:02:27.000000Z","deleted_at":null,"first_login_at":"2021-10-30 15:51:35","provider_user_id":null,"provider":null,"onboarding":0,"debugging":0,"org_id":24,"admin_first_login":"2021-10-30 15:43:37","admin_last_login":"2022-06-17 09:43:09","login_counter":28,"admin_login_counter":119,"last_login_at":"2022-06-20 22:02:27","email_confirmation":1,"direct_registration_flag":1,"confirm_email_token":"","push_notifications":1,"push_personal":1,"push_team":1,"push_newsletter":1,"email_notifications":1,"email_personal":1,"email_team":1,"email_newsletter":1,"time_zone":null,"strava_integration":0,"user_pending_coach_approval":0,"onboarding_coach":1,"onboarding_payment":1,"show_skeleton_flag":1,"profile_id":88,"profile_first_name":"John","profile_last_name":"Smith","profile_avatar":"https://files.teamsportz.app/avatars/88_13555543.jpeg","profile_role":"Head Coach","team_id":null}],"teams_count":5}],"first_page_url":"https://api-dev.teamsportz.pro/v1/clubs?page=1","from":1,"last_page":1,"last_page_url":"https://api-dev.teamsportz.pro/v1/clubs?page=1","links":[{"url":null,"label":"pagination.previous","active":false},{"url":"https://api-dev.teamsportz.pro/v1/clubs?page=1","label":"1","active":true},{"url":null,"label":"pagination.next","active":false}],"next_page_url":null,"path":"https://api-dev.teamsportz.pro/v1/clubs","per_page":90,"prev_page_url":null,"to":2,"total":2}}