POST api/Contest/EditContest

Request Information

URI Parameters

None.

Body Parameters

EditContestCommandDto
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

AccountId

globally unique identifier

None.

ContestName

string

None.

ContestNameFr

string

None.

ContestDescription

string

None.

ContestDescriptionFr

string

None.

ContestDate

date

None.

ContestTime

time interval

None.

Team1

globally unique identifier

None.

Team2

globally unique identifier

None.

IsContestLocked

boolean

None.

StickerId

globally unique identifier

None.

Sequence

integer

None.

UserId

globally unique identifier

None.

SportsTypeId

globally unique identifier

None.

StatusId

globally unique identifier

None.

IsPublished

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "98a8d3e9-509b-40d9-8cbe-1e201b28282e",
  "AccountId": "5d3f00eb-58f0-4696-8da8-5192bc69a9c8",
  "ContestName": "sample string 2",
  "ContestNameFr": "sample string 3",
  "ContestDescription": "sample string 4",
  "ContestDescriptionFr": "sample string 5",
  "ContestDate": "2024-11-28T10:58:47.9211451+00:00",
  "ContestTime": "00:00:00.1234567",
  "Team1": "c0aa4644-2846-4361-9173-37a9403ff2d0",
  "Team2": "8bd68443-f0ee-4186-9c26-acf4ac55e017",
  "IsContestLocked": true,
  "StickerId": "395c808a-0716-4bcc-94fc-edf0d7652133",
  "Sequence": 7,
  "UserId": "c609765f-7373-4f28-89af-428dc5cc59cf",
  "SportsTypeId": "1fd2000a-ca2d-4118-9fd4-8c0b39d50d29",
  "StatusId": "b0b4a767-e5a8-45b4-bff6-9523c5cb0b84",
  "IsPublished": true
}

application/xml, text/xml

Sample:
<EditContestCommandDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessLayer.Modules.ContestModule.Model">
  <AccountId>5d3f00eb-58f0-4696-8da8-5192bc69a9c8</AccountId>
  <ContestDate>2024-11-28T10:58:47.9211451+00:00</ContestDate>
  <ContestDescription>sample string 4</ContestDescription>
  <ContestDescriptionFr>sample string 5</ContestDescriptionFr>
  <ContestName>sample string 2</ContestName>
  <ContestNameFr>sample string 3</ContestNameFr>
  <ContestTime>PT0.1234567S</ContestTime>
  <Id>98a8d3e9-509b-40d9-8cbe-1e201b28282e</Id>
  <IsContestLocked>true</IsContestLocked>
  <IsPublished>true</IsPublished>
  <Sequence>7</Sequence>
  <SportsTypeId>1fd2000a-ca2d-4118-9fd4-8c0b39d50d29</SportsTypeId>
  <StatusId>b0b4a767-e5a8-45b4-bff6-9523c5cb0b84</StatusId>
  <StickerId>395c808a-0716-4bcc-94fc-edf0d7652133</StickerId>
  <Team1>c0aa4644-2846-4361-9173-37a9403ff2d0</Team1>
  <Team2>8bd68443-f0ee-4186-9c26-acf4ac55e017</Team2>
  <UserId>c609765f-7373-4f28-89af-428dc5cc59cf</UserId>
</EditContestCommandDto>

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

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>