Skip to main content
PUT
Reorder a product's images

Authorizations

Authorization
string
header
required

Use a project API key from Settings > API Access. Send it as Authorization: Bearer wpk_.... See authentication and scopes for setup and permissions.

Headers

Idempotency-Key
string

Reuse this key for retries of the same write. Scoped to this API key; retained for 30 days, after which the key may be reused. Different requests with the same key return 409.

Required string length: 1 - 128
Pattern: ^[!-~]+$

Path Parameters

product_id
integer
required

Body

application/json
asset_ids
string<uuid>[]
required

Every asset attached to the product, in the order they should appear.

Required array length: 1 - 1000 elements

Response

OK

product_id
integer
required
main_image
string | null
required
assets
GalleryEntryOut · object[]
required