PUT api/services/UpdateProduct
Request Information
URI Parameters
None.
Body Parameters
ProductUpdateDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | decimal number |
None. |
|
| product_type_id | decimal number |
None. |
|
| product_group_id | decimal number |
None. |
|
| product_name | string |
None. |
|
| product_description | Dictionary of string [key] and Object [value] |
None. |
|
| welcome_email | string |
None. |
|
| require_domain | integer |
None. |
|
| stock_control | integer |
None. |
|
| stock_quantity | integer |
None. |
|
| apply_tax | integer |
None. |
|
| featured | integer |
None. |
|
| hidden | integer |
None. |
|
| retired | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1.0,
"product_type_id": 2.0,
"product_group_id": 3.0,
"product_name": "sample string 4",
"product_description": {
"sample string 1": {},
"sample string 3": {}
},
"welcome_email": "sample string 5",
"require_domain": 6,
"stock_control": 7,
"stock_quantity": 8,
"apply_tax": 9,
"featured": 10,
"hidden": 11,
"retired": 12
}
application/xml, text/xml
Sample:
<ProductUpdateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebcomIndiaAPI.Models">
<Id>1</Id>
<apply_tax>9</apply_tax>
<featured>10</featured>
<hidden>11</hidden>
<product_description xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringanyType>
<d2p1:Key>sample string 1</d2p1:Key>
<d2p1:Value />
</d2p1:KeyValueOfstringanyType>
<d2p1:KeyValueOfstringanyType>
<d2p1:Key>sample string 3</d2p1:Key>
<d2p1:Value />
</d2p1:KeyValueOfstringanyType>
</product_description>
<product_group_id>3</product_group_id>
<product_name>sample string 4</product_name>
<product_type_id>2</product_type_id>
<require_domain>6</require_domain>
<retired>12</retired>
<stock_control>7</stock_control>
<stock_quantity>8</stock_quantity>
<welcome_email>sample string 5</welcome_email>
</ProductUpdateDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.