---
title: "Publish addon"
method: POST
path: "/api/v1/addons/{id}/publish"
tags: ["Addons"]
---

# Publish addon

`POST /api/v1/addons/{id}/publish`

Publishes a draft addon, making it available for use in subscriptions.

## Path parameters

- `id` string, required

## Headers

- `X-ACCOUNT-ID` string
- `X-ENVIRONMENT-ID` string

## Request body

- PublishAddonRequestDto — Request to publish an addon draft
  - `migrationType` 'NEW_CUSTOMERS' | 'ALL_CUSTOMERS', required — The migration type of the package

## Response `200`

A task ID for tracking the async publish operation.

- PublishAddonResponseDto — Response containing task ID for publish operation
  - `data` object, required
    - `taskId` string, uuid, nullable, required — Task ID for tracking the async publish operation

## Other responses

- `400` — bad request.
- `401` — User is not authenticated.
- `403` — User is not allowed to access this resource.
- `404` — Addon not found.
- `429` — Too many requests.

---

[API](https://skmtc.net/stiggio/apis/stigg-api.md) · [All operations](https://skmtc.net/stiggio/apis/stigg-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/stiggio/stigg-api/versions/ffc977f1c07e/schema)
