POST api/awards

Adds an award to the database.

Request Information

URI Parameters

None.

Body Parameters

AwardData
NameDescriptionTypeAdditional information
achieved

date

Required

archer_id

globally unique identifier

Required

award

string

Required

category_id

globally unique identifier

None.

class_id

globally unique identifier

None.

round_id

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "achieved": "2024-05-21T15:13:22.4172434+01:00",
  "archer_id": "3b17d711-c25e-4bcd-9305-e2ac8282fb51",
  "award": "sample string 3",
  "category_id": "44cbbed7-d15e-4b50-a632-baa0cb2f0d17",
  "class_id": "2e62f805-201f-488d-89fd-994f099fcaac",
  "round_id": "abf477b2-d1f1-47e0-9254-94cedcde91b7"
}

application/xml, text/xml

Sample:
<AwardData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Archery_Records_API.Models">
  <achieved>2024-05-21T15:13:22.4172434+01:00</achieved>
  <archer_id>3b17d711-c25e-4bcd-9305-e2ac8282fb51</archer_id>
  <award>sample string 3</award>
  <category_id>44cbbed7-d15e-4b50-a632-baa0cb2f0d17</category_id>
  <class_id>2e62f805-201f-488d-89fd-994f099fcaac</class_id>
  <round_id>abf477b2-d1f1-47e0-9254-94cedcde91b7</round_id>
</AwardData>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.