POST v3/teams/{id}/players/add
[Admin User Permission Required] add players to team
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
id | team id |
Define this parameter in the request URI. |
inVO |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{ "players": [ { "memberId": "sample string 1", "waiverOption": 0, "jerseyNumber": "sample string 2", "packageId": 3, "isUsePackage": true, "checkIfNeedShowPaymentAlert": true, "isNomad": true }, { "memberId": "sample string 1", "waiverOption": 0, "jerseyNumber": "sample string 2", "packageId": 3, "isUsePackage": true, "checkIfNeedShowPaymentAlert": true, "isNomad": true }, { "memberId": "sample string 1", "waiverOption": 0, "jerseyNumber": "sample string 2", "packageId": 3, "isUsePackage": true, "checkIfNeedShowPaymentAlert": true, "isNomad": true } ], "ignoreRestrictions": true, "teamId": "sample string 2", "curUserId": "sample string 3", "isSSO": true, "requestHost": "sample string 5", "applicationPath": "sample string 6", "secureApplicationPath": "sample string 7", "absoluteApplicationPath": "sample string 8", "isHttps": true, "isMobileDevice": true, "isFullEmbed": true, "clientType": 0, "clientVersion": "sample string 12", "clientOS": "sample string 13", "clientBuild": "sample string 14", "premiumAppId": "sample string 15", "clientWidth": 16, "clientHeight": 17, "timezone": 18 }
application/xml, text/xml
Sample:
<AddPlayersInVO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Input"> <ClientHeight>17</ClientHeight> <ClientType>Site</ClientType> <ClientWidth>16</ClientWidth> <absoluteApplicationPath>sample string 8</absoluteApplicationPath> <applicationPath>sample string 6</applicationPath> <cachedKey>sample string 1</cachedKey> <clientBuild>sample string 14</clientBuild> <clientOS>sample string 13</clientOS> <clientVersion>sample string 12</clientVersion> <curUserId>sample string 3</curUserId> <isFullEmbed>true</isFullEmbed> <isHttps>true</isHttps> <isMobileDevice>true</isMobileDevice> <isSSO>true</isSSO> <premiumAppId>sample string 15</premiumAppId> <requestHost>sample string 5</requestHost> <secureApplicationPath>sample string 7</secureApplicationPath> <timezone>18</timezone> <teamId>sample string 2</teamId> <IgnoreRestrictions>true</IgnoreRestrictions> <Players> <AddPlayersVO> <CheckIfNeedShowPaymentAlert>true</CheckIfNeedShowPaymentAlert> <IsNomad>true</IsNomad> <IsUsePackage>true</IsUsePackage> <JerseyNumber>sample string 2</JerseyNumber> <MemberId>sample string 1</MemberId> <PackageId>3</PackageId> <WaiverOption>Acceptable</WaiverOption> </AddPlayersVO> <AddPlayersVO> <CheckIfNeedShowPaymentAlert>true</CheckIfNeedShowPaymentAlert> <IsNomad>true</IsNomad> <IsUsePackage>true</IsUsePackage> <JerseyNumber>sample string 2</JerseyNumber> <MemberId>sample string 1</MemberId> <PackageId>3</PackageId> <WaiverOption>Acceptable</WaiverOption> </AddPlayersVO> <AddPlayersVO> <CheckIfNeedShowPaymentAlert>true</CheckIfNeedShowPaymentAlert> <IsNomad>true</IsNomad> <IsUsePackage>true</IsUsePackage> <JerseyNumber>sample string 2</JerseyNumber> <MemberId>sample string 1</MemberId> <PackageId>3</PackageId> <WaiverOption>Acceptable</WaiverOption> </AddPlayersVO> </Players> </AddPlayersInVO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Response body formats
application/json, text/json
Sample:
{ "notAllowJoinPlayers": [ { "errorMsg": "sample string 1", "id": "sample string 2", "name": "sample string 3" }, { "errorMsg": "sample string 1", "id": "sample string 2", "name": "sample string 3" }, { "errorMsg": "sample string 1", "id": "sample string 2", "name": "sample string 3" } ], "ineligiblePlayers": [ { "id": "sample string 1", "name": "sample string 2" }, { "id": "sample string 1", "name": "sample string 2" }, { "id": "sample string 1", "name": "sample string 2" } ], "joinAsNomadPlayers": [ { "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:
<AddPlayersOutVO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Output.Team"> <IneligiblePlayers xmlns:d2p1="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Output.Common"> <d2p1:BasicInfoOutVO> <d2p1:id>sample string 1</d2p1:id> <d2p1:name>sample string 2</d2p1:name> </d2p1:BasicInfoOutVO> <d2p1:BasicInfoOutVO> <d2p1:id>sample string 1</d2p1:id> <d2p1:name>sample string 2</d2p1:name> </d2p1:BasicInfoOutVO> <d2p1:BasicInfoOutVO> <d2p1:id>sample string 1</d2p1:id> <d2p1:name>sample string 2</d2p1:name> </d2p1:BasicInfoOutVO> </IneligiblePlayers> <JoinAsNomadPlayers xmlns:d2p1="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Output.Common"> <d2p1:BasicInfoOutVO> <d2p1:id>sample string 1</d2p1:id> <d2p1:name>sample string 2</d2p1:name> </d2p1:BasicInfoOutVO> <d2p1:BasicInfoOutVO> <d2p1:id>sample string 1</d2p1:id> <d2p1:name>sample string 2</d2p1:name> </d2p1:BasicInfoOutVO> <d2p1:BasicInfoOutVO> <d2p1:id>sample string 1</d2p1:id> <d2p1:name>sample string 2</d2p1:name> </d2p1:BasicInfoOutVO> </JoinAsNomadPlayers> <NotAllowJoinPlayers> <NotAllowJoinPlayerOutVO> <id xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Output.Common">sample string 2</id> <name xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Output.Common">sample string 3</name> <ErrorMsg>sample string 1</ErrorMsg> </NotAllowJoinPlayerOutVO> <NotAllowJoinPlayerOutVO> <id xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Output.Common">sample string 2</id> <name xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Output.Common">sample string 3</name> <ErrorMsg>sample string 1</ErrorMsg> </NotAllowJoinPlayerOutVO> <NotAllowJoinPlayerOutVO> <id xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Output.Common">sample string 2</id> <name xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Internal.API.VO.Output.Common">sample string 3</name> <ErrorMsg>sample string 1</ErrorMsg> </NotAllowJoinPlayerOutVO> </NotAllowJoinPlayers> </AddPlayersOutVO>