POST Brands/{brandID}/Countries

Add Countries to the given Brand ID

Request Information

URI Parameters

NameDescriptionTypeAdditional information
brandID

Brand ID

integer

Required

Body Parameters

Model contains CountryISOCode, MinRegistrationAge, MaxRegistrationAge and Properties

Collection of BaseBrandCountryModel
NameDescriptionTypeAdditional information
CountryID

integer

None.

MinRegistrationAge

byte

Required

Range: inclusive between 0 and 124

MaxRegistrationAge

byte

Required

Range: inclusive between 1 and 125

IsIncentiveInPoints

boolean

None.

StudyTypeExclusionTimeInDays

integer

None.

IsNewUserRegistrationAllowed

boolean

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "CountryID": 1,
    "MinRegistrationAge": 64,
    "MaxRegistrationAge": 64,
    "IsIncentiveInPoints": true,
    "StudyTypeExclusionTimeInDays": 5,
    "IsNewUserRegistrationAllowed": true
  },
  {
    "CountryID": 1,
    "MinRegistrationAge": 64,
    "MaxRegistrationAge": 64,
    "IsIncentiveInPoints": true,
    "StudyTypeExclusionTimeInDays": 5,
    "IsNewUserRegistrationAllowed": true
  }
]

text/html

Sample:
[{"CountryID":1,"MinRegistrationAge":64,"MaxRegistrationAge":64,"IsIncentiveInPoints":true,"StudyTypeExclusionTimeInDays":5,"IsNewUserRegistrationAllowed":true},{"CountryID":1,"MinRegistrationAge":64,"MaxRegistrationAge":64,"IsIncentiveInPoints":true,"StudyTypeExclusionTimeInDays":5,"IsNewUserRegistrationAllowed":true}]

application/xml, text/xml

Sample:
<ArrayOfBaseBrandCountryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.BrandStore.Country">
  <BaseBrandCountryModel>
    <CountryID>1</CountryID>
    <IsIncentiveInPoints>true</IsIncentiveInPoints>
    <IsNewUserRegistrationAllowed>true</IsNewUserRegistrationAllowed>
    <MaxRegistrationAge>64</MaxRegistrationAge>
    <MinRegistrationAge>64</MinRegistrationAge>
    <StudyTypeExclusionTimeInDays>5</StudyTypeExclusionTimeInDays>
  </BaseBrandCountryModel>
  <BaseBrandCountryModel>
    <CountryID>1</CountryID>
    <IsIncentiveInPoints>true</IsIncentiveInPoints>
    <IsNewUserRegistrationAllowed>true</IsNewUserRegistrationAllowed>
    <MaxRegistrationAge>64</MaxRegistrationAge>
    <MinRegistrationAge>64</MinRegistrationAge>
    <StudyTypeExclusionTimeInDays>5</StudyTypeExclusionTimeInDays>
  </BaseBrandCountryModel>
</ArrayOfBaseBrandCountryModel>

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

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.