POST api/awards
Adds an award to the database.
Request Information
URI Parameters
None.
Body Parameters
AwardDataName | Description | Type | Additional 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": "2025-06-14T00:50:00.1749633+01:00", "archer_id": "029d3d74-75dd-403c-b229-7e5b938d3267", "award": "sample string 3", "category_id": "0648bff4-5cf9-4d06-b6be-22f9f793d54b", "class_id": "d07f5201-37fb-46a6-a476-68088ad9f700", "round_id": "542f6aca-e573-4f43-8736-7709841e7bc9" }
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>2025-06-14T00:50:00.1749633+01:00</achieved> <archer_id>029d3d74-75dd-403c-b229-7e5b938d3267</archer_id> <award>sample string 3</award> <category_id>0648bff4-5cf9-4d06-b6be-22f9f793d54b</category_id> <class_id>d07f5201-37fb-46a6-a476-68088ad9f700</class_id> <round_id>542f6aca-e573-4f43-8736-7709841e7bc9</round_id> </AwardData>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |