POST api/PublisherCategory?sessionId={sessionId}

Creates a new publisher category

Request Information

URI Parameters

NameDescriptionTypeAdditional information
sessionId

string

Required

Body Parameters

APIPublisherCategory
NameDescriptionTypeAdditional information
Id

Unique identifier

integer

None.

PublisherId

Unique identifier of publisher to which this belongs

integer

None.

CategoryId

Unique identifier of category to which this relates

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "publisherId": 2,
  "categoryId": 3
}

application/xml, text/xml

Sample:
<APIPublisherCategory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Rochester.Models">
  <CategoryId>3</CategoryId>
  <Id>1</Id>
  <PublisherId>2</PublisherId>
</APIPublisherCategory>

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>