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
ScoreDetails| Name | 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": "eb4e259e-8bba-429d-b3a3-8f7c35284582",
"class_id": "79b89bff-7d2a-4be3-bace-09cbce399a2c",
"date_shot": "2025-12-20T22:42:40.8132507+00: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": "6d61313b-1a98-4e84-be62-73435d14e758",
"golds": 5,
"hits": 6,
"location": "sample string 7",
"notes": "sample string 8",
"qualifying": true,
"record_qualifying": true,
"record_status": true,
"round_id": "d9f672cb-a6f2-42af-851a-001470bb3538",
"score": 13,
"status": 1,
"user_1": "sample string 14",
"user_2": "sample string 15",
"Xs": 16
}
multipart/form-data
{"age_group_id":"eb4e259e-8bba-429d-b3a3-8f7c35284582","class_id":"79b89bff-7d2a-4be3-bace-09cbce399a2c","date_shot":"2025-12-20T22:42:40.8132507+00: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":"6d61313b-1a98-4e84-be62-73435d14e758","golds":5,"hits":6,"location":"sample string 7","notes":"sample string 8","qualifying":true,"record_qualifying":true,"record_status":true,"round_id":"d9f672cb-a6f2-42af-851a-001470bb3538","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>eb4e259e-8bba-429d-b3a3-8f7c35284582</age_group_id>
<class_id>79b89bff-7d2a-4be3-bace-09cbce399a2c</class_id>
<date_shot>2025-12-20T22:42:40.8132507+00: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>6d61313b-1a98-4e84-be62-73435d14e758</member_id>
<notes>sample string 8</notes>
<qualifying>true</qualifying>
<record_qualifying>true</record_qualifying>
<record_status>true</record_status>
<round_id>d9f672cb-a6f2-42af-851a-001470bb3538</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
HttpResponseMessage| Name | 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. |