Back

Search

Search

Methods

Inventory

Orders

Inventory /UploadImagesToInventoryItem

Response: List<PictureSource>



Use this call to upload images from Uploader to StockItem

Parameters

NameTypeDescription
inventoryItemIdGuidId of StockItem
imageIdsList<Guid>List of image Ids

HTTP Endpoint

Server /Inventory / UploadImagesToInventoryItem

Permissions


Example Code

Example Request

The following request format is required for this method.

POST https://eu-ext.linnworks.net//api/Inventory/UploadImagesToInventoryItem HTTP/1.1
Host: eu-ext.linnworks.net
Connection: keep-alive
Accept: application/json, text/javascript, */*; q=0.01
Origin: https://www.linnworks.net
Accept-Language: en
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: https://www.linnworks.net/
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

inventoryItemId=18986b82-02f3-4764-8801-42483f6985f8&imageIds=[
  "f3f7f004-52da-4fc7-a3c9-60c1a988fcab",
  "c31834c0-db6f-4674-9d79-38865ef6cde1"
]

Response

This is an example response. Results may vary depending on your data.

[
  {
    "PictureId": "6ef2bf1d-f99e-4d36-bdeb-a1005ff647ac",
    "Source": "sample string 2",
    "IsMain": true
  },
  {
    "PictureId": "6ef2bf1d-f99e-4d36-bdeb-a1005ff647ac",
    "Source": "sample string 2",
    "IsMain": true
  }
]