POST me/teams/create

create team for current user and join current user to the team as a captain based on the data passed, which is supposed to contain all necessary data for team creation; if any data passed is invalid, an exception will be thrown;

Request Information

Parameters

NameDescriptionAdditional information
createTeamDto
all data needed to create team

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "is_skip_quiz": true,
  "quiz_result_id": 2,
  "league_id": "sample string 1",
  "division_id": "sample string 2",
  "terms_accepted": true,
  "waiver_question_answers": [
    "sample string 1",
    "sample string 2",
    "sample string 3"
  ],
  "team_name": "sample string 4",
  "entered_email": "sample string 5",
  "sid": "sample string 6",
  "addition_info": "sample string 7",
  "team_logo": "sample string 8",
  "auto_accept_requests": true,
  "look_for_players": true,
  "jersey_number": "sample string 11",
  "cell_phone": "sample string 12",
  "carrier_id": 13,
  "allow_sms_message": true,
  "allow_game_reminder": true,
  "reminder_day": 16,
  "is_as_chair": true
}

application/xml, text/xml

Sample:
<CreateTeamDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.Web.API.Models.Input">
  <addition_info>sample string 7</addition_info>
  <allow_game_reminder>true</allow_game_reminder>
  <allow_sms_message>true</allow_sms_message>
  <auto_accept_requests>true</auto_accept_requests>
  <carrier_id>13</carrier_id>
  <cell_phone>sample string 12</cell_phone>
  <division_id>sample string 2</division_id>
  <entered_email>sample string 5</entered_email>
  <is_as_chair>true</is_as_chair>
  <is_skip_quiz>true</is_skip_quiz>
  <jersey_number>sample string 11</jersey_number>
  <league_id>sample string 1</league_id>
  <look_for_players>true</look_for_players>
  <quiz_result_id>2</quiz_result_id>
  <reminder_day>16</reminder_day>
  <sid>sample string 6</sid>
  <team_logo>sample string 8</team_logo>
  <team_name>sample string 4</team_name>
  <terms_accepted>true</terms_accepted>
  <waiver_question_answers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
    <d2p1:string>sample string 3</d2p1:string>
  </waiver_question_answers>
</CreateTeamDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

the team object created

Response body formats

application/json, text/json

Sample:
{
  "id": "sample string 1",
  "name": "sample string 2",
  "logo": "sample string 3",
  "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:
<TeamDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/imLeagues.API.DTO">
  <approved>true</approved>
  <auto_accept_requests>true</auto_accept_requests>
  <captain>
    <id>sample string 1</id>
    <name>sample string 2</name>
  </captain>
  <co_captains>
    <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>
  </co_captains>
  <division>
    <id>sample string 1</id>
    <name>sample string 2</name>
  </division>
  <id>sample string 1</id>
  <league>
    <id>sample string 1</id>
    <name>sample string 2</name>
  </league>
  <logo>sample string 3</logo>
  <looking_for_players>true</looking_for_players>
  <name>sample string 2</name>
  <network>
    <id>sample string 1</id>
    <name>sample string 2</name>
  </network>
  <sport>
    <id>sample string 1</id>
    <name>sample string 2</name>
  </sport>
</TeamDto>