POST Brands/BrandSiteSettings

Add/Associate site settings to a brand

Request Information

URI Parameters

None.

Body Parameters

InputBrandSiteSettingModel
NameDescriptionTypeAdditional information
BrandID

integer

Required

SiteSettingIDs

Collection of integer

Required

Request Formats

application/json, text/json

Sample:
{
  "BrandID": 1,
  "SiteSettingIDs": [
    1,
    2
  ]
}

text/html

Sample:
{"BrandID":1,"SiteSettingIDs":[1,2]}

application/xml, text/xml

Sample:
<InputBrandSiteSettingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.BrandStore.SiteSettings">
  <BrandID>1</BrandID>
  <SiteSettingIDs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:short>1</d2p1:short>
    <d2p1:short>2</d2p1:short>
  </SiteSettingIDs>
</InputBrandSiteSettingModel>

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

application/bson

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

Response Information

Resource Description

OutputBrandSiteSettingModel
NameDescriptionTypeAdditional information
BrandID

integer

None.

SiteSettings

Collection of OutputSiteSettingModel

None.

Response Formats

application/json, text/json

Sample:
{
  "BrandID": 1,
  "SiteSettings": [
    {
      "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
    },
    {
      "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:
{"BrandID":1,"SiteSettings":[{"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},{"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:
<OutputBrandSiteSettingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.BrandStore.SiteSettings">
  <BrandID>1</BrandID>
  <SiteSettings>
    <OutputSiteSettingModel>
      <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>
    <OutputSiteSettingModel>
      <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>
  </SiteSettings>
</OutputBrandSiteSettingModel>

application/bson

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