Skip to main content
PATCH
/
dev
/
v1
/
products
/
{id}
/
variants
/
order
Reorder product variants
curl --request PATCH \
  --url https://api.shoppex.io/dev/v1/products/{id}/variants/order \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "variant_ids": [
    "variant_1",
    "variant_2"
  ]
}
'
{
  "data": {
    "success": true
  }
}

Authorizations

Authorization
string
header
required

Use your Shoppex API key in the Authorization header.

Path Parameters

id
string
required

Body

application/json

The body is of type object.

Response

200 - application/json

Successful response

data
object