Link an incident to status pages
const url = 'https://api.perstat.io/organizations/example/incidents/example/pages';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"status_page_ids":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.perstat.io/organizations/example/incidents/example/pages \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "status_page_ids": [ "example" ] }'Links the incident to one or more of the organization’s status pages so it appears there. Linking is additive and idempotent; use the unlink operation to remove a link. Page ids that do not belong to the organization return 400. Requires the incident command plan capability, otherwise 402. Accepts API keys with the incidents:write scope, subject to current role and resource grants.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Incident explizit auf gewählte Status-Seiten publizieren (Public-IDs).
object
Examplegenerated
{ "status_page_ids": [ "example" ]}Responses
Section titled “Responses”Request succeeded. The response body contains the result.
The request is invalid. Check the supplied fields and values.
Authentication is missing or invalid.
The request exceeds an entitlement or limit of the current plan.
The authenticated caller does not have permission to perform this operation.
No accessible resource matches the supplied identifier.