Skip to main content

post_updates

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

Overview

Namepost_updates
TypeResource
Idpagerduty.status_pages.post_updates

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the Post Update.
impacted_servicesarrayImpacted services represent the status page services affected by a post update, and its impact.
messagestringThe message of the Post Update.
notify_subscribersbooleanDetermines if the subscribers should be notified of the Post Update.
postobjectStatus Page Post
reported_atstring (date-time)The date and time the Post Update was reported.
reviewed_statusstringThe status of the Post Updates to retrieve. (approved, not_reviewed)
selfstringThe path to which the Post Update resource is accessible.
severityobjectStatus Page Severity
statusobjectStatus Page Status
typestringThe type of the object returned by the API - in this case, a Status Page Post Update.
update_frequency_msintegerThe frequency of the next Post Update in milliseconds.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectid, post_id, post_update_idGet a Post Update for a Post by Post ID and Post Update ID.<br /><br />Scoped OAuth requires: status_pages.read<br />
listselectid, post_idreviewed_statusList Post Updates for a Status Page by Status Page ID and Post ID.<br /><br />Scoped OAuth requires: status_pages.read<br />
createinsertid, post_id, post_updateCreate a Post Update for a Post by Post ID.<br /><br />Scoped OAuth requires: status_pages.write<br />
updateupdateid, post_id, post_update_id, post_updateUpdate a Post Update for a Post by Post ID and Post Update ID.<br /><br />Scoped OAuth requires: status_pages.write<br />
deletedeleteid, post_id, post_update_idDelete a Post Update for a Post by Post ID and Post Update ID.<br /><br />Scoped OAuth requires: status_pages.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.
post_idstringThe ID of the Status Page Post.
post_update_idstringThe ID of the Status Page Post Update.
reviewed_statusstringFilter by the reviewed status of the Post Update to retrieve.

SELECT examples

Get a Post Update for a Post by Post ID and Post Update ID.<br /><br />Scoped OAuth requires: status_pages.read<br />

SELECT
id,
impacted_services,
message,
notify_subscribers,
post,
reported_at,
reviewed_status,
self,
severity,
status,
type,
update_frequency_ms
FROM pagerduty.status_pages.post_updates
WHERE id = '{{ id }}' -- required
AND post_id = '{{ post_id }}' -- required
AND post_update_id = '{{ post_update_id }}' -- required
;

INSERT examples

Create a Post Update for a Post by Post ID.<br /><br />Scoped OAuth requires: status_pages.write<br />

INSERT INTO pagerduty.status_pages.post_updates (
post_update,
id,
post_id
)
SELECT
'{{ post_update }}' /* required */,
'{{ id }}',
'{{ post_id }}'
RETURNING
post_update
;

UPDATE examples

Update a Post Update for a Post by Post ID and Post Update ID.<br /><br />Scoped OAuth requires: status_pages.write<br />

UPDATE pagerduty.status_pages.post_updates
SET
post_update = '{{ post_update }}'
WHERE
id = '{{ id }}' --required
AND post_id = '{{ post_id }}' --required
AND post_update_id = '{{ post_update_id }}' --required
AND post_update = '{{ post_update }}' --required
RETURNING
post_update;

DELETE examples

Delete a Post Update for a Post by Post ID and Post Update ID.<br /><br />Scoped OAuth requires: status_pages.write<br />

DELETE FROM pagerduty.status_pages.post_updates
WHERE id = '{{ id }}' --required
AND post_id = '{{ post_id }}' --required
AND post_update_id = '{{ post_update_id }}' --required
;