Subscribe a Slack or email channel to a view of the Activity feed. From now on the worker sends the channel one message for each operation that finishes and matches the filter. Operations that finished before are not sent. A retry that the worker runs by itself sends nothing until the operation ends. A person's Retry of a finished operation is a new result and sends once more. The channel's own event types, severities and target apply to its other notifications, not to its subscriptions. Every target, rule, connector, application and person in the filter must belong to the caller's organization (422). Webhook channels can't send subscriptions (422). Records notification.subscription.create. Organization administrators only.
Parameters
Notification channel ID (UUID)
Request body application/json · NotificationSubscriptionRequest
The Activity feed filter a subscription keeps: the dimensions GET /activity/operations filters by, named as the value lists of GET /activity/operations/facets (targets holds the ids target_id takes, and so on). An empty list does not narrow the view. statuses take only final results. Without statuses the subscription takes every final result. needs_action true keeps operations whose problem is still the last finished run of the same operation on the same object, as the feed decides it when the operation finishes.
10 fields
discoverydrift_check applybulk_apply bulksyncremediationcleanuptarget_delete succeededpartialneeds_decision failedcancelledpersonoperationschedulesystemOptional name the channel's delivery list shows next to what the subscription sent.
Responses
Created
NotificationSubscriptionResponse · 7 fields
The stored filter of a subscription. An empty list does not narrow the view.
10 fields
The person who created the subscription. Null when unknown or removed.
The filter names an object outside the caller's organization, or the channel can't send subscriptions.
Common errors: 400 401 403 404 409 413 429 503 504. They mean the same for every operation, see Errors.