POST api/product/content/add/text?token={token}

Метод добавления содержимого типа "Text" или "Url"

Request Information

URI Parameters

NameDescriptionTypeAdditional information
token

Токен доступа

string

Required

Body Parameters

Модель данных

TextContent
NameDescriptionTypeAdditional information
product_id

Идентификатор товара

integer

None.

content

Содержимое

Collection of TextItem

None.

Request Formats

application/json, text/json

Sample:
{
  "product_id": 1,
  "content": [
    {
      "serial": "sample string 1",
      "value": "sample string 2",
      "id_v": 3
    },
    {
      "serial": "sample string 1",
      "value": "sample string 2",
      "id_v": 3
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Sample not available.

application/xml, text/xml

Sample:
<text_content>
  <product_id>1</product_id>
  <content>
    <serial>sample string 1</serial>
    <value>sample string 2</value>
    <id_v>3</id_v>
  </content>
  <content>
    <serial>sample string 1</serial>
    <value>sample string 2</value>
    <id_v>3</id_v>
  </content>
</text_content>

Response Information

Resource Description

IResultViewModelOldOfIEnumerableOfTextResponseModel
NameDescriptionTypeAdditional information
retval

integer

None.

retdesc

string

None.

errors

Collection of ErrorModel

None.

content

Collection of TextResponseModel

None.

Response Formats

application/json, text/json

Sample:

Sample not available.