PUT api/Site?sessionId={sessionId}

Updates an existing site

Request Information

URI Parameters

NameDescriptionTypeAdditional information
sessionId

string

Required

Body Parameters

APISite
NameDescriptionTypeAdditional information
Id

Unique identifier

integer

None.

PublisherId

Unique identifier of publisher to which this belongs

integer

None.

State

Status: Active, Closed or Suspended

string

None.

Name

Textual identifier

string

None.

URL

URL of site

string

None.

MakeURLVisibleToThirdParty

Denotes that URL should be visible to third parties

boolean

None.

Language

Default accept language string for site

string

None.

ImpressionCount

Statistics impression count

integer

None.

ClickCount

Statistics click count

integer

None.

Spent

Statistics spent

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "publisherId": 2,
  "state": "sample string 3",
  "name": "sample string 4",
  "url": "sample string 5",
  "makeURLVisibleToThirdParty": true,
  "language": "sample string 6",
  "impressionCount": 1,
  "clickCount": 1,
  "spent": 1.1
}

application/xml, text/xml

Sample:
<APISite xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Rochester.Models">
  <ClickCount>1</ClickCount>
  <Id>1</Id>
  <ImpressionCount>1</ImpressionCount>
  <Language>sample string 6</Language>
  <MakeURLVisibleToThirdParty>true</MakeURLVisibleToThirdParty>
  <Name>sample string 4</Name>
  <PublisherId>2</PublisherId>
  <Spent>1.1</Spent>
  <State>sample string 3</State>
  <URL>sample string 5</URL>
</APISite>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.