REST API áttekintés

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évHelyTípusLeírás
workspacekötelezőpathstring

The workspace slug

typequeryChannelType (email, webhook, slack, discord, teams, mattermost, google_chat, telegram, ntfy, gotify, pushover, matrix, pagerduty, opsgenie, apprise)
qquerystring
cursorquerystring

Opaque cursor taken from meta.next_cursor of the previous page; omit it for the first page.

limitqueryinteger

Page size.

Válaszok

  • 200
  • 422 Validation error
  • 404 Not found
  • 403 Authorization error
  • 401 Unauthenticated

POST /workspaces/{workspace}/notification-channels

Paraméterek

NévHelyTípusLeírás
workspacekötelezőpathstring

The workspace slug

Kéréstörzs

NévTípus
typekötelezőChannelType (email, webhook, slack, discord, teams, mattermost, google_chat, telegram, ntfy, gotify, pushover, matrix, pagerduty, opsgenie, apprise)
namekötelezőstring
is_defaultboolean
activeboolean
apply_to_existingboolean
templatesobject | null
configobject
secretsobject

Válaszok

  • 201
  • 404 Not found
  • 403 Authorization error
  • 401 Unauthenticated
  • 422 Validation 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évHelyTípusLeírás
workspacekötelezőpathstring

The workspace slug

Kéréstörzs

NévTípus
typekötelezőChannelType (email, webhook, slack, discord, teams, mattermost, google_chat, telegram, ntfy, gotify, pushover, matrix, pagerduty, opsgenie, apprise)
namekötelezőstring
is_defaultboolean
activeboolean
apply_to_existingboolean
templatesobject | null
configobject
secretsobject

Válaszok

  • 200
  • 404 Not found
  • 403 Authorization error
  • 401 Unauthenticated
  • 422 Validation error

GET /workspaces/{workspace}/notification-channels/{channel}

Paraméterek

NévHelyTípusLeírás
workspacekötelezőpathstring

The workspace slug

channelkötelezőpathinteger

The channel ID

Válaszok

  • 200
  • 404 Not found
  • 403 Authorization error
  • 401 Unauthenticated

PATCH /workspaces/{workspace}/notification-channels/{channel}

Paraméterek

NévHelyTípusLeírás
workspacekötelezőpathstring

The workspace slug

channelkötelezőpathinteger

The channel ID

Kéréstörzs

NévTípus
typeChannelType (email, webhook, slack, discord, teams, mattermost, google_chat, telegram, ntfy, gotify, pushover, matrix, pagerduty, opsgenie, apprise)
namestring
is_defaultboolean
activeboolean
apply_to_existingboolean
templatesobject | null
configobject
secretsobject

Válaszok

  • 200
  • 404 Not found
  • 403 Authorization error
  • 401 Unauthenticated
  • 422 Validation error

DELETE /workspaces/{workspace}/notification-channels/{channel}

Paraméterek

NévHelyTípusLeírás
workspacekötelezőpathstring

The workspace slug

channelkötelezőpathinteger

The channel ID

Válaszok

  • 204 No content
  • 404 Not found
  • 403 Authorization error
  • 401 Unauthenticated

POST /workspaces/{workspace}/notification-channels/{channel}/test

Sends a test notification through a saved channel

Paraméterek

NévHelyTípusLeírás
workspacekötelezőpathstring

The workspace slug

channelkötelezőpathinteger

The channel ID

Válaszok

  • 200
  • 404 Not found
  • 403 Authorization error
  • 401 Unauthenticated