Skip to content

Update a status page

PATCH
/api/v1/status-pages/{pageId}
curl --request PATCH \
--url https://app.monitorly.cloud/api/v1/status-pages/PAGE_ID \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "accentColor": "example", "access": "public", "hideBranding": true, "password": "example", "published": true, "slug": "example", "theme": { "dark": { "background": "example", "border": "example", "muted": "example", "surface": "example", "text": "example" }, "font": "system", "layout": "list", "light": { "background": "example", "border": "example", "muted": "example", "surface": "example", "text": "example" }, "links": [ { "label": "example", "url": "example" } ], "mode": "auto", "radius": "none" }, "title": "example", "websiteUrl": "example" }'

Changes the slug, the title or whether the page is published (editor role), or the website link and the accent colour (project admin). A field left out is not changed; null clears the link and the colour. The accent must keep white text readable (contrast 4.5:1).

pageId
required
string format: uuid

The status page’s id.

Example

PAGE_ID
Media typeapplication/json
object
accentColor

#rrggbb, white text on it at least 4.5:1 (status_page.accent_contrast_low); null returns to the product accent. Project admin.

string | null
access
One of:

Who may open the page. Project admin. password needs password here or a stored one (status_page.password_required). Every change signs all visitors out.

string
Allowed values: public password members
hideBranding

Leave out “Powered by Monitorly Cloud” (a plan that includes it, else 403 plan.feature_unavailable).

boolean | null
password

A new page password, 12–1024 characters; never answered. Project admin. Signs all visitors out.

string | null
published
boolean | null
slug
string | null
theme
One of:

Replaces the whole theme; null (or {}) is the product’s own look. Project admin. Contrast below 4.5:1 for text or 3:1 for muted gets status_page.theme_contrast_low at the foreground colour.

object
dark
One of:

The colours of the dark scheme; the product’s own when left out.

object
background
required

Behind the page.

string
border
required

Lines between rows and around panels.

string
muted
required

Secondary text and field edges: at least 3:1 on background and on surface.

string
surface
required

Panels, cards and the header.

string
text
required

Text: at least 4.5:1 on background and on surface.

string
font
One of:

The page’s text face. Every one but system is served by status-web itself (OFL fonts, no third-party requests); system uses the visitor’s own interface font.

string
Allowed values: system inter ibm-plex-sans geist jetbrains-mono space-grotesk source-serif
layout
One of:

list when left out.

string
Allowed values: list compact
light
One of:

The colours of the light scheme; the product’s own when left out.

object
background
required

Behind the page.

string
border
required

Lines between rows and around panels.

string
muted
required

Secondary text and field edges: at least 3:1 on background and on surface.

string
surface
required

Panels, cards and the header.

string
text
required

Text: at least 4.5:1 on background and on surface.

string
links

Up to 5 links in the page header, in this order.

Array<object>

A link in the page header, between the page name and the website link.

object
label
required

1–32 characters on one line.

string
url
required

An absolute http or https URL with a host, at most 2048 characters.

string
mode
One of:

auto when left out.

string
Allowed values: auto light dark
radius
One of:

medium when left out.

string
Allowed values: none small medium large
title
string | null
websiteUrl

Absolute http(s) URL; null removes the link. Project admin.

string | null

The page.

Media typeapplication/json
object
accentColor

#rrggbb: the page’s accent instead of the product’s; white text on it has at least 4.5:1 contrast.

string | null
access

Who may open the published page. Always sent; optional in the schema because it was added after the first clients.

string
Allowed values: public password members
components
required
Array<object>
object
checkId
required
string format: uuid
followsCheck

The name is the check’s and changes when the check is renamed; false once another name was written. Always sent; optional in the schema because it was added after the first clients.

boolean
group

Heading the component is listed under on the page; null for the ungrouped list.

string | null
id
required
string format: uuid
name
required
string
position
required
integer format: int32
ref

The component’s key in a config file, unique on the page; null for components made in the dashboard. Always sent; optional in the schema because it was added after the first clients.

string | null
customDomain
One of:

The page’s custom domain, null without one. Always sent; optional in the schema.

object
checkedAt
string | null
cnameTarget

The CNAME record: domain → this host.

string | null
detail

The resolver’s message for dns_error.

string | null
domain
required

Lower case, IDN in its ASCII form (xn--…).

string
nextCheckAt
required
string
reason

Why the last check did not verify: txt_missing, txt_mismatch or dns_error; null after a verification.

string | null
state
required
string
Allowed values: pending verified failed
txtName
required

The TXT record’s name: _monitorly.<domain>.

string
txtValue
required

The TXT record’s value: monitorly-verification=<token>.

string
url
required

https://<domain>: the page’s address once the domain is verified.

string
verifiedAt
string | null
emailSubscriberCount

Confirmed email subscribers. Always sent; optional in the schema.

integer format: int64
emailSubscriptions

Visitors can subscribe by email (the installation sends email). Always sent; optional in the schema.

boolean
hasPassword

A page password is stored (it is never answered). Always sent; optional in the schema.

boolean
hideBranding

The page leaves out “Powered by Monitorly Cloud” (Business plan). Always sent; optional in the schema.

boolean
id
required
string format: uuid
logos
required
object
dark
One of:
object
contentType
required

