Ordexs API v1 Get an API key

Products

Update a product image

PATCHhttps://api.ordexs.com/v1/products/{product_id}/images/{image_id}

Change its alt text, or move it (position 0 is the main image).

Path parameters

  • product_idstringRequired

    starts with prod_

  • image_idstringRequired

    starts with img_

Body

  • altstring or null

    up to 300 characters

  • positioninteger

    0 is the main image.

    0–49

Returns

200 OK · The image. ProductImage

  • idstring

    starts with img_

  • objectstring

    always "product_image"

  • product_idstring
  • urlstring

    The largest size. The others are the same address ending in -320, -640 and -1024 instead of -1920.

  • altstring or null
  • positioninteger

    0 is the main image.

  • media_idstring or null

    The file in the media library.

  • created_atstring

    ISO 8601 date-time, UTC

Errors

Every error has the same shape. This endpoint can answer with: