POST 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. |
inDto |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{ "ignore_restrictions": true, "players": [ { "member_id": "sample string 1", "waiver_option": 0 }, { "member_id": "sample string 1", "waiver_option": 0 }, { "member_id": "sample string 1", "waiver_option": 0 } ] }
application/xml, text/xml
Sample:
<AddPlayersInDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Input"> <ignore_restrictions>true</ignore_restrictions> <players> <AddPlayerDto> <member_id>sample string 1</member_id> <waiver_option>Acceptable</waiver_option> </AddPlayerDto> <AddPlayerDto> <member_id>sample string 1</member_id> <waiver_option>Acceptable</waiver_option> </AddPlayerDto> <AddPlayerDto> <member_id>sample string 1</member_id> <waiver_option>Acceptable</waiver_option> </AddPlayerDto> </players> </AddPlayersInDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Response body formats
application/json, text/json
Sample:
[ { "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:
<ArrayOfBasicInfoDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.API.DTO"> <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> </ArrayOfBasicInfoDto>