POST api/Matches

Request Information

URI Parameters

None.

Body Parameters

Match
NameDescriptionTypeAdditional information
MatchID

integer

None.

Compcode

string

String length: inclusive between 0 and 10

MatchType

string

String length: inclusive between 0 and 1

MatchNo

integer

None.

Red1

integer

None.

Red2

integer

None.

Red3

integer

None.

Blue1

integer

None.

Blue2

integer

None.

Blue3

integer

None.

SchedDateTime

date

None.

Request Formats

application/json, text/json

Sample:
{
  "MatchID": 1,
  "Compcode": "sample string 2",
  "MatchType": "sample string 3",
  "MatchNo": 4,
  "Red1": 1,
  "Red2": 1,
  "Red3": 1,
  "Blue1": 1,
  "Blue2": 1,
  "Blue3": 1,
  "SchedDateTime": "2025-06-16T01:43:57.1152467+00:00"
}

application/xml, text/xml

Sample:
<Match xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FiresUniAPI.Models">
  <Blue1>1</Blue1>
  <Blue2>1</Blue2>
  <Blue3>1</Blue3>
  <Compcode>sample string 2</Compcode>
  <MatchID>1</MatchID>
  <MatchNo>4</MatchNo>
  <MatchType>sample string 3</MatchType>
  <Red1>1</Red1>
  <Red2>1</Red2>
  <Red3>1</Red3>
  <SchedDateTime>2025-06-16T01:43:57.1152467+00:00</SchedDateTime>
</Match>

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 'Match'.

Response Information

Resource Description

MatchDTO
NameDescriptionTypeAdditional information
MatchType

string

None.

MatchNo

integer

None.

Red1

integer

None.

Red2

integer

None.

Red3

integer

None.

Blue1

integer

None.

Blue2

integer

None.

Blue3

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "MatchType": "sample string 1",
  "MatchNo": 2,
  "Red1": 1,
  "Red2": 1,
  "Red3": 1,
  "Blue1": 1,
  "Blue2": 1,
  "Blue3": 1
}

application/xml, text/xml

Sample:
<MatchDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FiresUniAPI.Models">
  <Blue1>1</Blue1>
  <Blue2>1</Blue2>
  <Blue3>1</Blue3>
  <MatchNo>2</MatchNo>
  <MatchType>sample string 1</MatchType>
  <Red1>1</Red1>
  <Red2>1</Red2>
  <Red3>1</Red3>
</MatchDTO>