Skip to content

Add a notification target to a service.

POST
/service/{service_id}/notification_target/
curl --request POST \
--url https://api.siteqwality.com/service/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/notification_target/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "type": "slack_channel", "details": "example" }'
service_id
required
string format: uuid

Service identifier

Media type application/json
object
type
required
string
Allowed values: slack_channel webhook email
details
required

Notification target created

Media type application/json
object
id
required
string format: uuid
service_id
required
string format: uuid
type
required
string
Allowed values: slack_channel webhook email
details
required
created_at
required
string format: date-time
Example
{
"type": "slack_channel"
}

Invalid request body

Missing or invalid authentication

Service not found

Internal server error