POST api/products/parameters/{parameterId}/variants?token={token}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
token

Токен авторизации

string

Required

parameterId

integer

Required

Body Parameters

CreateParameterVariantsRequestDto
NameDescriptionTypeAdditional information
variants

Collection of CreateParameterVariantItem

None.

Request Formats

application/json, text/json

Sample:
{
  "variants": [
    {
      "name": [
        {
          "locale": "sample string 1",
          "value": "sample string 2"
        },
        {
          "locale": "sample string 1",
          "value": "sample string 2"
        }
      ],
      "type": "sample string 1",
      "rate": 2.0,
      "default": true,
      "order": 4
    },
    {
      "name": [
        {
          "locale": "sample string 1",
          "value": "sample string 2"
        },
        {
          "locale": "sample string 1",
          "value": "sample string 2"
        }
      ],
      "type": "sample string 1",
      "rate": 2.0,
      "default": true,
      "order": 4
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Sample not available.

application/xml, text/xml

Sample:
<request>
  <variants>
    <name>
      <locale>sample string 1</locale>
      <value>sample string 2</value>
    </name>
    <name>
      <locale>sample string 1</locale>
      <value>sample string 2</value>
    </name>
    <type>sample string 1</type>
    <rate>2</rate>
    <default>true</default>
    <order>4</order>
  </variants>
  <variants>
    <name>
      <locale>sample string 1</locale>
      <value>sample string 2</value>
    </name>
    <name>
      <locale>sample string 1</locale>
      <value>sample string 2</value>
    </name>
    <type>sample string 1</type>
    <rate>2</rate>
    <default>true</default>
    <order>4</order>
  </variants>
</request>

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.