POST Brands/{brandID}/Countries/{countryID}/Cultures

Adds cultures supported for a Brand Country

Request Information

URI Parameters

NameDescriptionTypeAdditional information
brandID

integer

Required

countryID

integer

Required

Body Parameters

Collection of InputBrandCountryCultureModel
NameDescriptionTypeAdditional information
CultureID

integer

Required

IsNewUserRegistrationAllowed

boolean

None.

IsBrowserDetectionAllowed

boolean

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "CultureID": 1,
    "IsNewUserRegistrationAllowed": true,
    "IsBrowserDetectionAllowed": true
  },
  {
    "CultureID": 1,
    "IsNewUserRegistrationAllowed": true,
    "IsBrowserDetectionAllowed": true
  }
]

text/html

Sample:
[{"CultureID":1,"IsNewUserRegistrationAllowed":true,"IsBrowserDetectionAllowed":true},{"CultureID":1,"IsNewUserRegistrationAllowed":true,"IsBrowserDetectionAllowed":true}]

application/xml, text/xml

Sample:
<ArrayOfInputBrandCountryCultureModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.BrandStore.Culture">
  <InputBrandCountryCultureModel>
    <CultureID>1</CultureID>
    <IsBrowserDetectionAllowed>true</IsBrowserDetectionAllowed>
    <IsNewUserRegistrationAllowed>true</IsNewUserRegistrationAllowed>
  </InputBrandCountryCultureModel>
  <InputBrandCountryCultureModel>
    <CultureID>1</CultureID>
    <IsBrowserDetectionAllowed>true</IsBrowserDetectionAllowed>
    <IsNewUserRegistrationAllowed>true</IsNewUserRegistrationAllowed>
  </InputBrandCountryCultureModel>
</ArrayOfInputBrandCountryCultureModel>

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 'List`1'.

application/bson

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

Response Information

Resource Description

BrandStoreResult
NameDescriptionTypeAdditional information
Succeeded

boolean

None.

Errors

Collection of string

None.

ErrorCode

APIErrorCodes

None.

Response Formats

application/json, text/json

Sample:
{
  "ErrorCode": 0,
  "Succeeded": true,
  "Errors": [
    "sample string 1",
    "sample string 2"
  ]
}

text/html

Sample:
{"ErrorCode":0,"Succeeded":true,"Errors":["sample string 1","sample string 2"]}

application/bson

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