Skip to main content
PATCH
/
dev
/
v1
/
groups
/
{uniqid}
Update group
curl --request PATCH \
  --url https://api.shoppex.io/dev/v1/groups/{uniqid} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "VIP Members",
  "isUnlisted": false,
  "productsBound": [
    "prod_starter",
    "prod_pro"
  ],
  "sortOrder": 2
}
'
{
  "data": {
    "id": "grp_db_1",
    "uniqid": "grp_1",
    "shop_id": "shop_1",
    "title": "VIP Members",
    "is_unlisted": false,
    "sort_order": 2,
    "created_at": 1711962000,
    "updated_at": 1711969200,
    "products_bound": [
      {
        "uniqid": "prod_starter",
        "title": "Starter Pack",
        "type": "DIGITAL",
        "price": 29.99,
        "price_display": 29.99,
        "currency": "USD",
        "stock": 999,
        "custom_fields": {
          "badge": "vip"
        }
      },
      {
        "uniqid": "prod_pro",
        "title": "Pro Pack",
        "type": "DIGITAL",
        "price": 79.99,
        "price_display": 79.99,
        "currency": "USD",
        "stock": 500,
        "custom_fields": {
          "badge": "pro"
        }
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Use your Shoppex API key in the Authorization header.

Path Parameters

uniqid
string
required

Body

application/json

The body is of type object.

Response

200 - application/json

Successful response

data
object