PATCH api/Items/{item}
Update an existing Item
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
item |
The Item asset |
string |
Required |
Body Parameters
AssetEditName | Description | Type | Additional information |
---|---|---|---|
Description |
The Item description |
string |
Max length: 150 |
Picture |
The picture file name and location. |
string |
Matching regular expression pattern: (?i).+\.(jpg|jpeg|gif|bmp|png|tif|wmf)$ Max length: 255 |
Specifications |
|
Collection of Specification |
No duplicate values on: Number |
Location |
|
string |
Max length: 20 |
Entity |
|
AllocationCost |
None. |
System |
Item System with parent cannot be changed |
string |
None. |
Request Formats
Sample:
{ "Description": "Semi-trailer truck", "Specifications": [ { "Number": 3, "Value": "The serial number" }, { "Number": 15, "Value": "The color" } ] }
Sample:
<AssetEdit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models.Parque"> <Description>Semi-trailer truck</Description> <Entity xmlns:d2p1="http://schemas.datacontract.org/2004/07/WebAPI.Models" i:nil="true" /> <Location i:nil="true" /> <Picture i:nil="true" /> <Specifications> <Specification> <Number>3</Number> <Value>The serial number</Value> </Specification> <Specification> <Number>15</Number> <Value>The color</Value> </Specification> </Specifications> <System i:nil="true" /> </AssetEdit>
Sample:
Sample not available.
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Description" Semi-trailer truck --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Specifications[0].Number" 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Specifications[0].Value" The serial number --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Specifications[1].Number" 15 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Specifications[1].Value" The color --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version |
|
Version |
None. |
Content |
|
HttpContent |
None. |
StatusCode |
|
HttpStatusCode |
None. |
ReasonPhrase |
|
string |
None. |
Headers |
|
Collection of Object |
None. |
RequestMessage |
|
HttpRequestMessage |
None. |
IsSuccessStatusCode |
|
boolean |
None. |