POST me/teams/create
create team for current user and join current user to the team as a captain based on the data passed, which is supposed to contain all necessary data for team creation; if any data passed is invalid, an exception will be thrown;
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
createTeamDto | all data needed to create team |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{ "is_skip_quiz": true, "quiz_result_id": 2, "registration_answers": [ { "questionId": 1, "answer": "sample string 2" }, { "questionId": 1, "answer": "sample string 2" }, { "questionId": 1, "answer": "sample string 2" } ], "league_id": "sample string 1", "division_id": "sample string 2", "terms_accepted": true, "waiver_question_answers": [ "sample string 1", "sample string 2", "sample string 3" ], "team_name": "sample string 4", "entered_email": "sample string 5", "sid": "sample string 6", "addition_info": "sample string 7", "team_logo": "sample string 8", "auto_accept_requests": true, "look_for_players": true, "jersey_number": "sample string 11", "cell_phone": "sample string 12", "carrier_id": 13, "allow_sms_message": true, "allow_game_reminder": true, "reminder_day": 16, "is_as_chair": true }
application/xml, text/xml
Sample:
<CreateTeamDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Input"> <addition_info>sample string 7</addition_info> <allow_game_reminder>true</allow_game_reminder> <allow_sms_message>true</allow_sms_message> <auto_accept_requests>true</auto_accept_requests> <carrier_id>13</carrier_id> <cell_phone>sample string 12</cell_phone> <division_id>sample string 2</division_id> <entered_email>sample string 5</entered_email> <is_as_chair>true</is_as_chair> <is_skip_quiz>true</is_skip_quiz> <jersey_number>sample string 11</jersey_number> <league_id>sample string 1</league_id> <look_for_players>true</look_for_players> <quiz_result_id>2</quiz_result_id> <registration_answers xmlns:d2p1="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Input"> <d2p1:TeamRegAnswer> <d2p1:Answer>sample string 2</d2p1:Answer> <d2p1:QuestionId>1</d2p1:QuestionId> </d2p1:TeamRegAnswer> <d2p1:TeamRegAnswer> <d2p1:Answer>sample string 2</d2p1:Answer> <d2p1:QuestionId>1</d2p1:QuestionId> </d2p1:TeamRegAnswer> <d2p1:TeamRegAnswer> <d2p1:Answer>sample string 2</d2p1:Answer> <d2p1:QuestionId>1</d2p1:QuestionId> </d2p1:TeamRegAnswer> </registration_answers> <reminder_day>16</reminder_day> <sid>sample string 6</sid> <team_logo>sample string 8</team_logo> <team_name>sample string 4</team_name> <terms_accepted>true</terms_accepted> <waiver_question_answers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> <d2p1:string>sample string 3</d2p1:string> </waiver_question_answers> </CreateTeamDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="league_id" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="division_id" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="terms_accepted" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="waiver_question_answers[0]" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="waiver_question_answers[1]" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="waiver_question_answers[2]" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="team_name" sample string 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="entered_email" sample string 5 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="sid" sample string 6 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="addition_info" sample string 7 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="team_logo" sample string 8 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="auto_accept_requests" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="look_for_players" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="jersey_number" sample string 11 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="cell_phone" sample string 12 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="carrier_id" 13 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="allow_sms_message" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="allow_game_reminder" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="reminder_day" 16 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="is_as_chair" True --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
the team object created
Response body formats
application/json, text/json
Sample:
{ "id": "sample string 1", "name": "sample string 2", "logo": "sample string 3", "network": { "id": "sample string 1", "name": "sample string 2" }, "sport": { "id": "sample string 1", "name": "sample string 2" }, "league": { "id": "sample string 1", "name": "sample string 2" }, "division": { "id": "sample string 1", "name": "sample string 2" }, "captain": { "id": "sample string 1", "name": "sample string 2" }, "approved": true, "auto_accept_requests": true, "looking_for_players": true, "co_captains": [ { "id": "sample string 1", "name": "sample string 2" }, { "id": "sample string 1", "name": "sample string 2" }, { "id": "sample string 1", "name": "sample string 2" } ] }
application/xml, text/xml
Sample:
<TeamDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.API.DTO"> <approved>true</approved> <auto_accept_requests>true</auto_accept_requests> <captain> <id>sample string 1</id> <name>sample string 2</name> </captain> <co_captains> <BasicInfoDto> <id>sample string 1</id> <name>sample string 2</name> </BasicInfoDto> <BasicInfoDto> <id>sample string 1</id> <name>sample string 2</name> </BasicInfoDto> <BasicInfoDto> <id>sample string 1</id> <name>sample string 2</name> </BasicInfoDto> </co_captains> <division> <id>sample string 1</id> <name>sample string 2</name> </division> <id>sample string 1</id> <league> <id>sample string 1</id> <name>sample string 2</name> </league> <logo>sample string 3</logo> <looking_for_players>true</looking_for_players> <name>sample string 2</name> <network> <id>sample string 1</id> <name>sample string 2</name> </network> <sport> <id>sample string 1</id> <name>sample string 2</name> </sport> </TeamDto>
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="id" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="name" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="logo" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="network.id" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="network.name" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="sport.id" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="sport.name" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="league.id" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="league.name" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="division.id" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="division.name" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="captain.id" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="captain.name" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="approved" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="auto_accept_requests" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="looking_for_players" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="co_captains[0].id" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="co_captains[0].name" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="co_captains[1].id" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="co_captains[1].name" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="co_captains[2].id" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="co_captains[2].name" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e--