POST api/Contest/AddContest
Request Information
URI Parameters
None.
Body Parameters
AddContestCommandDtoName | Description | Type | Additional information |
---|---|---|---|
AccountId | globally unique identifier |
None. |
|
ContestName | string |
None. |
|
ContestDescription | string |
None. |
|
ContestDate | date |
None. |
|
ContestTime | time interval |
None. |
|
Team1 | globally unique identifier |
None. |
|
Team2 | globally unique identifier |
None. |
|
IsContestLocked | boolean |
None. |
|
Sequence | integer |
None. |
|
StickerId | globally unique identifier |
None. |
|
UserId | globally unique identifier |
None. |
|
SportsTypeId | globally unique identifier |
None. |
|
StatusId | globally unique identifier |
None. |
|
IsPublished | boolean |
None. |
|
SeasonTypeId | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{ "AccountId": "37ee36d4-e7a3-4cd2-9e70-e551700ed9c5", "ContestName": "sample string 1", "ContestDescription": "sample string 2", "ContestDate": "2025-07-23T00:09:07.3936872+00:00", "ContestTime": "00:00:00.1234567", "Team1": "d9da72b9-5174-427d-abcf-d47fbcb3e060", "Team2": "4f713daf-3e71-4908-9fab-9aa53c9a33cf", "IsContestLocked": true, "Sequence": 3, "StickerId": "c3703de9-dbf9-49d9-ab34-36b3ca08da3d", "UserId": "e38f6b32-1d1a-42b4-8cbb-37a7e2b6245a", "SportsTypeId": "a7bcb96c-06f4-4b34-92f7-1c9e0f9ba896", "StatusId": "0889fb6a-f7d1-4060-a7d2-fbfc54a1dac1", "IsPublished": true, "SeasonTypeId": "895ce53f-bdca-425f-ae4e-ba88394b84f2" }
application/xml, text/xml
Sample:
<AddContestCommandDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessLayer.Modules.ContestModule.Model"> <AccountId>37ee36d4-e7a3-4cd2-9e70-e551700ed9c5</AccountId> <ContestDate>2025-07-23T00:09:07.3936872+00:00</ContestDate> <ContestDescription>sample string 2</ContestDescription> <ContestName>sample string 1</ContestName> <ContestTime>PT0.1234567S</ContestTime> <IsContestLocked>true</IsContestLocked> <IsPublished>true</IsPublished> <SeasonTypeId>895ce53f-bdca-425f-ae4e-ba88394b84f2</SeasonTypeId> <Sequence>3</Sequence> <SportsTypeId>a7bcb96c-06f4-4b34-92f7-1c9e0f9ba896</SportsTypeId> <StatusId>0889fb6a-f7d1-4060-a7d2-fbfc54a1dac1</StatusId> <StickerId>c3703de9-dbf9-49d9-ab34-36b3ca08da3d</StickerId> <Team1>d9da72b9-5174-427d-abcf-d47fbcb3e060</Team1> <Team2>4f713daf-3e71-4908-9fab-9aa53c9a33cf</Team2> <UserId>e38f6b32-1d1a-42b4-8cbb-37a7e2b6245a</UserId> </AddContestCommandDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
stringResponse 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>