POST v3/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 |
---|---|---|
inVO | all data needed to create team |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{ "teamName": "sample string 1", "affiliationId": "sample string 2", "acceptTerms": true, "waiverQuestionAnswerList": [ "sample string 1", "sample string 2", "sample string 3" ], "teamEmail": "sample string 4", "carrierId": 5, "allowSMSMessage": true, "selectGroupId": "sample string 7", "select2ndGroupId": "sample string 8", "sid": "sample string 9", "autoAcceptRequst": true, "lookForPlayers": true, "teamColor": "sample string 12", "teamLogo": "sample string 13", "addtionInfo": "sample string 14", "phone": "sample string 15", "allowGameReminder": true, "remindDays": 17, "jerseyNumber": "sample string 18", "isAsChair": true, "allowMobileAppSMS": true, "quizResultId": 21, "isSkipQuiz": true, "digitalSignature": "sample string 23", "isForAParticipant": true, "divisionPreference": [ "sample string 1", "sample string 2", "sample string 3" ], "teamColorRankList": [ "sample string 1", "sample string 2", "sample string 3" ], "creditInfoId": "sample string 25", "isForClubCreating": true, "digitalSignatureBase64": "sample string 27", "registrationAnswers": [ { "questionId": 1, "answer": "sample string 2" }, { "questionId": 1, "answer": "sample string 2" }, { "questionId": 1, "answer": "sample string 2" } ], "memberId": "sample string 28", "divisionId": "sample string 29", "leagueId": "sample string 30", "curUserId": "sample string 31", "isSSO": true, "requestHost": "sample string 33", "applicationPath": "sample string 34", "secureApplicationPath": "sample string 35", "absoluteApplicationPath": "sample string 36", "isHttps": true, "isMobileDevice": true, "isFullEmbed": true, "clientType": 0, "clientVersion": "sample string 40", "clientOS": "sample string 41", "clientBuild": "sample string 42", "premiumAppId": "sample string 43", "clientWidth": 44, "clientHeight": 45, "timezone": 46 }
application/xml, text/xml
Sample:
<CreateTeamInVO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Input"> <ClientHeight>45</ClientHeight> <ClientType>Site</ClientType> <ClientWidth>44</ClientWidth> <absoluteApplicationPath>sample string 36</absoluteApplicationPath> <applicationPath>sample string 34</applicationPath> <cachedKey>sample string 1</cachedKey> <clientBuild>sample string 42</clientBuild> <clientOS>sample string 41</clientOS> <clientVersion>sample string 40</clientVersion> <curUserId>sample string 31</curUserId> <isFullEmbed>true</isFullEmbed> <isHttps>true</isHttps> <isMobileDevice>true</isMobileDevice> <isSSO>true</isSSO> <premiumAppId>sample string 43</premiumAppId> <requestHost>sample string 33</requestHost> <secureApplicationPath>sample string 35</secureApplicationPath> <timezone>46</timezone> <divisionId>sample string 29</divisionId> <leagueId>sample string 30</leagueId> <memberId>sample string 28</memberId> <DigitalSignatureBase64>sample string 27</DigitalSignatureBase64> <IsForClubCreating>true</IsForClubCreating> <acceptTerms>true</acceptTerms> <addtionInfo>sample string 14</addtionInfo> <affiliationId>sample string 2</affiliationId> <allowGameReminder>true</allowGameReminder> <allowMobileAppSMS>true</allowMobileAppSMS> <allowSMSMessage>true</allowSMSMessage> <autoAcceptRequst>true</autoAcceptRequst> <carrierId>5</carrierId> <creditInfoId>sample string 25</creditInfoId> <digitalSignature>sample string 23</digitalSignature> <divisionPreference 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> </divisionPreference> <isAsChair>true</isAsChair> <isForAParticipant>true</isForAParticipant> <isSkipQuiz>true</isSkipQuiz> <jerseyNumber>sample string 18</jerseyNumber> <lookForPlayers>true</lookForPlayers> <phone>sample string 15</phone> <quizResultId>21</quizResultId> <registrationAnswers> <TeamRegAnswer> <Answer>sample string 2</Answer> <QuestionId>1</QuestionId> </TeamRegAnswer> <TeamRegAnswer> <Answer>sample string 2</Answer> <QuestionId>1</QuestionId> </TeamRegAnswer> <TeamRegAnswer> <Answer>sample string 2</Answer> <QuestionId>1</QuestionId> </TeamRegAnswer> </registrationAnswers> <remindDays>17</remindDays> <select2ndGroupId>sample string 8</select2ndGroupId> <selectGroupId>sample string 7</selectGroupId> <sid>sample string 9</sid> <teamColor>sample string 12</teamColor> <teamColorRankList 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> </teamColorRankList> <teamEmail>sample string 4</teamEmail> <teamLogo>sample string 13</teamLogo> <teamName>sample string 1</teamName> <waiverQuestionAnswerList 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> </waiverQuestionAnswerList> </CreateTeamInVO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
the team object created
Response body formats
application/json, text/json
Sample:
{ "redirectPageType": "sample string 1", "teamId": "sample string 2", "orderId": 3 }
application/xml, text/xml
Sample:
<CreateTeamOutVO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Output.Division"> <orderId>3</orderId> <redirectPageType>sample string 1</redirectPageType> <teamId>sample string 2</teamId> </CreateTeamOutVO>