POST api/ContestResult/UpsertContestResult

Request Information

URI Parameters

None.

Body Parameters

Collection of UpsertContestResultCommandDto
NameDescriptionTypeAdditional information
ContestId

globally unique identifier

None.

ResultType

string

None.

DriverId

globally unique identifier

None.

Rank

integer

None.

UserId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "ContestId": "6632c012-d01e-44ce-94c7-540ff3a40337",
    "ResultType": "sample string 2",
    "DriverId": "7b87ea65-f5d0-4f54-8441-7ee960455502",
    "Rank": 3,
    "UserId": "4f7b4f08-c5de-41e6-ba0a-0c2cc6d55650"
  },
  {
    "ContestId": "6632c012-d01e-44ce-94c7-540ff3a40337",
    "ResultType": "sample string 2",
    "DriverId": "7b87ea65-f5d0-4f54-8441-7ee960455502",
    "Rank": 3,
    "UserId": "4f7b4f08-c5de-41e6-ba0a-0c2cc6d55650"
  }
]

application/xml, text/xml

Sample:
<ArrayOfUpsertContestResultCommandDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessLayer.Modules.ContestResultModule.Model">
  <UpsertContestResultCommandDto>
    <ContestId>6632c012-d01e-44ce-94c7-540ff3a40337</ContestId>
    <DriverId>7b87ea65-f5d0-4f54-8441-7ee960455502</DriverId>
    <Rank>3</Rank>
    <ResultType>sample string 2</ResultType>
    <UserId>4f7b4f08-c5de-41e6-ba0a-0c2cc6d55650</UserId>
  </UpsertContestResultCommandDto>
  <UpsertContestResultCommandDto>
    <ContestId>6632c012-d01e-44ce-94c7-540ff3a40337</ContestId>
    <DriverId>7b87ea65-f5d0-4f54-8441-7ee960455502</DriverId>
    <Rank>3</Rank>
    <ResultType>sample string 2</ResultType>
    <UserId>4f7b4f08-c5de-41e6-ba0a-0c2cc6d55650</UserId>
  </UpsertContestResultCommandDto>
</ArrayOfUpsertContestResultCommandDto>

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 'IList`1'.

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>