Skip to main content
PUT
/
products
/
{id}
/
images
/
order
Reorder the gallery
curl --request PUT \
  --url https://api.autoprintfarm.com/public/v1/products/{id}/images/order \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "order": [
    "<string>"
  ]
}
'
{
  "success": true,
  "data": [
    {
      "id": "<string>",
      "sort_order": 123,
      "url": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

API keys are minted in the AutoPrintFarm web app under Settings → API Keys. Send as Authorization: Bearer apf_live_.... Keys are shown exactly once at creation and can be revoked at any time.

Path Parameters

id
string
required

Body

application/json
order
string[]
required
Maximum array length: 20

Response

Reordered

success
enum<boolean>
required
Available options:
true
data
object[]
required