POST api/rounds
Adds a round to the master list.
Request Information
URI Parameters
None.
Body Parameters
RoundDetails| Name | 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": "295cedd3-54b9-49b1-ae68-8a12de5756e3"
}
multipart/form-data
Sample:
{"active":true,"archived":true,"lookup":"sample string 3","max_score":4,"round":"sample string 5","type_id":"295cedd3-54b9-49b1-ae68-8a12de5756e3"}
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>295cedd3-54b9-49b1-ae68-8a12de5756e3</type_id> </RoundDetails>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | 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. |