events_transports_update
PUT/events/transports/:uuid/
NotificationTransport Viewset
Request
Path Parameters
uuid uuidrequired
A UUID string identifying this Notification Transport.
- application/json
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
- 200
- 400
- 403
- application/json
- Schema
- Example (from schema)
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.
{
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"mode": "local",
"mode_verbose": "string",
"webhook_url": "string",
"webhook_mapping": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"send_once": true
}
- application/json
- Schema
- Example (from schema)
Schema
non_field_errors string[]
code string
{
"non_field_errors": [
"string"
],
"code": "string"
}
- application/json
- Schema
- Example (from schema)
Schema
detail stringrequired
code string
{
"detail": "string",
"code": "string"
}
Loading...