POST BrandGroups

Request Information

URI Parameters

None.

Body Parameters

BrandGroupLiteModel
NameDescriptionTypeAdditional information
Name

string

Required

String length: inclusive between 4 and 64

Owner

string

Required

String length: inclusive between 2 and 64

OwnerType

BrandGroupOwnerType

Required

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Owner": "sample string 2",
  "OwnerType": 1
}

text/html

Sample:
{"Name":"sample string 1","Owner":"sample string 2","OwnerType":1}

application/xml, text/xml

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

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

application/bson

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

Response Information

Resource Description

AddBrandGroupResult
NameDescriptionTypeAdditional information
BrandGroupID

integer

None.

Succeeded

boolean

None.

Errors

Collection of string

None.

ErrorCode

APIErrorCodes

None.

Response Formats

application/json, text/json

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

text/html

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

application/bson

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