PUT api/Items/{item}/Image

Upload and set the Item image

Request Information

URI Parameters

NameDescriptionTypeAdditional information
item

The Item asset

string

Required

Body Parameters

The image to upload. Supported file types: jpg, jpeg, gif, bmp, png, tif, wmf

HttpFile
NameDescriptionTypeAdditional information
FileName

string

None.

MediaType

string

None.

Buffer

Collection of byte

None.

Request Formats

Sample:
{
  "FileName": "car.png",
  "MediaType": "image/png",
  "Buffer": "iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAACXBIWXMAAA3XAAAN1wFCKJt4AAABtUlEQVR42u3cQXLCMAwFUOTJwXNzumfTaUgqyXrvAIwt/8iOB3i9AAAAAAAAAAAAAAAAAIBOovTozvO9RZXPMwRg2qI3CUNY+NkhCIs/OwTRYvEL76Hd51U7AB0X/q9BSJ7jsvhz3wDyA2C/Tz//LE//bDrA8C6wWhWKTQIw8b2/aLhtAZ3uDbYIgMOfDuAwWKcLrBaFYZMATD38FQ778ejieqqv1fGzbp+1vbGuUeLJnhiUIjVb6ROxDaTWfbUvBF4DHQa7BsDTrwPoApO/EYQOQK68ewD7/3c1LHMPYDFbu/MqOC53A9IetnhwoHv+4GOzWkXahCixzXoL2PWQKADkBED7Hx4ABIA+54BVfYDoAAgAAsAj2+yROJGoUoT0OY37efj334iNbRY/eT6r3eJXDMEdY0majzOAQyACgAAgAAgAAvD8K9O71OdUGcuYP4m6Y7IVbwK/GVPifKLk081vdY7eHQCHQAQAAUAAEAAEAAFAAPh3R7kR7f6fAcVuS3UAWwACgAAgAAgAAoAAeIcvrMUfRV697JgSoEL1iTKTnNY91AcAAAAAAAAAAAAAAAAAuOAHQdadkGKMPDwAAAAASUVORK5CYII="
}
Sample:
<HttpFile xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MultipartDataMediaFormatter.Infrastructure">
  <Buffer>iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAACXBIWXMAAA3XAAAN1wFCKJt4AAABtUlEQVR42u3cQXLCMAwFUOTJwXNzumfTaUgqyXrvAIwt/8iOB3i9AAAAAAAAAAAAAAAAAIBOovTozvO9RZXPMwRg2qI3CUNY+NkhCIs/OwTRYvEL76Hd51U7AB0X/q9BSJ7jsvhz3wDyA2C/Tz//LE//bDrA8C6wWhWKTQIw8b2/aLhtAZ3uDbYIgMOfDuAwWKcLrBaFYZMATD38FQ778ejieqqv1fGzbp+1vbGuUeLJnhiUIjVb6ROxDaTWfbUvBF4DHQa7BsDTrwPoApO/EYQOQK68ewD7/3c1LHMPYDFbu/MqOC53A9IetnhwoHv+4GOzWkXahCixzXoL2PWQKADkBED7Hx4ABIA+54BVfYDoAAgAAsAj2+yROJGoUoT0OY37efj334iNbRY/eT6r3eJXDMEdY0majzOAQyACgAAgAAgAAvD8K9O71OdUGcuYP4m6Y7IVbwK/GVPifKLk081vdY7eHQCHQAQAAUAAEAAEAAFAAPh3R7kR7f6fAcVuS3UAWwACgAAgAAgAAoAAeIcvrMUfRV697JgSoEL1iTKTnNY91AcAAAAAAAAAAAAAAAAAuOAHQdadkGKMPDwAAAAASUVORK5CYII=</Buffer>
  <FileName>car.png</FileName>
  <MediaType>image/png</MediaType>
</HttpFile>
Sample:

Sample not available.

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name=""; filename="car.png"
Content-Type: image/png

�PNG


IHDR���>a�	pHYs
�
�B(�x�IDATx���Ar�0P���ss�g�iH*�z��-�Ȏx��N�����E��3`ڢ7	CX��!�?;�b����U;��AH���s��`�O?�,O�l:��.�Z�M0�h�m��
��ß�0X���a�L=�����z����n�����Q�ɞ�"5[��
��}�/^��ӯ����@��{��w5,s`1[��*8.w��xp�{��c�ZEڄ(��z���(�@��>�U}���#��8��R��9��y��߈�m?y>���W�cI��3�C � ��+ӻ��T˘?��c�o�S�|����ou���@@@�wG�����nKu[� �x�/��E^���B��2���=���A֝�b�<<IEND�B`�
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

Returns the Id of the image

string

Response Formats

Sample:
"sample string 1"
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name=""

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e--