image/png, image/webp or image/svg+xml.

string
etag
required

The ETag the public page serves the file with (first 16 bytes of its SHA-256, hex).

string
sizeBytes
required
integer format: int32
updatedAt
required
string
light
One of:
object
contentType
required

image/png, image/webp or image/svg+xml.

string
etag
required

The ETag the public page serves the file with (first 16 bytes of its SHA-256, hex).

string
sizeBytes
required
integer format: int32
updatedAt
required
string
managedBy

config when a config apply manages the page, ui otherwise. Always sent; optional in the schema because it was added after the first clients.

string
Allowed values: ui config
projectId
required
string format: uuid
publicUrl

The page’s public address (<status host>/<slug>), also while it is a draft (it answers 404 until the page is published); null when the installation has no status page address.

string | null
published
required
boolean
ref

The page’s key in a config file; null until a config apply creates or adopts it. Always sent; optional in the schema because it was added after the first clients.

string | null
slug
required
string
subscribeUrl

https://t.me/<bot>?start=sub_<code>: the page’s “Subscribe” link; null without a bot username.

string | null
subscriberCount
required

Telegram chats subscribed to the page’s posts (active ones).

integer format: int64
theme
One of:

The hosted page’s theme; null is the product’s own look. Always sent; optional in the schema.

object
dark
One of:

The colours of the dark scheme; the product’s own when left out.

object
background
required

Behind the page.

string
border
required

Lines between rows and around panels.

string
muted
required

Secondary text and field edges: at least 3:1 on background and on surface.

string
surface
required

Panels, cards and the header.

string
text
required

Text: at least 4.5:1 on background and on surface.

string
font
One of:

The page’s text face. Every one but system is served by status-web itself (OFL fonts, no third-party requests); system uses the visitor’s own interface font.

string
Allowed values: system inter ibm-plex-sans geist jetbrains-mono space-grotesk source-serif
layout
One of:

list when left out.

string
Allowed values: list compact
light
One of:

The colours of the light scheme; the product’s own when left out.

object
background
required

Behind the page.

string
border
required

Lines between rows and around panels.

string
muted
required

Secondary text and field edges: at least 3:1 on background and on surface.

string
surface
required

Panels, cards and the header.

string
text
required

Text: at least 4.5:1 on background and on surface.

string
links

Up to 5 links in the page header, in this order.

Array<object>

A link in the page header, between the page name and the website link.

object
label
required

1–32 characters on one line.

string
url
required

An absolute http or https URL with a host, at most 2048 characters.

string
mode
One of:

auto when left out.

string
Allowed values: auto light dark
radius
One of:

medium when left out.

string
Allowed values: none small medium large
title
required
string
updatedAt
required
string
websiteUrl

The company site the page header links to.

string | null

Example

{
"access": "public",
"components": [
{
"checkId": "CHECK_ID",
"id": "ID"
}
],
"customDomain": {
"state": "pending"
},
"id": "ID",
"managedBy": "ui",
"projectId": "PROJECT_ID",
"theme": {
"font": "system",
"layout": "list",
"mode": "auto",
"radius": "none"
}
}

Bad Request.

  • request.malformed: the body or a parameter is not of the expected shape
  • auth.credentials_conflict: the request carries both a session cookie and a token
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}

Unauthorized.

  • auth.unauthenticated, auth.session_expired: no session, or it ended
  • token.invalid: the token is malformed, unknown, revoked or expired, or its creator left the workspace
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}

Forbidden.

  • auth.forbidden: your role is too low for this
  • token.scope_missing: the token lacks the scope this needs; detail names it
  • request.origin_mismatch, request.header_required: a changing request with a session comes from another site or lacks X-Monitorly-Request: 1
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}

Not Found.

  • request.not_found: it does not exist, or you cannot see it
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}

Conflict.

  • status_page.slug_taken: slug already belongs to another page
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}

Payload Too Large.

  • request.too_large: the body is larger than 256 KiB
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}

Unprocessable Entity.

  • field.required, field.too_long, field.invalid: a field breaks a rule; errors points at it
  • status_page.slug_invalid: slug does not match ^[a-z0-9][a-z0-9-]{1,62}$
  • status_page.slug_reserved: the slug is reserved: healthz, readyz, metrics
  • status_page.components_required: publishing a page that has no components: a new page is created as a draft, and published: true needs at least one component (/published)
  • status_page.accent_contrast_low: contrast of white text on the accent color is less than 4.5:1 (params.ratio)
  • status_page.password_required: access password without a password (neither in the request nor stored)
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}

Too Many Requests.

  • token.rate_limited: more than 10 requests a second with this token
  • session.rate_limited: more than 5 changes a second from your sessions
Media typeapplication/problem+json
object
detail
string | null
errors
required

Field errors, empty for errors of the whole request.

Array<object>
object
code
required
string
params
required
object
key
additional properties
pointer
required

JSON pointer into the request body.

string
status
required
integer format: int32
title
required
string
type
required

Stable code, for example check.timeout_exceeds_interval.

string

Example generated

{
"detail": "example",
"errors": [
{
"code": "example",
"params": {
"additionalProperty": "example"
},
"pointer": "example"
}
],
"status": 1,
"title": "example",
"type": "example"
}
Retry-After
integer
>= 1

Seconds to wait before trying again.