मुख्य सामग्री पर जाएं
PATCH
/
product-collections
/
{id}
/
groups
/
{group_id}
/
items
/
{item_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.items.update('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', {
  id: 'pdc_8BWv0hojwUH7iCDabr0NI',
  group_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
  status: true,
});

प्राधिकरण

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

item_id
string<uuid>
आवश्यक

Collection item Id (product membership in group)

बॉडी

application/json
status
boolean
आवश्यक

Status of the product in the group

प्रतिक्रिया

Product updated successfully

अंतिम संशोधन 18 जून 2026