الانتقال إلى المحتوى الرئيسي
POST
/
product-collections
/
{id}
/
unarchive
JavaScript
import DodoPayments from 'dodopayments';

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

const response = await client.productCollections.unarchive('id');

console.log(response.collection_id);
{
  "collection_id": "<string>",
  "excluded_product_ids": [
    "<string>"
  ],
  "message": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.dodopayments.com/llms.txt

Use this file to discover all available pages before exploring further.

التفويضات

Authorization
string
header
مطلوب

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

معلمات المسار

id
string
مطلوب

Product Collection Id

الاستجابة

Product Collection Unarchived Successfully

collection_id
string
مطلوب

Collection ID that was unarchived

excluded_product_ids
string[]
مطلوب

Product IDs that were excluded because they are archived

message
string
مطلوب

Success message

Last modified on May 22, 2026