Docs
Live demo
PUT/api/v2/notifications/channels/{id}/subscriptions/{subscription_id}

Replace the name and the filter of an Activity subscription of the channel. Operations that already sent a message are not sent again. Records notification.subscription.update. Organization administrators only.

Parameters

Path2 required of 2
idstring · uuidpathrequired

Notification channel ID (UUID)

subscription_idstring · uuidpathrequired

Activity subscription ID (UUID)

Request body application/json · NotificationSubscriptionRequest

Required1 of 2 fields

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
kindsarray of string
discoverydrift_checkapplybulk_applybulksyncremediationcleanuptarget_delete
max items 10
statusesarray of string
succeededpartialneeds_decisionfailedcancelled
max items 5
targetsarray of string · uuid
max items 50
rulesarray of string · uuid
max items 50
connectorsarray of string · uuid
max items 50
applicationsarray of string · uuid
max items 50
started_byarray of string
personoperationschedulesystem
max items 4
peoplearray of string · uuid
max items 50
routineboolean
can be null
needs_actionboolean
can be null
Optional1 field
namestring

Optional name the channel's delivery list shows next to what the subscription sent.

max length 200

Responses

200

OK

NotificationSubscriptionResponse · 7 fields
idstring · uuidrequired
channel_idstring · uuidrequired
namestringrequired

The stored filter of a subscription. An empty list does not narrow the view.

10 fields
kindsarray of stringrequired
statusesarray of stringrequired
targetsarray of string · uuidrequired
rulesarray of string · uuidrequired
connectorsarray of string · uuidrequired
applicationsarray of string · uuidrequired
started_byarray of stringrequired
peoplearray of string · uuidrequired
routinebooleanrequired
can be null
needs_actionbooleanrequired
can be null
created_bystring · uuidrequired

The person who created the subscription. Null when unknown or removed.

can be null
created_atstring · date-timerequired
updated_atstring · date-timerequired
422

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.

↑ ↓ to moveEnter to openEsc to close