POST Brands/SiteSettings

Adds/create a site setting.

Request Information

URI Parameters

None.

Body Parameters

InputSiteSettingModel
NameDescriptionTypeAdditional information
Identifier

string

Required

Max length: 96

Min length: 1

String length: inclusive between 0 and 96

SiteName

string

None.

URL

string

None.

SiteType

SiteType

Required

IsColorSchemeFallbackEnabled

boolean

Required

IsThemeFallbackEnabled

boolean

Required

DefaultOverrideByTemplateValue

boolean

Required

Request Formats

application/json, text/json

Sample:
{
  "Identifier": "sample string 1",
  "SiteName": "sample string 2",
  "URL": "sample string 3",
  "SiteType": 1,
  "IsColorSchemeFallbackEnabled": true,
  "IsThemeFallbackEnabled": true,
  "DefaultOverrideByTemplateValue": true
}

text/html

Sample:
{"Identifier":"sample string 1","SiteName":"sample string 2","URL":"sample string 3","SiteType":1,"IsColorSchemeFallbackEnabled":true,"IsThemeFallbackEnabled":true,"DefaultOverrideByTemplateValue":true}

application/xml, text/xml

Sample:
<InputSiteSettingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.BrandStore.SiteSettings">
  <DefaultOverrideByTemplateValue>true</DefaultOverrideByTemplateValue>
  <IsColorSchemeFallbackEnabled>true</IsColorSchemeFallbackEnabled>
  <IsThemeFallbackEnabled>true</IsThemeFallbackEnabled>
  <SiteName>sample string 2</SiteName>
  <SiteType>NGChannel</SiteType>
  <URL>sample string 3</URL>
  <Identifier>sample string 1</Identifier>
</InputSiteSettingModel>

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 'InputSiteSettingModel'.

application/bson

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

Response Information

Resource Description

OutputSiteSettingModel
NameDescriptionTypeAdditional information
SiteSettingID

integer

None.

SitePages

Collection of OutputSitePageModel

None.

Identifier

string

Required

Max length: 96

Min length: 1

String length: inclusive between 0 and 96

SiteName

string

None.

URL

string

None.

SiteType

SiteType

Required

IsColorSchemeFallbackEnabled

boolean

Required

IsThemeFallbackEnabled

boolean

Required

DefaultOverrideByTemplateValue

boolean

Required

Response Formats

application/json, text/json

Sample:
{
  "SiteSettingID": 1,
  "SitePages": [
    {
      "SitePageID": 1,
      "SiteSettingID": 2,
      "Identifier": "sample string 3",
      "PageName": "sample string 4",
      "PageTypeID": 64,
      "PageTemplate": "sample string 6",
      "TemplateCanBeChanged": true,
      "IsPreviewable": true,
      "IsSupportCustomizingFallbackToDefault": true,
      "IsFallbackToDefaultInCaseUndefined": true
    },
    {
      "SitePageID": 1,
      "SiteSettingID": 2,
      "Identifier": "sample string 3",
      "PageName": "sample string 4",
      "PageTypeID": 64,
      "PageTemplate": "sample string 6",
      "TemplateCanBeChanged": true,
      "IsPreviewable": true,
      "IsSupportCustomizingFallbackToDefault": true,
      "IsFallbackToDefaultInCaseUndefined": true
    }
  ],
  "Identifier": "sample string 2",
  "SiteName": "sample string 3",
  "URL": "sample string 4",
  "SiteType": 1,
  "IsColorSchemeFallbackEnabled": true,
  "IsThemeFallbackEnabled": true,
  "DefaultOverrideByTemplateValue": true
}

text/html

Sample:
{"SiteSettingID":1,"SitePages":[{"SitePageID":1,"SiteSettingID":2,"Identifier":"sample string 3","PageName":"sample string 4","PageTypeID":64,"PageTemplate":"sample string 6","TemplateCanBeChanged":true,"IsPreviewable":true,"IsSupportCustomizingFallbackToDefault":true,"IsFallbackToDefaultInCaseUndefined":true},{"SitePageID":1,"SiteSettingID":2,"Identifier":"sample string 3","PageName":"sample string 4","PageTypeID":64,"PageTemplate":"sample string 6","TemplateCanBeChanged":true,"IsPreviewable":true,"IsSupportCustomizingFallbackToDefault":true,"IsFallbackToDefaultInCaseUndefined":true}],"Identifier":"sample string 2","SiteName":"sample string 3","URL":"sample string 4","SiteType":1,"IsColorSchemeFallbackEnabled":true,"IsThemeFallbackEnabled":true,"DefaultOverrideByTemplateValue":true}

application/xml, text/xml

Sample:
<OutputSiteSettingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.BrandStore.SiteSettings">
  <DefaultOverrideByTemplateValue>true</DefaultOverrideByTemplateValue>
  <IsColorSchemeFallbackEnabled>true</IsColorSchemeFallbackEnabled>
  <IsThemeFallbackEnabled>true</IsThemeFallbackEnabled>
  <SiteName>sample string 3</SiteName>
  <SiteType>NGChannel</SiteType>
  <URL>sample string 4</URL>
  <Identifier>sample string 2</Identifier>
  <SitePages>
    <OutputSitePageModel>
      <IsFallbackToDefaultInCaseUndefined>true</IsFallbackToDefaultInCaseUndefined>
      <IsPreviewable>true</IsPreviewable>
      <IsSupportCustomizingFallbackToDefault>true</IsSupportCustomizingFallbackToDefault>
      <PageName>sample string 4</PageName>
      <PageTemplate>sample string 6</PageTemplate>
      <PageTypeID>64</PageTypeID>
      <TemplateCanBeChanged>true</TemplateCanBeChanged>
      <Identifier>sample string 3</Identifier>
      <SiteSettingID>2</SiteSettingID>
      <SitePageID>1</SitePageID>
    </OutputSitePageModel>
    <OutputSitePageModel>
      <IsFallbackToDefaultInCaseUndefined>true</IsFallbackToDefaultInCaseUndefined>
      <IsPreviewable>true</IsPreviewable>
      <IsSupportCustomizingFallbackToDefault>true</IsSupportCustomizingFallbackToDefault>
      <PageName>sample string 4</PageName>
      <PageTemplate>sample string 6</PageTemplate>
      <PageTypeID>64</PageTypeID>
      <TemplateCanBeChanged>true</TemplateCanBeChanged>
      <Identifier>sample string 3</Identifier>
      <SiteSettingID>2</SiteSettingID>
      <SitePageID>1</SitePageID>
    </OutputSitePageModel>
  </SitePages>
  <SiteSettingID>1</SiteSettingID>
</OutputSiteSettingModel>

application/bson

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