Skip to main content

status_updates

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

Overview

Namestatus_updates
TypeResource
Idpagerduty.incidents.status_updates

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
createinsertid, messageFromCreate a new status update for the specified incident. Optionally pass subject and html_message properties in the request body to override the email notification that gets sent.<br /><br />An incident represents a problem or an issue that needs to be addressed and resolved.<br /><br />For more information see the [API Concepts Document](https:​//developer.pagerduty.com/api-reference/a47605517c19a-api-concepts#incidents)<br /><br />Scoped OAuth requires: incidents.write<br />

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
idstringThe ID of the resource.
Fromstring (email)The email address of a valid user associated with the account making the request.

INSERT examples

Create a new status update for the specified incident. Optionally pass subject and html_message properties in the request body to override the email notification that gets sent.<br /><br />An incident represents a problem or an issue that needs to be addressed and resolved.<br /><br />For more information see the [API Concepts Document](https:​//developer.pagerduty.com/api-reference/a47605517c19a-api-concepts#incidents)<br /><br />Scoped OAuth requires: incidents.write<br />

INSERT INTO pagerduty.incidents.status_updates (
message,
subject,
html_message,
id,
"From"
)
SELECT
'{{ message }}' /* required */,
'{{ subject }}',
'{{ html_message }}',
'{{ id }}',
'{{ From }}'
RETURNING
status_update
;