API · v1.4.0
Notification channels
7 végpont. Az útvonalak a saját példánya /api/v1 címéhez képest értendők; a hitelesítést az áttekintő oldal írja le.
GET /workspaces/{workspace}/notification-channels
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
type | query | ChannelType (email, webhook, slack, discord, teams, mattermost, google_chat, telegram, ntfy, gotify, pushover, matrix, pagerduty, opsgenie, apprise) | |
q | query | string | |
cursor | query | string | Opaque cursor taken from |
limit | query | integer | Page size. |
Válaszok
200422Validation error404Not found403Authorization error401Unauthenticated
POST /workspaces/{workspace}/notification-channels
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
Kéréstörzs
| Név | Típus |
|---|---|
typekötelező | ChannelType (email, webhook, slack, discord, teams, mattermost, google_chat, telegram, ntfy, gotify, pushover, matrix, pagerduty, opsgenie, apprise) |
namekötelező | string |
is_default | boolean |
active | boolean |
apply_to_existing | boolean |
templates | object | null |
config | object |
secrets | object |
Válaszok
201404Not found403Authorization error401Unauthenticated422Validation error
POST /workspaces/{workspace}/notification-channels/test
Sends a test notification through a channel described by the request body, which is not saved
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
Kéréstörzs
| Név | Típus |
|---|---|
typekötelező | ChannelType (email, webhook, slack, discord, teams, mattermost, google_chat, telegram, ntfy, gotify, pushover, matrix, pagerduty, opsgenie, apprise) |
namekötelező | string |
is_default | boolean |
active | boolean |
apply_to_existing | boolean |
templates | object | null |
config | object |
secrets | object |
Válaszok
200404Not found403Authorization error401Unauthenticated422Validation error
GET /workspaces/{workspace}/notification-channels/{channel}
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
channelkötelező | path | integer | The channel ID |
Válaszok
200404Not found403Authorization error401Unauthenticated
PATCH /workspaces/{workspace}/notification-channels/{channel}
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
channelkötelező | path | integer | The channel ID |
Kéréstörzs
| Név | Típus |
|---|---|
type | ChannelType (email, webhook, slack, discord, teams, mattermost, google_chat, telegram, ntfy, gotify, pushover, matrix, pagerduty, opsgenie, apprise) |
name | string |
is_default | boolean |
active | boolean |
apply_to_existing | boolean |
templates | object | null |
config | object |
secrets | object |
Válaszok
200404Not found403Authorization error401Unauthenticated422Validation error
DELETE /workspaces/{workspace}/notification-channels/{channel}
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
channelkötelező | path | integer | The channel ID |
Válaszok
204No content404Not found403Authorization error401Unauthenticated
POST /workspaces/{workspace}/notification-channels/{channel}/test
Sends a test notification through a saved channel
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
channelkötelező | path | integer | The channel ID |
Válaszok
200404Not found403Authorization error401Unauthenticated