PUT api/scores?record_id={record_id}
Edits a score in the database given its record_id. Score only can be submitted as application/json or application/xml To replace a scoresheet: Include score as score object in request body as multi part form data. The file must be first.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
record_id | globally unique identifier |
Required |
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": "172ec53a-cfa0-49c0-ad56-553007587f6f", "class_id": "bda2599e-e49b-4f56-b41b-042bc83e5b05", "date_shot": "2025-08-02T09:44:06.9323595+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": "307bb23f-fc42-465e-91ad-2a5f538ce4d1", "golds": 5, "hits": 6, "location": "sample string 7", "notes": "sample string 8", "qualifying": true, "record_qualifying": true, "record_status": true, "round_id": "96ff526d-c852-42f1-989c-be0119b82fe9", "score": 13, "status": 1, "user_1": "sample string 14", "user_2": "sample string 15", "Xs": 16 }
multipart/form-data
{"age_group_id":"172ec53a-cfa0-49c0-ad56-553007587f6f","class_id":"bda2599e-e49b-4f56-b41b-042bc83e5b05","date_shot":"2025-08-02T09:44:06.9323595+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":"307bb23f-fc42-465e-91ad-2a5f538ce4d1","golds":5,"hits":6,"location":"sample string 7","notes":"sample string 8","qualifying":true,"record_qualifying":true,"record_status":true,"round_id":"96ff526d-c852-42f1-989c-be0119b82fe9","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>172ec53a-cfa0-49c0-ad56-553007587f6f</age_group_id> <class_id>bda2599e-e49b-4f56-b41b-042bc83e5b05</class_id> <date_shot>2025-08-02T09:44:06.9323595+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>307bb23f-fc42-465e-91ad-2a5f538ce4d1</member_id> <notes>sample string 8</notes> <qualifying>true</qualifying> <record_qualifying>true</record_qualifying> <record_status>true</record_status> <round_id>96ff526d-c852-42f1-989c-be0119b82fe9</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. |