PUT api/cataloguer/categories/{categoryId}/products

Request Information

URI Parameters

NameDescriptionTypeAdditional information
token

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

string

Required

categoryId

integer

Required

Body Parameters

AddProductInCategoryRequest
NameDescriptionTypeAdditional information
productId

integer

None.

attributes

Collection of AddProductInCategoryAttributeRequest

None.

Request Formats

application/json, text/json

Sample:
{
  "productId": 1,
  "attributes": [
    {
      "attributeId": 1,
      "attributeValueId": 2
    },
    {
      "attributeId": 1,
      "attributeValueId": 2
    }
  ]
}

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

application/xml, text/xml

Sample:
<AddProductInCategoryRequest>
  <ProductId>1</ProductId>
  <Attributes>
    <AddProductInCategoryAttributeRequest>
      <AttributeId>1</AttributeId>
      <AttributeValueId>2</AttributeValueId>
    </AddProductInCategoryAttributeRequest>
    <AddProductInCategoryAttributeRequest>
      <AttributeId>1</AttributeId>
      <AttributeValueId>2</AttributeValueId>
    </AddProductInCategoryAttributeRequest>
  </Attributes>
</AddProductInCategoryRequest>

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.