POST api/article/add/sourceVariant/{styleId}

IMPORTANT! use the parameterconfig you get from GET: /api/article/parameterconfig to ensure that you are using the correct style property for the correct type of information(season, brand, ect.).

Request Information

URI Parameters

NameDescriptionTypeAdditional information
styleId

integer

Required

Body Parameters

PublicAPI.Models.VariantUpsertModel
NameDescriptionTypeAdditional information
EAN

Can not be updated at the moment and will be ignored in a update function.

string

Matching regular expression pattern: ^[0-9]*$

Max length: 13

VariantParameter1

Contains variant information(size, color etc.). See api/article/parameterconfig to find out what goes where

string

Max length: 30

VariantParameter2

Contains variant information(size, color etc.). See api/article/parameterconfig to find out what goes where

string

Max length: 30

VariantParameter3

Contains variant information(size, color etc.). See api/article/parameterconfig to find out what goes where

string

Max length: 30

VariantParameter4

Contains variant information(size, color etc.). See api/article/parameterconfig to find out what goes where

string

Max length: 30

VariantParameter5

Contains variant information(size, color etc.). See api/article/parameterconfig to find out what goes where

string

Max length: 30

SalesPrice

The sales price

decimal number

Range: inclusive between 0 and 999999999,99

CostPrice

The cost price

decimal number

Range: inclusive between 0 and 999999999,99

Request Formats

application/json, text/json

Sample:
{
  "EAN": "sample string 1",
  "VariantParameter1": "sample string 2",
  "VariantParameter2": "sample string 3",
  "VariantParameter3": "sample string 4",
  "VariantParameter4": "sample string 5",
  "VariantParameter5": "sample string 6",
  "SalesPrice": 7.0,
  "CostPrice": 8.0
}

application/xml, text/xml

Sample:
<VariantUpsertModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models">
  <CostPrice>8</CostPrice>
  <EAN>sample string 1</EAN>
  <SalesPrice>7</SalesPrice>
  <VariantParameter1>sample string 2</VariantParameter1>
  <VariantParameter2>sample string 3</VariantParameter2>
  <VariantParameter3>sample string 4</VariantParameter3>
  <VariantParameter4>sample string 5</VariantParameter4>
  <VariantParameter5>sample string 6</VariantParameter5>
</VariantUpsertModel>

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

Response Information

Resource Description

None.