import Stigg from '@stigg/typescript';const client = new Stigg({ apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted});const response = await client.v1.products.duplicateProduct('x');console.log(response.data);
Duplicates an existing product, including its plans, addons, and configuration.
POST
/
api
/
v1
/
products
/
{id}
/
duplicate
JavaScript
Copy
Ask AI
import Stigg from '@stigg/typescript';const client = new Stigg({ apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted});const response = await client.v1.products.duplicateProduct('x');console.log(response.data);