POST v1/categories

This method requires authentication.

Creates a new Category.

Request Information

Parameters

NameDescriptionAdditional information
resource The new 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>