POST v2/networks/{networkid}/teams/{id}/players/add

[Admin User Permission Required] add players to team

Request Information

Parameters

NameDescriptionAdditional information
id
team id

Define this parameter in the request URI.

inDto

Define this parameter in the request body.

networkid
No documentation available.

Define this parameter in the request URI.

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:
{
  "not_allow_join_players": [
    {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    {
      "id": "sample string 1",
      "name": "sample string 2"
    },
    {
      "id": "sample string 1",
      "name": "sample string 2"
    }
  ],
  "ineligible_players": [
    {
      "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:
<AddPlayersOutDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Output">
  <ineligible_players xmlns:d2p1="http://schemas.datacontract.org/2004/07/imLeagues.API.DTO">
    <d2p1:BasicInfoDto>
      <d2p1:id>sample string 1</d2p1:id>
      <d2p1:name>sample string 2</d2p1:name>
    </d2p1:BasicInfoDto>
    <d2p1:BasicInfoDto>
      <d2p1:id>sample string 1</d2p1:id>
      <d2p1:name>sample string 2</d2p1:name>
    </d2p1:BasicInfoDto>
    <d2p1:BasicInfoDto>
      <d2p1:id>sample string 1</d2p1:id>
      <d2p1:name>sample string 2</d2p1:name>
    </d2p1:BasicInfoDto>
  </ineligible_players>
  <not_allow_join_players xmlns:d2p1="http://schemas.datacontract.org/2004/07/imLeagues.API.DTO">
    <d2p1:BasicInfoDto>
      <d2p1:id>sample string 1</d2p1:id>
      <d2p1:name>sample string 2</d2p1:name>
    </d2p1:BasicInfoDto>
    <d2p1:BasicInfoDto>
      <d2p1:id>sample string 1</d2p1:id>
      <d2p1:name>sample string 2</d2p1:name>
    </d2p1:BasicInfoDto>
    <d2p1:BasicInfoDto>
      <d2p1:id>sample string 1</d2p1:id>
      <d2p1:name>sample string 2</d2p1:name>
    </d2p1:BasicInfoDto>
  </not_allow_join_players>
</AddPlayersOutDto>