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": "56825186-e903-43e6-99bf-90985bee7cda", "category_id": "f401145b-21b2-4c5a-a82b-a93869b6630a", "class_id": "e86d78f9-1cd5-4f4a-b288-4a0428614614", "date_shot": "2025-04-04T03:03:52.2059335+01:00", "golds": 5, "hits": 6, "location": "sample string 7", "qualifying": true, "record_qualifying": true, "record_status": true, "round_id": "1df7f8cc-45d2-477c-a690-4339f14a7a4d", "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>56825186-e903-43e6-99bf-90985bee7cda</archer_id> <category_id>f401145b-21b2-4c5a-a82b-a93869b6630a</category_id> <class_id>e86d78f9-1cd5-4f4a-b288-4a0428614614</class_id> <date_shot>2025-04-04T03:03:52.2059335+01: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>1df7f8cc-45d2-477c-a690-4339f14a7a4d</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. |