PUT api/Products/EditProduct
Request Information
URI Parameters
None.
Body Parameters
StoneFactoryAPI.Models.ProductsModel+EditProduct| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| productName | string |
None. |
|
| thumbnail | string |
None. |
|
| spec1 | string |
None. |
|
| spec2 | string |
None. |
|
| spec3 | string |
None. |
|
| spec4 | string |
None. |
|
| edgeId | integer |
None. |
|
| editedDate | string |
None. |
|
| editedBy | string |
None. |
|
| userId | integer |
None. |
|
| changed | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"productName": "sample string 2",
"thumbnail": "sample string 3",
"spec1": "sample string 4",
"spec2": "sample string 5",
"spec3": "sample string 6",
"spec4": "sample string 7",
"edgeId": 8,
"editedDate": "sample string 9",
"editedBy": "sample string 10",
"userId": 11,
"changed": "sample string 12"
}
application/xml, text/xml
Sample:
<ProductsModel.EditProduct xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StoneFactoryAPI.Models"> <changed>sample string 12</changed> <edgeId>8</edgeId> <editedBy>sample string 10</editedBy> <editedDate>sample string 9</editedDate> <id>1</id> <productName>sample string 2</productName> <spec1>sample string 4</spec1> <spec2>sample string 5</spec2> <spec3>sample string 6</spec3> <spec4>sample string 7</spec4> <thumbnail>sample string 3</thumbnail> <userId>11</userId> </ProductsModel.EditProduct>
multipart/form-data
Sample:
<ProductsModel.EditProduct xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StoneFactoryAPI.Models"><changed>sample string 12</changed><edgeId>8</edgeId><editedBy>sample string 10</editedBy><editedDate>sample string 9</editedDate><id>1</id><productName>sample string 2</productName><spec1>sample string 4</spec1><spec2>sample string 5</spec2><spec3>sample string 6</spec3><spec4>sample string 7</spec4><thumbnail>sample string 3</thumbnail><userId>11</userId></ProductsModel.EditProduct>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
System.Net.Http.HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | System.Version |
None. |
|
| Content | System.Net.Http.HttpContent |
None. |
|
| StatusCode | System.Net.HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | System.Net.Http.HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |