PUT Brands/SiteSettings/SitePages

Update a site page.

Request Information

URI Parameters

None.

Body Parameters

UpdateSitePageModel
NameDescriptionTypeAdditional information
SitePageID

integer

Required

SiteSettingID

integer

Required

PageName

string

None.

PageTypeID

byte

Required

PageTemplate

string

Required

Max length: 56

Min length: 1

String length: inclusive between 0 and 56

TemplateCanBeChanged

boolean

Required

IsPreviewable

boolean

Required

IsSupportCustomizingFallbackToDefault

boolean

Required

IsFallbackToDefaultInCaseUndefined

boolean

Required

Request Formats

application/json, text/json

Sample:
{
  "SitePageID": 1,
  "SiteSettingID": 2,
  "PageName": "sample string 3",
  "PageTypeID": 64,
  "PageTemplate": "sample string 5",
  "TemplateCanBeChanged": true,
  "IsPreviewable": true,
  "IsSupportCustomizingFallbackToDefault": true,
  "IsFallbackToDefaultInCaseUndefined": true
}

text/html

Sample:
{"SitePageID":1,"SiteSettingID":2,"PageName":"sample string 3","PageTypeID":64,"PageTemplate":"sample string 5","TemplateCanBeChanged":true,"IsPreviewable":true,"IsSupportCustomizingFallbackToDefault":true,"IsFallbackToDefaultInCaseUndefined":true}

application/xml, text/xml

Sample:
<UpdateSitePageModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.BrandStore.SiteSettings">
  <IsFallbackToDefaultInCaseUndefined>true</IsFallbackToDefaultInCaseUndefined>
  <IsPreviewable>true</IsPreviewable>
  <IsSupportCustomizingFallbackToDefault>true</IsSupportCustomizingFallbackToDefault>
  <PageName>sample string 3</PageName>
  <PageTemplate>sample string 5</PageTemplate>
  <PageTypeID>64</PageTypeID>
  <TemplateCanBeChanged>true</TemplateCanBeChanged>
  <SitePageID>1</SitePageID>
  <SiteSettingID>2</SiteSettingID>
</UpdateSitePageModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'UpdateSitePageModel'.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

OkResult
NameDescriptionTypeAdditional information
Request

HttpRequestMessage

None.

Response Formats

application/json, text/json, text/html

Sample:

Sample not available.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.