[POST] .../v1/itemimage/save
Adds new image. Use this method to attach an image to a catalog item after the item has been created. The method accepts application/json with file as a Base64 payload or multipart/form-data with item_id and a binary file stream, stores the image through the common image/file pipeline for table 21 and returns new_id. The caller must have item image add permission; item_id and file are required and missing payloads, malformed multipart data, denied access, file storage errors or image processing failures are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| file | String | Required | Image file payload. |
| item_id | Int64 | Required | Item ID. |
Request Example
{
"item_id": 24,
"file": "base64-image-content"
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | Insert | Created record result. |
Response Example
{
"ok": true,
"result": {
"new_id": 1001
}
}