POST api/CompTeams

Add a single team to a Competition (CompTeams table - teams at competitions) Generally not used as all teams are populated from FIRST API

Request Information

URI Parameters

None.

Body Parameters

CompTeams
NameDescriptionTypeAdditional information
CompTeamsID

integer

None.

CompCode

string

String length: inclusive between 0 and 10

TeamNo

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "CompTeamsID": 1,
  "CompCode": "sample string 2",
  "TeamNo": 3
}

application/xml, text/xml

Sample:
<CompTeams xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FiresUniAPI.Models">
  <CompCode>sample string 2</CompCode>
  <CompTeamsID>1</CompTeamsID>
  <TeamNo>3</TeamNo>
</CompTeams>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CompTeams'.

Response Information

Resource Description

CompTeams
NameDescriptionTypeAdditional information
CompTeamsID

integer

None.

CompCode

string

String length: inclusive between 0 and 10

TeamNo

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "CompTeamsID": 1,
  "CompCode": "sample string 2",
  "TeamNo": 3
}

application/xml, text/xml

Sample:
<CompTeams xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FiresUniAPI.Models">
  <CompCode>sample string 2</CompCode>
  <CompTeamsID>1</CompTeamsID>
  <TeamNo>3</TeamNo>
</CompTeams>