POST Brands/SiteSettings/PageTypes

Add/Create a new page type.

Request Information

URI Parameters

None.

Body Parameters

InputPageTypeModel
NameDescriptionTypeAdditional information
Name

string

Required

Max length: 48

Min length: 1

String length: inclusive between 0 and 48

Description

string

Max length: 256

Min length: 1

String length: inclusive between 0 and 256

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Description": "sample string 2"
}

text/html

Sample:
{"Name":"sample string 1","Description":"sample string 2"}

application/xml, text/xml

Sample:
<InputPageTypeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.BrandStore.SiteSettings">
  <Description>sample string 2</Description>
  <Name>sample string 1</Name>
</InputPageTypeModel>

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

application/bson

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

Response Information

Resource Description

OutputPageTypeModel
NameDescriptionTypeAdditional information
PageTypeID

byte

None.

Name

string

Required

Max length: 48

Min length: 1

String length: inclusive between 0 and 48

Description

string

Max length: 256

Min length: 1

String length: inclusive between 0 and 256

Response Formats

application/json, text/json

Sample:
{
  "PageTypeID": 64,
  "Name": "sample string 2",
  "Description": "sample string 3"
}

text/html

Sample:
{"PageTypeID":64,"Name":"sample string 2","Description":"sample string 3"}

application/xml, text/xml

Sample:
<OutputPageTypeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.BrandStore.SiteSettings">
  <Description>sample string 3</Description>
  <Name>sample string 2</Name>
  <PageTypeID>64</PageTypeID>
</OutputPageTypeModel>

application/bson

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