2. Upload a File

post/productimages.upload/{slot_id}/{sku}

Uploads a file and adds it to the specified product.

To upload a file you need to retrieve the slot ID using the /uploadmanager.newuploadslot (Create an Upload Slot) endpoint.

Information

To upload a file you need to perform the following actions:

  1. Create an Upload Slot
  2. Upload a File
  3. Delete an Upload Slot
Securitybasic or X-PriceFx-jwt
Request
path Parameters
slot_id
required
string

Enter the ID of the slot you want to use for the upload.

Example: 2665
sku
required
string

Enter the sku of the product you want to add the product image to.

Request Body schema: multipart/form-data
file
string <binary>

A base64 encoded file data.

Responses
200

OK

Request samples
multipart/form-data
No sample