Skip to main content

status_update_notification_rules

Creates, updates, deletes, gets or lists a status_update_notification_rules resource.

Overview

Namestatus_update_notification_rules
TypeResource
Idpagerduty.users.status_update_notification_rules

Fields

The following fields are returned by SELECT queries:

The user's status update notification rule requested.

NameDatatypeDescription
contact_methodobject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_user_status_update_notification_ruleselectX-EARLY-ACCESS, id, status_update_notification_rule_idAccept, Content-Type, include[]Get details about a user's status update notification rule.

Users are members of a PagerDuty account that have the ability to interact with Incidents and other data on the account.

<!-- theme: warning -->
> ### Early Access
> This endpoint is in Early Access and may change at any time. You must pass in the X-EARLY-ACCESS header to access it.

For more information see the API Concepts Document

Scoped OAuth requires: users.read
get_user_status_update_notification_rulesselectid, X-EARLY-ACCESSAccept, Content-Type, include[]List status update notification rules of your PagerDuty user.

Users are members of a PagerDuty account that have the ability to interact with Incidents and other data on the account.

<!-- theme: warning -->
> ### Early Access
> This endpoint is in Early Access and may change at any time. You must pass in the X-EARLY-ACCESS header to access it.

For more information see the API Concepts Document

Scoped OAuth requires: users.read
create_user_status_update_notification_ruleinsertX-EARLY-ACCESS, id, data__status_update_notification_ruleAccept, Content-TypeCreate a new status update notification rule.

Users are members of a PagerDuty account that have the ability to interact with Incidents and other data on the account.

<!-- theme: warning -->
> ### Early Access
> This endpoint is in Early Access and may change at any time. You must pass in the X-EARLY-ACCESS header to access it.

For more information see the API Concepts Document

Scoped OAuth requires: users.write
delete_user_status_update_notification_ruledeleteX-EARLY-ACCESS, id, status_update_notification_rule_idAccept, Content-TypeRemove a user's status update notification rule.

Users are members of a PagerDuty account that have the ability to interact with Incidents and other data on the account.

<!-- theme: warning -->
> ### Early Access
> This endpoint is in Early Access and may change at any time. You must pass in the X-EARLY-ACCESS header to access it.

For more information see the API Concepts Document

Scoped OAuth requires: users.write
_get_user_status_update_notification_rulesexecid, X-EARLY-ACCESSAccept, Content-Type, include[]List status update notification rules of your PagerDuty user.

Users are members of a PagerDuty account that have the ability to interact with Incidents and other data on the account.

<!-- theme: warning -->
> ### Early Access
> This endpoint is in Early Access and may change at any time. You must pass in the X-EARLY-ACCESS header to access it.

For more information see the API Concepts Document

Scoped OAuth requires: users.read
_get_user_status_update_notification_ruleexecX-EARLY-ACCESS, id, status_update_notification_rule_idAccept, Content-Type, include[]Get details about a user's status update notification rule.

Users are members of a PagerDuty account that have the ability to interact with Incidents and other data on the account.

<!-- theme: warning -->
> ### Early Access
> This endpoint is in Early Access and may change at any time. You must pass in the X-EARLY-ACCESS header to access it.

For more information see the API Concepts Document

Scoped OAuth requires: users.read
update_user_status_update_notification_ruleexecX-EARLY-ACCESS, id, status_update_notification_rule_id, status_update_notification_ruleAccept, Content-TypeUpdate a user's status update notification rule.

Users are members of a PagerDuty account that have the ability to interact with Incidents and other data on the account.

<!-- theme: warning -->
> ### Early Access
> This endpoint is in Early Access and may change at any time. You must pass in the X-EARLY-ACCESS header to access it.

For more information see the API Concepts Document

Scoped OAuth requires: users.write

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
X-EARLY-ACCESSstringThis header indicates that this API endpoint is UNDER CONSTRUCTION and may change at any time. You MUST pass in this header and the above value. Do not use this endpoint in production, as it may change!
idstringThe ID of the resource.
status_update_notification_rule_idstringThe status update notification rule ID on the user.
AcceptstringThe Accept header is used as a versioning header.
Content-Typestring
include[]stringArray of additional details to include.

SELECT examples

Get details about a user's status update notification rule.

Users are members of a PagerDuty account that have the ability to interact with Incidents and other data on the account.

<!-- theme: warning -->
> ### Early Access
> This endpoint is in Early Access and may change at any time. You must pass in the X-EARLY-ACCESS header to access it.

For more information see the API Concepts Document

Scoped OAuth requires: users.read

SELECT
contact_method
FROM pagerduty.users.status_update_notification_rules
WHERE X-EARLY-ACCESS = '{{ X-EARLY-ACCESS }}' -- required
AND id = '{{ id }}' -- required
AND status_update_notification_rule_id = '{{ status_update_notification_rule_id }}' -- required
AND Accept = '{{ Accept }}'
AND Content-Type = '{{ Content-Type }}'
AND include[] = '{{ include[] }}'
;

INSERT examples

Create a new status update notification rule.

Users are members of a PagerDuty account that have the ability to interact with Incidents and other data on the account.

<!-- theme: warning -->
> ### Early Access
> This endpoint is in Early Access and may change at any time. You must pass in the X-EARLY-ACCESS header to access it.

For more information see the API Concepts Document

Scoped OAuth requires: users.write

INSERT INTO pagerduty.users.status_update_notification_rules (
data__status_update_notification_rule,
X-EARLY-ACCESS,
id,
Accept,
Content-Type
)
SELECT
'{{ status_update_notification_rule }}' /* required */,
'{{ X-EARLY-ACCESS }}',
'{{ id }}',
'{{ Accept }}',
'{{ Content-Type }}'
RETURNING
status_update_notification_rule
;

DELETE examples

Remove a user's status update notification rule.

Users are members of a PagerDuty account that have the ability to interact with Incidents and other data on the account.

<!-- theme: warning -->
> ### Early Access
> This endpoint is in Early Access and may change at any time. You must pass in the X-EARLY-ACCESS header to access it.

For more information see the API Concepts Document

Scoped OAuth requires: users.write

DELETE FROM pagerduty.users.status_update_notification_rules
WHERE X-EARLY-ACCESS = '{{ X-EARLY-ACCESS }}' --required
AND id = '{{ id }}' --required
AND status_update_notification_rule_id = '{{ status_update_notification_rule_id }}' --required
AND Accept = '{{ Accept }}'
AND Content-Type = '{{ Content-Type }}'
;

Lifecycle Methods

List status update notification rules of your PagerDuty user.

Users are members of a PagerDuty account that have the ability to interact with Incidents and other data on the account.

<!-- theme: warning -->
> ### Early Access
> This endpoint is in Early Access and may change at any time. You must pass in the X-EARLY-ACCESS header to access it.

For more information see the API Concepts Document

Scoped OAuth requires: users.read

EXEC pagerduty.users.status_update_notification_rules._get_user_status_update_notification_rules 
@id='{{ id }}' --required,
@X-EARLY-ACCESS='{{ X-EARLY-ACCESS }}' --required,
@Accept='{{ Accept }}',
@Content-Type='{{ Content-Type }}',
@include[]='{{ include[] }}'
;