PUT api/Meta?metaId={metaId}

Updates specific meta associated with a specified score record. The score record is defined by recordid and the meta values by meta id

Request Information

URI Parameters

NameDescriptionTypeAdditional information
metaId

globally unique identifier

Required

Body Parameters

MetaDetails
NameDescriptionTypeAdditional information
record_id

globally unique identifier

None.

score

integer

None.

hits

integer

None.

golds

integer

None.

tens

integer

None.

Xs

integer

None.

distance

string

None.

sight_mark

string

None.

arrows

string

None.

bow

string

None.

notes

string

None.

face

string

None.

scoresheet

string

None.

Request Formats

application/json, text/json

Sample:
{
  "record_id": "cd59694d-7879-48ad-a2fe-30bdc29ba360",
  "score": 2,
  "hits": 3,
  "golds": 4,
  "tens": 5,
  "Xs": 6,
  "distance": "sample string 7",
  "sight_mark": "sample string 8",
  "arrows": "sample string 9",
  "bow": "sample string 10",
  "notes": "sample string 11",
  "face": "sample string 12",
  "scoresheet": "sample string 13"
}

application/xml, text/xml

Sample:
<MetaDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Golden_Records_App.Models">
  <Xs>6</Xs>
  <arrows>sample string 9</arrows>
  <bow>sample string 10</bow>
  <distance>sample string 7</distance>
  <face>sample string 12</face>
  <golds>4</golds>
  <hits>3</hits>
  <notes>sample string 11</notes>
  <record_id>cd59694d-7879-48ad-a2fe-30bdc29ba360</record_id>
  <score>2</score>
  <scoresheet>sample string 13</scoresheet>
  <sight_mark>sample string 8</sight_mark>
  <tens>5</tens>
</MetaDetails>

multipart/form-data

Sample:
<MetaDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Golden_Records_App.Models"><Xs>6</Xs><arrows>sample string 9</arrows><bow>sample string 10</bow><distance>sample string 7</distance><face>sample string 12</face><golds>4</golds><hits>3</hits><notes>sample string 11</notes><record_id>cd59694d-7879-48ad-a2fe-30bdc29ba360</record_id><score>2</score><scoresheet>sample string 13</scoresheet><sight_mark>sample string 8</sight_mark><tens>5</tens></MetaDetails>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'MetaDetails'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.