import Stigg from '@stigg/typescript';const client = new Stigg({ apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted});const plan = await client.v1.plans.createDraft('x');console.log(plan.data);
Creates a draft version of an existing plan for modification before publishing.
POST
/
api
/
v1
/
plans
/
{id}
/
draft
JavaScript
import Stigg from '@stigg/typescript';const client = new Stigg({ apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted});const plan = await client.v1.plans.createDraft('x');console.log(plan.data);