PUT v1/categories/{id}

This method requires authentication.

Updates an existing Category.

Request Information

Parameters

NameDescriptionAdditional information
id ID of Category to update

Define this parameter in the request URI.

resource Updated Category

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "category": {
    "id": 1,
    "location": 2,
    "name": "sample string 3"
  }
}

application/xml, text/xml

Sample:
<Resources xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CablecastAPI.DTOs">
  <Category>
    <Id>1</Id>
    <Location>2</Location>
    <Name>sample string 3</Name>
  </Category>
</Resources>