REST API áttekintés

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évHelyTípusLeírás
workspacekötelezőpathstring

The workspace slug

cursorquerystring

Opaque cursor taken from meta.next_cursor of the previous page; omit it for the first page.

limitqueryinteger

Page size.

Válaszok

  • 200
  • 404 Not found
  • 403 Authorization error
  • 401 Unauthenticated

POST /workspaces/{workspace}/status-pages

Paraméterek

NévHelyTípusLeírás
workspacekötelezőpathstring

The workspace slug

Kéréstörzs

NévTípus
slugkötelezőstring
titlekötelezőstring
descriptionstring | null
custom_domainstring | null
publishedboolean
localeen | hu
accent_colorstring | null
logo_urlstring | null
favicon_urlstring | null
custom_cssstring | null
footerstring | null
bar_daysinteger
uptime_days1 | 7 | 30 | 90 | 365
upcoming_maintenance_daysinteger
incident_history_daysinteger
show_latencyboolean

Válaszok

  • 201
  • 404 Not found
  • 403 Authorization error
  • 401 Unauthenticated
  • 422 Validation error

GET /workspaces/{workspace}/status-pages/{statusPage}

Paraméterek

NévHelyTípusLeírás
workspacekötelezőpathstring

The workspace slug

statusPagekötelezőpathinteger

The status page ID

Válaszok

  • 200
  • 404 Not found
  • 403 Authorization error
  • 401 Unauthenticated

PATCH /workspaces/{workspace}/status-pages/{statusPage}

Paraméterek

NévHelyTípusLeírás
workspacekötelezőpathstring

The workspace slug

statusPagekötelezőpathinteger

The status page ID

Kéréstörzs

NévTípus
slugstring
titlestring
descriptionstring | null
custom_domainstring | null
publishedboolean
localeen | hu
accent_colorstring | null
logo_urlstring | null
favicon_urlstring | null
custom_cssstring | null
footerstring | null
bar_daysinteger
uptime_days1 | 7 | 30 | 90 | 365
upcoming_maintenance_daysinteger
incident_history_daysinteger
show_latencyboolean

Válaszok

  • 200
  • 404 Not found
  • 403 Authorization error
  • 401 Unauthenticated
  • 422 Validation error

DELETE /workspaces/{workspace}/status-pages/{statusPage}

Paraméterek

NévHelyTípusLeírás
workspacekötelezőpathstring

The workspace slug

statusPagekötelezőpathinteger

The status page ID

Válaszok

  • 204 No content
  • 404 Not found
  • 403 Authorization error
  • 401 Unauthenticated

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évHelyTípusLeírás
workspacekötelezőpathstring

The workspace slug

statusPagekötelezőpathinteger

The status page ID

Kéréstörzs

NévTípus
sectionskötelezőlist<object>

Válaszok

  • 200
  • 404 Not found
  • 403 Authorization error
  • 401 Unauthenticated
  • 422 Validation error