I would like to be able to update the status of a component using the API. I need to know the set of acceptable status values. In the component edit screen I can set the component status to "Operational", "Degraded Performance", ...
But when I use the API as in:
curl -X PATCH https://api.statuspage.io/v1/pages/{page_id}/components/{comp_id}?api_key={my_key} -H "Content-Type: application/json" --data '{"component":{"status": "operational"}}'
it fails if I try to set status to anything other than "operational".
What is the list of acceptable status values?
Hi @George Howitt , the acceptable values for component status are shown here (expand the "request body schema"):
https://developer.statuspage.io/#operation/patchPagesPageIdComponentsComponentId
Here's the full list:
Okay, they are documented under "request body schema", thanks alot.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.