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": "49dfa66f-9919-40ac-9bbe-c3c586c5f701", "ContestName": "sample string 1", "ContestNameFr": "sample string 2", "ContestDescription": "sample string 3", "ContestDescriptionFr": "sample string 4", "ContestDate": "2024-11-28T10:53:48.5529811+00:00", "ContestTime": "00:00:00.1234567", "Team1": "9eb42cd2-9b77-4cee-b413-50e5603674f8", "Team2": "8db8583a-29ff-4c46-b351-f4ceb92cc04f", "IsContestLocked": true, "Sequence": 5, "StickerId": "cb2c5879-8a64-4572-af27-baba7c1d2baa", "UserId": "149cf3bd-b9cf-42d6-aa23-93f75c6ff629", "SportsTypeId": "4caa7223-e49e-4276-882b-674eb247d1e3", "StatusId": "7ef1f3cc-1d03-4e40-819b-31b8eaa6a28b", "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>49dfa66f-9919-40ac-9bbe-c3c586c5f701</AccountId> <ContestDate>2024-11-28T10:53:48.5529811+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>4caa7223-e49e-4276-882b-674eb247d1e3</SportsTypeId> <StatusId>7ef1f3cc-1d03-4e40-819b-31b8eaa6a28b</StatusId> <StickerId>cb2c5879-8a64-4572-af27-baba7c1d2baa</StickerId> <Team1>9eb42cd2-9b77-4cee-b413-50e5603674f8</Team1> <Team2>8db8583a-29ff-4c46-b351-f4ceb92cc04f</Team2> <UserId>149cf3bd-b9cf-42d6-aa23-93f75c6ff629</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>