POST api/Contest/AddContest
Request Information
URI Parameters
None.
Body Parameters
AddContestCommandDtoName | Description | Type | Additional information |
---|---|---|---|
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. |
|
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. |
Request Formats
application/json, text/json
Sample:
{ "AccountId": "833dc5c5-7f7c-4f26-8878-f5a08df33cf7", "ContestName": "sample string 1", "ContestNameFr": "sample string 2", "ContestDescription": "sample string 3", "ContestDescriptionFr": "sample string 4", "ContestDate": "2024-12-01T00:29:22.7629962+00:00", "ContestTime": "00:00:00.1234567", "Team1": "b2f76ee1-d835-434f-b12f-305718dff5a8", "Team2": "c2d31a19-f141-4b40-8846-ded480d9b910", "IsContestLocked": true, "Sequence": 5, "StickerId": "e801adaf-90c2-405c-9195-c5e5a74548f3", "UserId": "e0b24d3b-6024-4c76-948f-4c2602874c9a", "SportsTypeId": "6898eec3-4a59-4917-8687-e7d6be2c507c", "StatusId": "5505030b-52a2-4cc5-9ca7-bd32d06379b5", "IsPublished": true }
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>833dc5c5-7f7c-4f26-8878-f5a08df33cf7</AccountId> <ContestDate>2024-12-01T00:29:22.7629962+00:00</ContestDate> <ContestDescription>sample string 3</ContestDescription> <ContestDescriptionFr>sample string 4</ContestDescriptionFr> <ContestName>sample string 1</ContestName> <ContestNameFr>sample string 2</ContestNameFr> <ContestTime>PT0.1234567S</ContestTime> <IsContestLocked>true</IsContestLocked> <IsPublished>true</IsPublished> <Sequence>5</Sequence> <SportsTypeId>6898eec3-4a59-4917-8687-e7d6be2c507c</SportsTypeId> <StatusId>5505030b-52a2-4cc5-9ca7-bd32d06379b5</StatusId> <StickerId>e801adaf-90c2-405c-9195-c5e5a74548f3</StickerId> <Team1>b2f76ee1-d835-434f-b12f-305718dff5a8</Team1> <Team2>c2d31a19-f141-4b40-8846-ded480d9b910</Team2> <UserId>e0b24d3b-6024-4c76-948f-4c2602874c9a</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>