Integrations /
Update notification integration
Required permission
Account > Team > Notifications > Manage
Path parameters
notificationId
string requiredID of the notification integration
Request body
- {object}
name
stringThe name of the notification integration.min length3max length39pattern^[a-zA-Z]((-|\s)?[a-zA-Z0-9]+((-|\s)[a-zA-Z0-9]+)*)?$webhook
stringThe URL where webhooks will be sent.secret
stringAn optional secret that will be sent in the webhook header for verification. Supports `RAW_WEBHOOK` only.restricted
booleanShould notifications be sent only for specific projects?projects
[array]An array of projects that notifications will be sent for.- stringpattern^[A-Za-z0-9-]+$
events
{object}Which events should notifications be sent for?trigger:service:autoscaling:event
booleantrigger:service:deployment:status-update
booleantrigger:addon-backup:start
booleantrigger:addon-backup:success
booleantrigger:addon-backup:failure
booleantrigger:addon-backup:abort
booleantrigger:build:start
booleantrigger:build:success
booleantrigger:build:failure
booleantrigger:build:abort
booleantrigger:job-run:start
booleantrigger:job-run:success
booleantrigger:job-run:failure
booleantrigger:job-run:abort
booleantrigger:job-run:terminate
booleantrigger:release-flow-template-run:start
booleantrigger:release-flow-template-run:update
booleantrigger:release-flow-template-run:success
booleantrigger:release-flow-template-run:failure
booleantrigger:release-flow-template-run:aborted
booleantrigger:template-run:queued
booleantrigger:template-run:start
booleantrigger:template-run:update
booleantrigger:template-run:success
booleantrigger:template-run:failure
booleantrigger:resource:certificate-success
booleantrigger:resource:certificate-final-failure
booleantrigger:cdn:action-success
booleantrigger:cdn:action-failure
booleantrigger:cdn:action-delay
booleantrigger:log-sink:paused
booleantrigger:billing:billing-alert-exceeded
booleantrigger:billing:invoice-payment-action-required
booleantrigger:billing:invoice-payment-failed
booleantrigger:billing:invoice-paid
booleantrigger:billing:invoice-carried-over
booleantrigger:infrastructure:service:container-crash
booleantrigger:infrastructure:service:container-eviction
booleantrigger:infrastructure:addon:container-crash
booleantrigger:infrastructure:addon:container-eviction
booleantrigger:infrastructure:job:container-crash
booleantrigger:infrastructure:job:container-eviction
booleantrigger:infrastructure:service:container-cpuSpike90
booleantrigger:infrastructure:service:container-cpuSustained90
booleantrigger:infrastructure:job:container-cpuSpike90
booleantrigger:infrastructure:job:container-cpuSustained90
booleantrigger:infrastructure:addon:container-cpuSpike90
booleantrigger:infrastructure:addon:container-cpuSustained90
booleantrigger:infrastructure:service:container-memorySpike90
booleantrigger:infrastructure:service:container-memorySustained90
booleantrigger:infrastructure:job:container-memorySpike90
booleantrigger:infrastructure:job:container-memorySustained90
booleantrigger:infrastructure:addon-volume:usage-75-exceeded
booleantrigger:infrastructure:addon-volume:usage-90-exceeded
booleantrigger:infrastructure:platform-volume:usage-75-exceeded
booleantrigger:infrastructure:platform-volume:usage-90-exceeded
booleantrigger:infrastructure:byoc:cluster:error
booleantrigger:infrastructure:byoc:node-pool:error
booleantrigger:infrastructure:byoc:scheduling:error
boolean
Response body
- {object}Response object.
data
{object} requiredResult data.
POST /v1/integrations/notifications/{notificationId}
Example request
curl --header "Content-Type: application/json" \
--header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
--request POST \
--data '{"name":"Example Notification","webhook":"https://example.com/webhooks","restricted":true,"projects":["default-project"],"events":{"trigger:service:autoscaling:event":true,"trigger:service:deployment:status-update":true,"trigger:addon-backup:start":true,"trigger:addon-backup:success":true,"trigger:addon-backup:failure":true,"trigger:addon-backup:abort":true,"trigger:build:start":true,"trigger:build:success":true,"trigger:build:failure":true,"trigger:build:abort":true,"trigger:job-run:start":true,"trigger:job-run:success":true,"trigger:job-run:failure":true,"trigger:job-run:abort":true,"trigger:job-run:terminate":true,"trigger:release-flow-template-run:start":true,"trigger:release-flow-template-run:update":true,"trigger:release-flow-template-run:success":true,"trigger:release-flow-template-run:failure":true,"trigger:release-flow-template-run:aborted":true,"trigger:template-run:queued":true,"trigger:template-run:start":true,"trigger:template-run:update":true,"trigger:template-run:success":true,"trigger:template-run:failure":true,"trigger:resource:certificate-success":true,"trigger:resource:certificate-final-failure":true,"trigger:cdn:action-success":true,"trigger:cdn:action-failure":true,"trigger:cdn:action-delay":true,"trigger:log-sink:paused":true,"trigger:billing:billing-alert-exceeded":true,"trigger:billing:invoice-payment-action-required":true,"trigger:billing:invoice-payment-failed":true,"trigger:billing:invoice-paid":true,"trigger:billing:invoice-carried-over":true,"trigger:infrastructure:service:container-crash":true,"trigger:infrastructure:service:container-eviction":true,"trigger:infrastructure:addon:container-crash":true,"trigger:infrastructure:addon:container-eviction":true,"trigger:infrastructure:job:container-crash":true,"trigger:infrastructure:job:container-eviction":true,"trigger:infrastructure:service:container-cpuSpike90":true,"trigger:infrastructure:service:container-cpuSustained90":true,"trigger:infrastructure:job:container-cpuSpike90":true,"trigger:infrastructure:job:container-cpuSustained90":true,"trigger:infrastructure:addon:container-cpuSpike90":true,"trigger:infrastructure:addon:container-cpuSustained90":true,"trigger:infrastructure:service:container-memorySpike90":true,"trigger:infrastructure:service:container-memorySustained90":true,"trigger:infrastructure:job:container-memorySpike90":true,"trigger:infrastructure:job:container-memorySustained90":true,"trigger:infrastructure:addon-volume:usage-75-exceeded":true,"trigger:infrastructure:addon-volume:usage-90-exceeded":true,"trigger:infrastructure:platform-volume:usage-75-exceeded":true,"trigger:infrastructure:platform-volume:usage-90-exceeded":true,"trigger:infrastructure:byoc:cluster:error":true,"trigger:infrastructure:byoc:node-pool:error":true,"trigger:infrastructure:byoc:scheduling:error":true}}' \
https://api.northflank.com/v1/integrations/notifications/{notificationId}
Example response
200 OK
JSON
{
"data": {}
}