POST api/rounds
Adds a round to the master list.
Request Information
URI Parameters
None.
Body Parameters
RoundDetailsName | Description | Type | Additional information |
---|---|---|---|
active |
Sets if the round is active. |
boolean |
None. |
archived |
Sets if the round is archived. |
boolean |
None. |
lookup |
Sets the lookup value. (UK relevance only) |
string |
None. |
max_score |
Sets the maximum possible score. Enter 0 to ignore |
integer |
Required |
round |
Sets the round name. |
string |
Required |
type_id |
Sets the identifier of the round type. |
globally unique identifier |
Required |
Request Formats
application/json, text/json
Sample:
{ "active": true, "archived": true, "lookup": "sample string 3", "max_score": 4, "round": "sample string 5", "type_id": "01048eee-b0d8-48d3-b6e2-44bf6fd42dab" }
multipart/form-data
Sample:
{"active":true,"archived":true,"lookup":"sample string 3","max_score":4,"round":"sample string 5","type_id":"01048eee-b0d8-48d3-b6e2-44bf6fd42dab"}
application/xml, text/xml
Sample:
<RoundDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Archery_Records_API"> <active>true</active> <archived>true</archived> <lookup>sample string 3</lookup> <max_score>4</max_score> <round>sample string 5</round> <type_id>01048eee-b0d8-48d3-b6e2-44bf6fd42dab</type_id> </RoundDetails>
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. |