Create a notifier
Creates a notifier destination in a project. Choose NOTIFIER_TYPE_EMAIL, NOTIFIER_TYPE_SLACK_WEBHOOK, or NOTIFIER_TYPE_WEBHOOK and provide the matching destination fields.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
- Email notifier create request
- Slack webhook notifier create request
- Generic webhook notifier create request
Create notifier request. project_id, display_name, and type are always required. The destination field required by type is captured in oneOf.
Required. Destination type. Use NOTIFIER_TYPE_EMAIL, NOTIFIER_TYPE_SLACK_WEBHOOK, or NOTIFIER_TYPE_WEBHOOK.
NOTIFIER_TYPE_EMAIL Required when type is NOTIFIER_TYPE_EMAIL. Omit for other notifier types.
Required. Human-readable notifier name.
Optional. Workspace-scoped callers may set this to create a project-scoped notifier, or omit it for a workspace-wide notifier. Project-scoped API keys create in the API key's project.
Optional. Custom JSON metadata stored with the notifier.
Required when type is NOTIFIER_TYPE_SLACK_WEBHOOK. Omit for other notifier types.
Required when type is NOTIFIER_TYPE_WEBHOOK. Omit for other notifier types.
Optional generic webhook headers. Each value may be a string or { "secret": true, "value": "..." }.
Response
OK
Notifier resource. The destination field present on the resource depends on type and is captured in oneOf.
- Email notifier
- Slack webhook notifier
- Generic webhook notifier