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": "2024-12-24T13:14:05.6887714+00:00", "archer_id": "04155a82-4ac5-41d0-848a-65ca8adffe74", "award": "sample string 3", "category_id": "e1c02a06-d304-493f-9164-5d38bf593725", "class_id": "58cc321d-1506-4d01-a359-3d238ef7388e", "round_id": "bdd6bc71-148f-4b5a-9b3f-b9f35cd88d71" }
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-24T13:14:05.6887714+00:00</achieved> <archer_id>04155a82-4ac5-41d0-848a-65ca8adffe74</archer_id> <award>sample string 3</award> <category_id>e1c02a06-d304-493f-9164-5d38bf593725</category_id> <class_id>58cc321d-1506-4d01-a359-3d238ef7388e</class_id> <round_id>bdd6bc71-148f-4b5a-9b3f-b9f35cd88d71</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. |