Channel

Update a channel

Changed on

Updates a notification channel. A channel's type can't change: sending a different one returns 400.

patch/notification/channel/{id}

Request

  • Base URL
    https://api.nullplatform.com
  • URL
    https://api.nullplatform.com/notification/channel/{id}
  • Auth
    HTTP bearer

Path parameters

idinteger required

The ID of the channel to update.

Request body

status'active' | 'inactive'

Whether the channel receives notifications. Only active channels are matched when a notification is sent. New channels are created as active.

nrnstring

The NRN of the resource (including children resources) where the action will apply.

descriptionstring

An optional description for the notification channel.

sourcestring[]

A list of sources that the notification channel will listen to. Each source represents a specific type of notification.

type'slack' | 'http' | 'github' | 'gitlab' | 'azure' | 'bitbucket' | 'agent'

The type of notification channel.

filtersobject

A flexible object that uses MongoDB query syntax to define criteria for filtering notifications.

Note: See Notification filters for more info.

Example request

{
  "status": "active",
  "nrn": "organization=1:account=2:namespace=3:application=4",
  "description": "My Slack channel for approval notifications",
  "source": [
    "approval"
  ],
  "type": "slack",
  "configuration": {
    "channels": [
      "my-organization-private-channel"
    ]
  },
  "filters": {
    "action": "deployment:create"
  }
}

Response

The operation was successful.

Changes

    • info

      the request property ///// became optional

    • breaking

      for the path request parameter id, the type changed from string to integer

    • breaking

      the request property ///// became required

    • breaking

      the request property ///// became required

    • breaking

      the request property ///// became required

    • breaking

      the request property ///// became required

    • breaking

      the request property ///// became required

    • breaking

      the request property ///// became required

    • breaking

      the request property ///// became required

    • breaking

      the request property ///// became required

    • breaking

      the request property ///// became required

    • breaking

      the request property ///// became required

    • breaking

      the request property ////// became required

    • breaking

      the request property /////// became required

    • breaking

      the request property ////// became required

    • breaking

      the request property ///// became required

    • breaking

      the request property ///// became required

    • breaking

      removed the media type application/json for the response with the status

    • breaking

      the response property became optional for the status

    • breaking

      the response property became optional for the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • info

      added the new optional request property /////

    • info

      added the new optional request property

    • info

      added the new bitbucket enum value to the request property

    • info

      added the new checklist enum value to the request property /

    • info

      added to the request property oneOf list

    • info

      media type application/json was changed to a more specific media type application/problem+json for the response status

    • info

      media type application/json was changed to a more specific media type application/problem+json for the response status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      response property message deprecated

    • info

      response property message deprecated

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status