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.
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="ignore_restrictions" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="players[0].member_id" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="players[0].waiver_option" Acceptable --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="players[1].member_id" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="players[1].waiver_option" Acceptable --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="players[2].member_id" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="players[2].waiver_option" Acceptable --MultipartDataMediaFormatterBoundary1q2w3e--
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>
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].id" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].name" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].id" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].name" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[2].id" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[2].name" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e--