POST apioauth/tooltrackv2/items/{itemId}/images

Uploads an image and associates it with an item.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
itemId

The id of the item the image will belong to.

integer

Required

Body Parameters

The image data encoded as a Base64 string, and an optional comment.

CreateImageRequest
NameDescriptionTypeAdditional information
Comment

An optional comment to associate with the image.

string

None.

ImageData

The image encoded as a Base64 string.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Comment": "sample string 1",
  "ImageData": "sample string 2"
}

application/xml, text/xml

Sample:
<CreateImageRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Comment>sample string 1</Comment>
  <ImageData>sample string 2</ImageData>
</CreateImageRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

The id of the newly created image.

CreateImageResponse
NameDescriptionTypeAdditional information
Id

The id of the created or updated image.

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1
}

application/xml, text/xml

Sample:
<CreateImageResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Id>1</Id>
</CreateImageResponse>