Skip to main content

events_transports_create

POST 

/api/v3//events/transports/

NotificationTransport Viewset

Request

Body

required

    name stringrequired

    Possible values: non-empty

    mode NotificationTransportModeEnum (string)

    Possible values: [local, webhook, webhook_slack, email]

    webhook_url uri
    webhook_mapping uuidnullable
    send_once boolean

    Only send notification once, for example when sending a webhook into a chat channel.

Responses

Schema

    pk uuidrequired
    name stringrequired
    mode NotificationTransportModeEnum (string)

    Possible values: [local, webhook, webhook_slack, email]

    mode_verbose stringrequired

    Return selected mode with a UI Label

    webhook_url uri
    webhook_mapping uuidnullable
    send_once boolean

    Only send notification once, for example when sending a webhook into a chat channel.

curl -L '/api/v3/events/transports/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"name": "string",
"mode": "local",
"webhook_url": "string",
"webhook_mapping": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"send_once": true
}'
Request Collapse all
Base URL
/api/v3
Auth
Body required
{
  "name": "string",
  "mode": "local",
  "webhook_url": "string",
  "webhook_mapping": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "send_once": true
}