Skip to main content
DELETE
/
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 response = await client.v1.plans.removeDraft('x');

console.log(response.data);
{
  "data": {
    "id": "<string>"
  }
}

Authorizations

X-API-KEY
string
header
required

Server API Key

Headers

X-API-KEY
string
required

Server API Key

Path Parameters

id
string
required

The unique identifier of the entity

Required string length: 1 - 255

Response

The ID of the plan whose draft was removed.

Response confirming the plan draft was removed.

data
object
required