POST api/templates/products?token={token}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
token

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

string

Required

Body Parameters

UpdateProductsTemplateByIdCommandRequest
NameDescriptionTypeAdditional information
template_id

integer

None.

products

Collection of TemplateProductPercentViewModel

None.

Request Formats

application/json, text/json

Sample:
{
  "template_id": 1,
  "products": [
    {
      "product_id": 1,
      "percent": 2
    },
    {
      "product_id": 1,
      "percent": 2
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Sample not available.

application/xml, text/xml

Sample:
<request>
  <template_id>1</template_id>
  <products>
    <product_id>1</product_id>
    <percent>2</percent>
  </products>
  <products>
    <product_id>1</product_id>
    <percent>2</percent>
  </products>
</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.