> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stigg.io/llms.txt
> Use this file to discover all available pages before exploring further.

# publishAddon

> Publish an addon by id



**mutation** `publishAddon(input: PackagePublishInput!): PublishPackageResult!`

## Arguments

**`input`**: `PackagePublishInput!` (required)

Package Publish Input

## Returns

`PublishPackageResult!`

**`taskId`**: `String`

The task id for the publish package operation

## Examples

```graphql Mutation
mutation PublishAddon($input: PackagePublishInput!) {
  publishAddon(input: $input) {
    taskId
  }
}
```

```json Variables
{
  "input": {
    "id": "value",
    "migrationType": "ALL_CUSTOMERS"
  }
}
```

```json Response
{
  "data": {
    "publishAddon": {
      "taskId": "string"
    }
  }
}
```


## Related topics

- [Go](https://docs.stigg.io/api-and-sdks/changelog/backend-rest/go.md)
- [Publish addon](https://docs.stigg.io/api-reference/addons/publish-addon.md)
- [Grant credits as entitlements in plans and add-ons](https://docs.stigg.io/guides/i-want-to/grant-credits-in-plans-and-add-ons.md)
- [Publish plan](https://docs.stigg.io/api-reference/plans/publish-plan.md)
- [PublishMigrationType](https://docs.stigg.io/graphql-reference/types/PublishMigrationType.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.