Skip to main content
POST
/
api
/
v1
/
addons
/
{id}
/
publish
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.events.addons.publishAddon('x', {
  migrationType: 'NEW_CUSTOMERS',
});

console.log(response.data);
{
  "data": {
    "taskId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
}

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

Body

application/json

Request to publish an addon draft

migrationType
enum<string>
required

The migration type of the package

Available options:
NEW_CUSTOMERS,
ALL_CUSTOMERS

Response

A task ID for tracking the async publish operation.

Response containing task ID for publish operation

data
object
required