PUT v1/Inventory/ItemImageUpdate

Updates the image of an inventory item.

Request Information

URI Parameters

None.

Body Parameters

The data transfer object containing the item details and the new image information.

ItemImageUpdate
NameDescriptionTypeAdditional information
ItemID

Gets or sets the unique identifier of the item.

integer

None.

UserName

Gets or sets the username of the person updating the image.

string

None.

Image

Gets or sets the image data in byte array format.

Collection of byte

None.

Name

Gets or sets the name of the image.

string

None.

Type

Gets or sets the type of the image.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ItemID": 1,
  "UserName": "sample string 2",
  "Image": "QEA=",
  "Name": "sample string 3",
  "Type": "sample string 4"
}

application/xml, text/xml

Sample:
<ItemImageUpdate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ItemID>1</ItemID>
  <UserName>sample string 2</UserName>
  <Image>QEA=</Image>
  <Name>sample string 3</Name>
  <Type>sample string 4</Type>
</ItemImageUpdate>

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

Response Information

Resource Description

A indicating the result of the operation: Returns if the operation is successful.Returns if there is an error in the request or the operation fails.Returns if the operation is unsuccessful due to missing data.Returns if an exception occurs during the operation.

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string>sample string 1</string>