PUT api/awards?award_id={award_id}

Updates an award in the database given the unique id of the award

Request Information

URI Parameters

NameDescriptionTypeAdditional information
award_id

globally unique identifier

Required

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-12-23T17:29:08.7342759+00:00",
  "archer_id": "8cb8322e-8c97-4f9e-8fab-8ea72d75e67f",
  "award": "sample string 3",
  "category_id": "876e930c-49d4-4f45-aeac-609b983f6711",
  "class_id": "284c9934-4c2b-46f1-8068-8342e96bb8f2",
  "round_id": "d3390a4b-8e52-4a24-9430-769da2af039c"
}

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-12-23T17:29:08.7342759+00:00</achieved>
  <archer_id>8cb8322e-8c97-4f9e-8fab-8ea72d75e67f</archer_id>
  <award>sample string 3</award>
  <category_id>876e930c-49d4-4f45-aeac-609b983f6711</category_id>
  <class_id>284c9934-4c2b-46f1-8068-8342e96bb8f2</class_id>
  <round_id>d3390a4b-8e52-4a24-9430-769da2af039c</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.