Create or Add Coach
POST {{baseUrl}}/users/coaches/create
This API endpoint facilitates the creation or addition of coaches to a club.
Request Body
[{"name"=>"role", "value"=>"Coach", "datatype"=>"string"}, {"name"=>"email", "value"=>"ouakhila+permission@teamsportz.pro", "datatype"=>"string"}, {"name"=>"first_name", "value"=>"Ouakhila", "datatype"=>"string"}, {"name"=>"last_name", "value"=>"Torou", "datatype"=>"string"}, {"name"=>"org_id", "value"=>"", "datatype"=>"null"}, {"name"=>"send_welcome_email", "value"=>"1", "datatype"=>"number"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | A valid JWT token |
RESPONSES
status: OK
{"error":false,"code":200,"message":"The new coach account has been created successfully!","user_id":2}