POST api/Category?sessionId={sessionId}

Creates a new category

Request Information

URI Parameters

NameDescriptionTypeAdditional information
sessionId

string

Required

Body Parameters

APICategory
NameDescriptionTypeAdditional information
Id

Unique identifier

integer

None.

ParentId

Unique identifier of parental category to which this belongs

integer

None.

Type

Type of category: Location, Browser, Device, DeviceType, Carrier, Connection or OperatingSystem

string

None.

Group

Denotes a category used as a market such as a target market derived from location

boolean

None.

Name

Textual identifier

string

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "parentId": 1,
  "type": "sample string 2",
  "group": true,
  "name": "sample string 3"
}

application/xml, text/xml

Sample:
<APICategory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Rochester.Models">
  <Group>true</Group>
  <Id>1</Id>
  <Name>sample string 3</Name>
  <ParentId>1</ParentId>
  <Type>sample string 2</Type>
</APICategory>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>