POST api/clubrecords
Adds a club record to the database.
Request Information
URI Parameters
None.
Body Parameters
ClubRecordDataName | Description | Type | Additional information |
---|---|---|---|
archer_id | globally unique identifier |
Required |
|
category_id | globally unique identifier |
Required |
|
class_id | globally unique identifier |
Required |
|
date_shot | date |
Required |
|
golds | integer |
None. |
|
hits | integer |
None. |
|
location | string |
Required |
|
round_id | globally unique identifier |
Required |
|
score | integer |
Required |
|
status | StatusOptions |
Required |
|
tens | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "archer_id": "ce6e0f70-ee42-45c9-95da-c191e5d5c998", "category_id": "40c7b827-d468-4280-abcf-ae16fb5f7ef5", "class_id": "3f33404f-797d-4225-b7a2-257dd807d56b", "date_shot": "2024-12-24T13:24:18.0536097+00:00", "golds": 1, "hits": 1, "location": "sample string 5", "round_id": "5bb4eec1-04ed-4a69-bc77-09cb4e7273f0", "score": 1, "status": 1, "tens": 1 }
application/xml, text/xml
Sample:
<ClubRecordData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Archery_Records_API.Models"> <archer_id>ce6e0f70-ee42-45c9-95da-c191e5d5c998</archer_id> <category_id>40c7b827-d468-4280-abcf-ae16fb5f7ef5</category_id> <class_id>3f33404f-797d-4225-b7a2-257dd807d56b</class_id> <date_shot>2024-12-24T13:24:18.0536097+00:00</date_shot> <golds>1</golds> <hits>1</hits> <location>sample string 5</location> <round_id>5bb4eec1-04ed-4a69-bc77-09cb4e7273f0</round_id> <score>1</score> <status>Club_Record</status> <tens>1</tens> </ClubRecordData>
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. |