POST api/age-groups
Adds an age group to the master list.
Request Information
URI Parameters
None.
Body Parameters
AgeGroupDetails| Name | Description | Type | Additional information |
|---|---|---|---|
| active |
Sets if the age group is active. |
boolean |
None. |
| age |
Sets the maximum age. Eg set 15 for Under 16 |
integer |
Range: inclusive between 1 and 999 |
| age_group |
Sets the age group name. |
string |
Required |
| archived |
Sets if the age group is archived. |
boolean |
None. |
| gender |
Sets the age group gender. Use either M or F |
string |
Required |
| junior |
Sets if the age group is junior (Under 18). |
boolean |
Required |
| lookup |
Sets the lookup value to connect with handicap and classification tables. UK relevance only |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"active": true,
"age": 2,
"age_group": "sample string 3",
"archived": true,
"gender": "sample string 5",
"junior": true,
"lookup": "sample string 7"
}
multipart/form-data
Sample:
{"active":true,"age":2,"age_group":"sample string 3","archived":true,"gender":"sample string 5","junior":true,"lookup":"sample string 7"}
application/xml, text/xml
Sample:
<AgeGroupDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Archery_Records_API"> <active>true</active> <age>2</age> <age_group>sample string 3</age_group> <archived>true</archived> <gender>sample string 5</gender> <junior>true</junior> <lookup>sample string 7</lookup> </AgeGroupDetails>
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. |