POST api/scores
Adds a score to the database.
Request Information
URI Parameters
None.
Body Parameters
ScoreDataName | 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 |
|
qualifying | boolean |
Required |
|
record_qualifying | boolean |
Required |
|
record_status | boolean |
Required |
|
round_id | globally unique identifier |
Required |
|
score | integer |
Required |
|
status | string |
Required |
|
tens | integer |
None. |
|
user_1 | string |
None. |
|
user_2 | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "archer_id": "b64b6981-5cee-431a-9e10-9fb91f86c316", "category_id": "a6be1e4d-2e70-4b75-a7aa-090c1ce8d3d8", "class_id": "e08aee52-74ec-4069-b2f8-10cb852ba004", "date_shot": "2024-12-23T19:27:05.7824072+00:00", "golds": 5, "hits": 6, "location": "sample string 7", "qualifying": true, "record_qualifying": true, "record_status": true, "round_id": "51e3cd36-02bf-4724-ba47-35f35c9cdaa2", "score": 12, "status": "sample string 13", "tens": 14, "user_1": "sample string 15", "user_2": "sample string 16" }
application/xml, text/xml
Sample:
<ScoreData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Archery_Records_API.Models"> <archer_id>b64b6981-5cee-431a-9e10-9fb91f86c316</archer_id> <category_id>a6be1e4d-2e70-4b75-a7aa-090c1ce8d3d8</category_id> <class_id>e08aee52-74ec-4069-b2f8-10cb852ba004</class_id> <date_shot>2024-12-23T19:27:05.7824072+00:00</date_shot> <golds>5</golds> <hits>6</hits> <location>sample string 7</location> <qualifying>true</qualifying> <record_qualifying>true</record_qualifying> <record_status>true</record_status> <round_id>51e3cd36-02bf-4724-ba47-35f35c9cdaa2</round_id> <score>12</score> <status>sample string 13</status> <tens>14</tens> <user_1>sample string 15</user_1> <user_2>sample string 16</user_2> </ScoreData>
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. |