POST api/scores
Adds a score to the database. Score only can be submitted as application/json or application/xml To add a scoresheet: Include score as score object in request body as multi part form data. The file must be first.
Request Information
URI Parameters
None.
Body Parameters
ScoreDetailsName | Description | Type | Additional information |
---|---|---|---|
age_group_id |
Sets the identifier of the age group. |
globally unique identifier |
Required |
class_id |
Sets the identifier of the bow class. |
globally unique identifier |
Required |
date_shot |
Sets the date shot. |
date |
Required |
distances |
Sets the list of distances shot. |
Collection of DistanceScore |
None. |
member_id |
Sets the identifier of the member. |
globally unique identifier |
Required |
golds |
Sets the number of golds. |
integer |
None. |
hits |
Sets the number of hits. |
integer |
None. |
location |
Sets the location.' |
string |
Required |
notes |
Sets notes. |
string |
None. |
qualifying |
Sets if the score qualifies for handicap and classification (UK relevance only). |
boolean |
Required |
record_qualifying |
Sets if the score qualifies for club record. |
boolean |
Required |
record_status |
Sets if the score was shot at a record status, national or international competition. |
boolean |
Required |
round_id |
Sets the identifier of the round. |
globally unique identifier |
Required |
score |
Sets the score. |
integer |
Required |
status |
Sets the status of the score. |
ScoreStatusOptions |
Required |
user_1 |
Sets the value of the first user defined field |
string |
None. |
user_2 |
Sets the value of the second user defined field. |
string |
None. |
Xs |
Sets the number of Xs. |
integer |
None. |
Request Formats
application/json, text/json
{ "age_group_id": "672d4604-0e60-41d0-84ad-fc523903e558", "class_id": "ef9201ec-cc08-4896-a1a5-aeca3f37d4e8", "date_shot": "2025-08-02T09:41:46.5191001+01:00", "distances": [ { "arrows": "sample string 1", "bow": "sample string 2", "distance": "sample string 3", "face": "sample string 4", "golds": 5, "hits": 6, "score": 7, "sightmark": "sample string 8", "Xs": 9 }, { "arrows": "sample string 1", "bow": "sample string 2", "distance": "sample string 3", "face": "sample string 4", "golds": 5, "hits": 6, "score": 7, "sightmark": "sample string 8", "Xs": 9 } ], "member_id": "ab740eec-16e0-4305-bedf-382261dbca70", "golds": 5, "hits": 6, "location": "sample string 7", "notes": "sample string 8", "qualifying": true, "record_qualifying": true, "record_status": true, "round_id": "4050caab-f77a-43b0-90a2-4592a73a47c4", "score": 13, "status": 1, "user_1": "sample string 14", "user_2": "sample string 15", "Xs": 16 }
multipart/form-data
{"age_group_id":"672d4604-0e60-41d0-84ad-fc523903e558","class_id":"ef9201ec-cc08-4896-a1a5-aeca3f37d4e8","date_shot":"2025-08-02T09:41:46.5191001+01:00","distances":[{"arrows":"sample string 1","bow":"sample string 2","distance":"sample string 3","face":"sample string 4","golds":5,"hits":6,"score":7,"sightmark":"sample string 8","Xs":9},{"arrows":"sample string 1","bow":"sample string 2","distance":"sample string 3","face":"sample string 4","golds":5,"hits":6,"score":7,"sightmark":"sample string 8","Xs":9}],"member_id":"ab740eec-16e0-4305-bedf-382261dbca70","golds":5,"hits":6,"location":"sample string 7","notes":"sample string 8","qualifying":true,"record_qualifying":true,"record_status":true,"round_id":"4050caab-f77a-43b0-90a2-4592a73a47c4","score":13,"status":1,"user_1":"sample string 14","user_2":"sample string 15","Xs":16}
application/xml, text/xml
<ScoreDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Archery_Records_API.Models"> <Xs>16</Xs> <age_group_id>672d4604-0e60-41d0-84ad-fc523903e558</age_group_id> <class_id>ef9201ec-cc08-4896-a1a5-aeca3f37d4e8</class_id> <date_shot>2025-08-02T09:41:46.5191001+01:00</date_shot> <distances> <DistanceScore> <Xs>9</Xs> <arrows>sample string 1</arrows> <bow>sample string 2</bow> <distance>sample string 3</distance> <face>sample string 4</face> <golds>5</golds> <hits>6</hits> <score>7</score> <sightmark>sample string 8</sightmark> </DistanceScore> <DistanceScore> <Xs>9</Xs> <arrows>sample string 1</arrows> <bow>sample string 2</bow> <distance>sample string 3</distance> <face>sample string 4</face> <golds>5</golds> <hits>6</hits> <score>7</score> <sightmark>sample string 8</sightmark> </DistanceScore> </distances> <golds>5</golds> <hits>6</hits> <location>sample string 7</location> <member_id>ab740eec-16e0-4305-bedf-382261dbca70</member_id> <notes>sample string 8</notes> <qualifying>true</qualifying> <record_qualifying>true</record_qualifying> <record_status>true</record_status> <round_id>4050caab-f77a-43b0-90a2-4592a73a47c4</round_id> <score>13</score> <status>Practice</status> <user_1>sample string 14</user_1> <user_2>sample string 15</user_2> </ScoreDetails>
application/x-www-form-urlencoded
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. |