PUT api/categories?category_id={category_id}

Updates a category in the database given the category_id of the category

Request Information

URI Parameters

NameDescriptionTypeAdditional information
category_id

globally unique identifier

Required

Body Parameters

CategoryData
NameDescriptionTypeAdditional information
age

integer

Range: inclusive between 1 and 999

category

string

Required

gender

string

Required

junior

boolean

Required

lookup

string

None.

Request Formats

application/json, text/json

Sample:
{
  "age": 1,
  "category": "sample string 2",
  "gender": "sample string 3",
  "junior": true,
  "lookup": "sample string 5"
}

application/xml, text/xml

Sample:
<CategoryData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Archery_Records_API">
  <age>1</age>
  <category>sample string 2</category>
  <gender>sample string 3</gender>
  <junior>true</junior>
  <lookup>sample string 5</lookup>
</CategoryData>

application/x-www-form-urlencoded

Sample:

Sample not available.

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.