Update resource subscription

Update an existing resource subscription's delivery schedule or recipients.

Supplied emails and slackChannelIDs replace their complete recipient lists; omission retains them. emails must remain nonempty, while [] clears Slack channels. Schedule fields use the subscription's timeZone, or UTC when it has none. A timeZone cannot be cleared; to set one on a UTC subscription, send hourOfDay and dayOfWeek in that zone in the same request. Delivery needs dayOfWeek for weekly schedules and both dayOfWeek and weekOfMonth (FIRST or LAST occurrence of that weekday) for monthly schedules. The API accepts schedules missing these fields, but they never match a delivery schedule.

PATCH cannot move a subscription to another resource or tenant.

Path Params
uuid
required
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$

Unique resource subscription ID

Body Params
emails
array of strings

Subscription emails. May be empty while the subscription posts to a Slack channel; a subscription with neither is refused.

emails
string
enum

Report frequency

Allowed:
string
enum

Report delivery hour, in the subscription's time zone, or in UTC when it has none

string
enum

Report delivery day, in the subscription's time zone, or in UTC when it has none

Allowed:
slackChannelIDs
array of strings

Slack channel IDs to send notifications to

slackChannelIDs
string

IANA time zone the schedule is in, such as America/New_York. Omitted, the zone is unchanged; it cannot be cleared. Setting a zone on a subscription that has none moves its schedule out of UTC, so send hourOfDay, and dayOfWeek for weekly and monthly schedules, in the new zone in the same request.

string
enum

Report delivery week of the month, in the subscription's time zone, or in UTC when it has none

Allowed:
Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json