Create a new addon

Create an addon instance. The addon must use one of the providers available on this Unleash instance.

Authentication

Authorizationstring
API key needed to access this API
OR
AuthorizationBearer
API key needed to access this API, in Bearer token format

Request

addonCreateUpdateSchema
providerstringRequired
The addon provider, such as "webhook" or "slack". This string is **case sensitive** and maps to the provider's `name` property. The list of all supported providers and their parameters for a specific Unleash instance can be found by making a GET request to the `api/admin/addons` endpoint: the `providers` property of that response will contain all available providers. The default set of providers can be found in the [addons reference documentation](https://docs.getunleash.io/integrate). The default supported options are: - `datadog` for [Datadog](https://docs.getunleash.io/integrate/datadog) - `slack` for [Slack](https://docs.getunleash.io/integrate/slack) - `teams` for [Microsoft Teams](https://docs.getunleash.io/integrate/teams) - `webhook` for [webhooks](https://docs.getunleash.io/integrate/webhook) The provider you choose for your addon dictates what properties the `parameters` object needs. Refer to the documentation for each provider for more information.
enabledbooleanRequired
Whether the addon should be enabled or not.
parametersmap from strings to anyRequired
Parameters for the addon provider. This object has different required and optional properties depending on the provider you choose. Consult the documentation for details.
eventslist of stringsRequired
The event types that will trigger this specific addon.
descriptionstringOptional
A description of the addon.
projectslist of stringsOptional

The projects that this addon will listen to events from. An empty list means it will listen to events from all projects.

environmentslist of stringsOptional

The list of environments that this addon will listen to events from. An empty list means it will listen to events from all environments.

Response

addonSchema
idinteger>=1
The addon's unique identifier.
providerstring
The addon provider, such as "webhook" or "slack".
descriptionstring or null

A description of the addon. null if no description exists.

enabledboolean
Whether the addon is enabled or not.
parametersmap from strings to any
Parameters for the addon provider. This object has different required and optional properties depending on the provider you choose.
eventslist of strings
The event types that trigger this specific addon.
projectslist of strings or null

The projects that this addon listens to events from. An empty list means it listens to events from all projects.

environmentslist of strings or null

The list of environments that this addon listens to events from. An empty list means it listens to events from all environments.

Errors