跳转到主要内容
PATCH
/
product-collections
/
{id}
/
groups
/
{group_id}
JavaScript
import DodoPayments from 'dodopayments';

const client = new DodoPayments({
  bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted
});

await client.productCollections.groups.update('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', { id: 'id' });

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

路径参数

id
string
必填

Product Collection Id

group_id
string<uuid>
必填

Product Collection Group Id

请求体

application/json
group_name
string | null

Optional group name update: Some(Some(name)) = set name, Some(None) = clear name, None = no change

product_order
string<uuid>[] | null

Optional new order for products in this group (array of product_collection_group_pdts UUIDs)

status
boolean | null

Optional status update

响应

Group updated successfully

最后修改于 2026年5月22日