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": "2024-11-28T08:33:40.1845369+00:00", "location": "sample string 2", "score": 3, "hits": 4, "golds": 5, "tens": 6, "record_status": true, "qualifying": true, "class_id": "a9250ca4-a64a-41b0-abd9-9dedc4b987eb", "category_id": "17f564ae-d14a-4db5-94ba-1f53a003d3cd", "round_id": "49926354-f7e0-4c1c-9643-30d2de678de6", "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>17f564ae-d14a-4db5-94ba-1f53a003d3cd</category_id> <class_id>a9250ca4-a64a-41b0-abd9-9dedc4b987eb</class_id> <date_shot>2024-11-28T08:33:40.1845369+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>49926354-f7e0-4c1c-9643-30d2de678de6</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>17f564ae-d14a-4db5-94ba-1f53a003d3cd</category_id><class_id>a9250ca4-a64a-41b0-abd9-9dedc4b987eb</class_id><date_shot>2024-11-28T08:33:40.1845369+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>49926354-f7e0-4c1c-9643-30d2de678de6</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. |