PUT api/scores?recordId={recordId}
Updates a score record in the database given the unique id of the score record
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
recordId | globally unique identifier |
Required |
Body Parameters
ScoreDetailsName | Description | Type | Additional information |
---|---|---|---|
date_shot | date |
None. |
|
location | string |
None. |
|
score | integer |
None. |
|
hits | integer |
None. |
|
golds | integer |
None. |
|
tens | integer |
None. |
|
record_status | boolean |
None. |
|
qualifying | boolean |
None. |
|
class_id | globally unique identifier |
None. |
|
category_id | globally unique identifier |
None. |
|
round_id | globally unique identifier |
None. |
|
user_1 | string |
None. |
|
user_2 | string |
None. |
|
status | string |
None. |
|
notes | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "date_shot": "2025-01-18T03:45:37.7431309+00:00", "location": "sample string 2", "score": 3, "hits": 4, "golds": 5, "tens": 6, "record_status": true, "qualifying": true, "class_id": "dc1b323d-aebd-4865-a085-80f324e6c192", "category_id": "f3e2a88d-7c1f-45a9-827c-480dda9d3817", "round_id": "579f6da5-5a36-4cdf-aad2-1851cbc1f2fd", "user_1": "sample string 12", "user_2": "sample string 13", "status": "sample string 14", "notes": "sample string 15" }
application/xml, text/xml
Sample:
<ScoreDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Golden_Records_App.Models"> <category_id>f3e2a88d-7c1f-45a9-827c-480dda9d3817</category_id> <class_id>dc1b323d-aebd-4865-a085-80f324e6c192</class_id> <date_shot>2025-01-18T03:45:37.7431309+00:00</date_shot> <golds>5</golds> <hits>4</hits> <location>sample string 2</location> <notes>sample string 15</notes> <qualifying>true</qualifying> <record_status>true</record_status> <round_id>579f6da5-5a36-4cdf-aad2-1851cbc1f2fd</round_id> <score>3</score> <status>sample string 14</status> <tens>6</tens> <user_1>sample string 12</user_1> <user_2>sample string 13</user_2> </ScoreDetails>
multipart/form-data
Sample:
<ScoreDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Golden_Records_App.Models"><category_id>f3e2a88d-7c1f-45a9-827c-480dda9d3817</category_id><class_id>dc1b323d-aebd-4865-a085-80f324e6c192</class_id><date_shot>2025-01-18T03:45:37.7431309+00:00</date_shot><golds>5</golds><hits>4</hits><location>sample string 2</location><notes>sample string 15</notes><qualifying>true</qualifying><record_status>true</record_status><round_id>579f6da5-5a36-4cdf-aad2-1851cbc1f2fd</round_id><score>3</score><status>sample string 14</status><tens>6</tens><user_1>sample string 12</user_1><user_2>sample string 13</user_2></ScoreDetails>
application/x-www-form-urlencoded
Sample:
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. |