GET v2/networks/{networkid}/teams/{id}/views/home

[User Permission Required] get view model to build team page

Request Information

Parameters

NameDescriptionAdditional information
id
team id

Define this parameter in the request URI.

networkid
network id

Define this parameter in the request URI.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "payment_instructions": "sample string 1",
  "team_fee": {
    "restrict_pay": true,
    "restrict_message": "sample string 2",
    "show": true,
    "payment_amount": 4.1,
    "only_accept_packages": true
  },
  "individual_fee": {
    "show": true,
    "payment_amount": 2.1,
    "only_accept_packages": true
  },
  "show_time_preferences": true,
  "has_pending_team_payment": true,
  "has_pending_individual_payment": true,
  "id": "sample string 5",
  "name": "sample string 6",
  "logo": "sample string 7",
  "network": {
    "id": "sample string 1",
    "name": "sample string 2"
  },
  "sport": {
    "id": "sample string 1",
    "name": "sample string 2"
  },
  "league": {
    "id": "sample string 1",
    "name": "sample string 2"
  },
  "division": {
    "id": "sample string 1",
    "name": "sample string 2"
  },
  "captain": {
    "id": "sample string 1",
    "name": "sample string 2"
  },
  "approved": true,
  "auto_accept_requests": true,
  "looking_for_players": true,
  "co_captains": [
    {
      "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:
<TeamVMDtoV2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.API.DTO.V2">
  <approved>true</approved>
  <auto_accept_requests>true</auto_accept_requests>
  <captain xmlns:d2p1="http://schemas.datacontract.org/2004/07/imLeagues.API.DTO">
    <d2p1:id>sample string 1</d2p1:id>
    <d2p1:name>sample string 2</d2p1:name>
  </captain>
  <co_captains 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>
  </co_captains>
  <division xmlns:d2p1="http://schemas.datacontract.org/2004/07/imLeagues.API.DTO">
    <d2p1:id>sample string 1</d2p1:id>
    <d2p1:name>sample string 2</d2p1:name>
  </division>
  <id>sample string 5</id>
  <league xmlns:d2p1="http://schemas.datacontract.org/2004/07/imLeagues.API.DTO">
    <d2p1:id>sample string 1</d2p1:id>
    <d2p1:name>sample string 2</d2p1:name>
  </league>
  <logo>sample string 7</logo>
  <looking_for_players>true</looking_for_players>
  <name>sample string 6</name>
  <network xmlns:d2p1="http://schemas.datacontract.org/2004/07/imLeagues.API.DTO">
    <d2p1:id>sample string 1</d2p1:id>
    <d2p1:name>sample string 2</d2p1:name>
  </network>
  <sport xmlns:d2p1="http://schemas.datacontract.org/2004/07/imLeagues.API.DTO">
    <d2p1:id>sample string 1</d2p1:id>
    <d2p1:name>sample string 2</d2p1:name>
  </sport>
  <has_pending_individual_payment>true</has_pending_individual_payment>
  <has_pending_team_payment>true</has_pending_team_payment>
  <individual_fee>
    <only_accept_packages>true</only_accept_packages>
    <payment_amount>2.1</payment_amount>
    <show>true</show>
  </individual_fee>
  <payment_instructions>sample string 1</payment_instructions>
  <show_time_preferences>true</show_time_preferences>
  <team_fee>
    <only_accept_packages>true</only_accept_packages>
    <payment_amount>4.1</payment_amount>
    <show>true</show>
    <restrict_message>sample string 2</restrict_message>
    <restrict_pay>true</restrict_pay>
  </team_fee>
</TeamVMDtoV2>