POST api/products/parameters

Request Information

URI Parameters

NameDescriptionTypeAdditional information
token

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

string

Required

Body Parameters

CreateProductParameterRequest
NameDescriptionTypeAdditional information
name

Collection of LocalizationExternalViewModel

None.

comment

Collection of LocalizationExternalViewModel

None.

type

string

None.

separate_content

boolean

None.

required

boolean

None.

modifier_visible

boolean

None.

order

integer

None.

product_id

integer

None.

variants

Collection of CreateParameterVariantItem

None.

Request Formats

application/json, text/json

Sample:
{
  "name": [
    {
      "locale": "sample string 1",
      "value": "sample string 2"
    },
    {
      "locale": "sample string 1",
      "value": "sample string 2"
    }
  ],
  "comment": [
    {
      "locale": "sample string 1",
      "value": "sample string 2"
    },
    {
      "locale": "sample string 1",
      "value": "sample string 2"
    }
  ],
  "type": "sample string 1",
  "separate_content": true,
  "required": true,
  "modifier_visible": true,
  "order": 4,
  "product_id": 5,
  "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>
  <name>
    <locale>sample string 1</locale>
    <value>sample string 2</value>
  </name>
  <name>
    <locale>sample string 1</locale>
    <value>sample string 2</value>
  </name>
  <comment>
    <locale>sample string 1</locale>
    <value>sample string 2</value>
  </comment>
  <comment>
    <locale>sample string 1</locale>
    <value>sample string 2</value>
  </comment>
  <type>sample string 1</type>
  <separate_content>true</separate_content>
  <required>true</required>
  <modifier_visible>true</modifier_visible>
  <order>4</order>
  <product_id>5</product_id>
  <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.