PUT api/scores?record_id={record_id}
Updates a score record in the database given the unique id of the score record
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
record_id | globally unique identifier |
Required |
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": "16405b42-99a0-4fce-ab1f-58fb3c7805b1", "category_id": "23a18b10-8b58-4f93-b4c5-3fbfdba9ea35", "class_id": "e05c24c5-faed-4d25-8778-69b9ad317e77", "date_shot": "2024-12-24T13:47:59.9280393+00:00", "golds": 5, "hits": 6, "location": "sample string 7", "qualifying": true, "record_qualifying": true, "record_status": true, "round_id": "b4cba518-1a2b-4f3b-80e2-63a4f9fd60aa", "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>16405b42-99a0-4fce-ab1f-58fb3c7805b1</archer_id> <category_id>23a18b10-8b58-4f93-b4c5-3fbfdba9ea35</category_id> <class_id>e05c24c5-faed-4d25-8778-69b9ad317e77</class_id> <date_shot>2024-12-24T13:47:59.9280393+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>b4cba518-1a2b-4f3b-80e2-63a4f9fd60aa</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. |