PUT v1/publicsites/{id}

This method requires authentication.

Update an existing PublicSite.

Request Information

Parameters

NameDescriptionAdditional information
id ID of PublicSite to update.

Define this parameter in the request URI.

resource PublicSite resource.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "publicSite": {
    "id": 1,
    "siteName": "sample string 2",
    "logo": 1,
    "includeInIndex": true,
    "galleryTitle": "sample string 4",
    "gallerySavedSearch": 1,
    "siteGalleries": [
      1,
      2,
      3
    ],
    "carouselSavedSearch": 1,
    "aboutPageDescription": "sample string 5",
    "aboutPageShortDescription": "sample string 6",
    "customColor1": "sample string 7",
    "customColor2": "sample string 8",
    "customColor3": "sample string 9",
    "customColor4": "sample string 10",
    "twitterUrl": "sample string 11",
    "facebookUrl": "sample string 12",
    "blogUrl": "sample string 13",
    "contactPhone": "sample string 14",
    "contactEmail": "sample string 15",
    "squareLogo": 1
  }
}

application/xml, text/xml

Sample:
<Resources xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CablecastAPI.DTOs">
  <PublicSite>
    <AboutPageDescription>sample string 5</AboutPageDescription>
    <AboutPageShortDescription>sample string 6</AboutPageShortDescription>
    <BlogUrl>sample string 13</BlogUrl>
    <CarouselSavedSearch>1</CarouselSavedSearch>
    <ContactEmail>sample string 15</ContactEmail>
    <ContactPhone>sample string 14</ContactPhone>
    <CustomColor1>sample string 7</CustomColor1>
    <CustomColor2>sample string 8</CustomColor2>
    <CustomColor3>sample string 9</CustomColor3>
    <CustomColor4>sample string 10</CustomColor4>
    <FacebookUrl>sample string 12</FacebookUrl>
    <GallerySavedSearch>1</GallerySavedSearch>
    <GalleryTitle>sample string 4</GalleryTitle>
    <Id>1</Id>
    <IncludeInIndex>true</IncludeInIndex>
    <Logo>1</Logo>
    <SiteGalleries xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
      <d3p1:int>3</d3p1:int>
    </SiteGalleries>
    <SiteName>sample string 2</SiteName>
    <SquareLogo>1</SquareLogo>
    <TwitterUrl>sample string 11</TwitterUrl>
  </PublicSite>
</Resources>