NOTE

Creating creating new Updates on a notice will fire the pages configured publishers such as Twitter & Facebook.

Endpoint & Available Methods

https://api.sorryapp.com/v1/pages/:page_id/notices/:notice_id/updates/(:update_id)

The Update Object

These are the attributes which represent the object, most of which can be posted too and received in response to the actions.

Attribute Name Description
id The unique identifier for the page.
content The text content for this particular update.
created_at The date/time the record was created.
updated_at The date/time the record was last updated.

List Update

GET https://api.sorryapp.com/v1/pages/:page_id/notices/:notice_id/updates

Example Request

curl -X GET https://api.sorryapp.com/v1/pages/:page_id/notices/:notice_id/updates \
  -H "Authorization: Bearer 0526ff9fdbb3ca728daa3d17781eac1a15a1c3f0917abc53394d17ecdc8a8751"

Example Response

{"response":[{"id":1,"content":"We are currently experiencing issues...","created_at":"2016-02-09 14:39:21 +0000","updated_at":"2016-02-09 14:39:21 +0000"}],"count":1}

Create Update

POST https://api.sorryapp.com/v1/pages/:page_id/notices/:notice_id/updates

Example Request

curl -X POST https://api.sorryapp.com/v1/pages/:page_id/notices/:notice_id/updates \
  -d content="We're currently experiencing issues." \
  -H "Authorization: Bearer 0526ff9fdbb3ca728daa3d17781eac1a15a1c3f0917abc53394d17ecdc8a8751"

Example Response

{"response":{"id":1,"content":"We are currently experiencing issues...","created_at":"2016-02-09 14:39:21 +0000","updated_at":"2016-02-09 14:39:21 +0000"}}

Retrieve Update

GET https://api.sorryapp.com/v1/pages/:page_id/notices/:notice_id/updates/:update_id

Example Request

curl -X GET https://api.sorryapp.com/v1/pages/:page_id/notices/:notice_id/updates/:update_id \
  -H "Authorization: Bearer 0526ff9fdbb3ca728daa3d17781eac1a15a1c3f0917abc53394d17ecdc8a8751"

Example Response

{"response":{"id":1,"content":"We are currently experiencing issues...","created_at":"2016-02-09 14:39:21 +0000","updated_at":"2016-02-09 14:39:21 +0000"}}

Update Update

PATCH https://api.sorryapp.com/v1/pages/:page_id/notices/:notice_id/updates/:update_id

Example Request

curl -X PATCH https://api.sorryapp.com/v1/pages/:page_id/notices/:notice_id/updates/:update_id \
  -d content="We've found the cause of the issue and continue to work on a fix." \
  -H "Authorization: Bearer 0526ff9fdbb3ca728daa3d17781eac1a15a1c3f0917abc53394d17ecdc8a8751"

Example Response

{"response":{"id":1,"content":"We are currently experiencing issues...","created_at":"2016-02-09 14:39:21 +0000","updated_at":"2016-02-09 14:39:21 +0000"}}

Delete Update

DELETE https://api.sorryapp.com/v1/pages/:page_id/notices/:notice_id/updates/:update_id

Example Request

curl -X DELETE https://api.sorryapp.com/v1/pages/:page_id/notices/:notice_id/updates/:update_id \
  -H "Authorization: Bearer 0526ff9fdbb3ca728daa3d17781eac1a15a1c3f0917abc53394d17ecdc8a8751"