Skip to main content

Create On Demand Notification

POST 

/alerts/api/v1/notification/ondemand

Create on demand notification for an alert. Supported channels are:

  1. Jira
  2. Email
  3. Slack
    info

    This endpoint is available on the Prisma Cloud Darwin release only.

    For details about the request body parameters required for each notification channel, see the following table:
Request ParametersJiraEmailSlack
alertIdRequiredRequiredRequired
onDemandNotificationConfig.integrationTypeRequiredRequiredRequired
onDemandNotificationConfig.templateIdRequiredNot requiredNot required
onDemandNotificationConfig.recipientsRequiredRequiredRequired
translation.bodyNot requiredOptionalOptional
translation.details.senderNot requiredRequiredRequired
translation.details.recipientsNot requiredRequiredRequired
translation.details.callbackUrlNot requiredOptionalOptional
translation.details.assetCallbackUrlNot requiredOptionalOptional

Request

Body

    alertId stringrequired

    Id of the alert for which Notification needs to be sent

    onDemandNotificationConfig objectrequired
    id string

    Id of the alert for which Notification needs to be sent

    clientId string

    Id to identify the category of request. For Jira, Email, Slack, it can be CS

    generatorType string

    For ad-hoc notification, its value should be REALTIME

    integrationType stringrequired

    Can be either Jira, Email or Slack

    templateId stringrequired

    Jira template Id

    recipients string[]required

    List of Integration id for jira or email for email or channel for slack etc.

    translation object
    body stringrequired

    Message Body. Applicable for email and slack.

    details object

    Its a map of key-value pair. It contains details like Subject, Alert Url, Asset Url etc.

    property name* string
    attachments string[]

    This field contains the list of paths to the S3 file from where the attachment needs to be fetched.

Responses

Created

Schema
    success integer
    failed integer
    successfulEvents object
    recipient object
    customerId integer
    clientId string
    metaData object
    notificationId string
    failedEvents object
Loading...