Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

Inventory /AddImageToInventoryItem

Allows 150 calls per minute

Response: AddImageToInventoryItemResponse



Adds an image to the stock item

Parameters

NameTypeDescription
requestAddImageToInventoryItemRequestAdd Image object

Permissions

GlobalPermissions.Inventory.MyInventoryNode

Example Request

The following request format is required for this method.

Endpoint URL

POST https://eu-ext.linnworks.net/api/Inventory/AddImageToInventoryItem

Headers

Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

Request Body

This is an example of the request structure. Results will vary depending on your data.

request={
  "ItemNumber": "sample string 1",
  "StockItemId": "45259e21-0e47-4e64-a98a-38e059a1aa5f",
  "IsMain": true,
  "ImageUrl": "sample string 4"
}

Response

This is an example of the response JSON. Results will vary depending on your data.

{
  "StockItemId": "f3d37247-51af-4775-9e4c-6e2918ddcbc8",
  "ImageId": "afe5e4c8-ccbd-4b06-bd19-debbdb434468",
  "ImageUrl": "sample string 3",
  "ImageThumbnailUrl": "sample string 4"
}