API · v1.4.0
Status pages
6 végpont. Az útvonalak a saját példánya /api/v1 címéhez képest értendők; a hitelesítést az áttekintő oldal írja le.
GET /workspaces/{workspace}/status-pages
Lists the status pages of the workspace without their layout
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
cursor | query | string | Opaque cursor taken from |
limit | query | integer | Page size. |
Válaszok
200404Not found403Authorization error401Unauthenticated
POST /workspaces/{workspace}/status-pages
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
Kéréstörzs
| Név | Típus |
|---|---|
slugkötelező | string |
titlekötelező | string |
description | string | null |
custom_domain | string | null |
published | boolean |
locale | en | hu |
accent_color | string | null |
logo_url | string | null |
favicon_url | string | null |
custom_css | string | null |
footer | string | null |
bar_days | integer |
uptime_days | 1 | 7 | 30 | 90 | 365 |
upcoming_maintenance_days | integer |
incident_history_days | integer |
show_latency | boolean |
Válaszok
201404Not found403Authorization error401Unauthenticated422Validation error
GET /workspaces/{workspace}/status-pages/{statusPage}
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
statusPagekötelező | path | integer | The status page ID |
Válaszok
200404Not found403Authorization error401Unauthenticated
PATCH /workspaces/{workspace}/status-pages/{statusPage}
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
statusPagekötelező | path | integer | The status page ID |
Kéréstörzs
| Név | Típus |
|---|---|
slug | string |
title | string |
description | string | null |
custom_domain | string | null |
published | boolean |
locale | en | hu |
accent_color | string | null |
logo_url | string | null |
favicon_url | string | null |
custom_css | string | null |
footer | string | null |
bar_days | integer |
uptime_days | 1 | 7 | 30 | 90 | 365 |
upcoming_maintenance_days | integer |
incident_history_days | integer |
show_latency | boolean |
Válaszok
200404Not found403Authorization error401Unauthenticated422Validation error
DELETE /workspaces/{workspace}/status-pages/{statusPage}
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
statusPagekötelező | path | integer | The status page ID |
Válaszok
204No content404Not found403Authorization error401Unauthenticated
PUT /workspaces/{workspace}/status-pages/{statusPage}/layout
Replaces all sections and items of the page. The order of the arrays is the display order
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
statusPagekötelező | path | integer | The status page ID |
Kéréstörzs
| Név | Típus |
|---|---|
sectionskötelező | list<object> |
Válaszok
200404Not found403Authorization error401Unauthenticated422Validation error