Docs

Type a word or a question. Esc closes the search.

Sign in Start free

Update a status page design template

Updates a status page design template with an expected revision and design specification.

PUT https://app.upfour.io/v1/status-page-design-templates/{templateID}
PUT https://app.upfour.io/v1/status-page-design-templates/{templateID}

A real request. Sending it changes data in your up4 account.

Authorization
AuthorizationA pls_ key. It stays in this browser tab. Needs status_page.write.
Path
Body
More fields4
keep_assets Update only: keep the template's own images. An update without any image source removes them.

1 more field is only available in JSON.

Sent directly from your browser to https://app.upfour.io/v1. Mutating calls get an automatic Idempotency-Key when the field is empty.

Request
Responsenot sent yet
Fill in a key and press Send request (⌘↵).
The answer appears here.
scope status_page.write stable returns 200

Parameters

FieldTypeDescription
templateID required uuid path parameter

Body

application/json optional 7 fields

expected_revisionintegerrequired

The revision the caller last read. A template that changed since answers 409 with code design_template_conflict.

namestringrequired

At most 80 characters.

specStatusPageDesignTemplateSpecrequired

The look of a page, at most 80 KiB. Unknown keys are refused; version must be 1 and appearance is required.

Nested fields 12 fields
FieldTypeDescription
accent_color optional string #RRGGBB or empty for the platform default.
appearance optional StatusPageAppearance
StatusPageAppearance · 5 fields
FieldTypeDescription
ground optional string one ofpaperwhitecool Empty is stored as paper.
header_dark optional string #RRGGBB or empty for the platform default.
header_light optional string #RRGGBB or empty for the platform default.
layout optional string one ofessentialbrandoverview
version optional integer Must be 1.
custom_css optional string At most 64 KiB; must not contain </style.
includes_css optional boolean Must be true for custom_css to be non-empty.
logo_url optional string External logo address, copied as text and never downloaded; only kept together with brand images.
theme optional string one ofsystemlightdark Empty is stored as system.
version optional integer
All other fields4 fields
asset_source_page_iduuid · nullable

Copy the brand images (and the logo URL) from this status page. At most one of asset_source_page_id, asset_source_template_id and keep_assets.

asset_source_template_iduuid · nullable

Copy the brand images (and the logo URL) from another template of the company.

descriptionstring

At most 240 characters.

keep_assetsboolean

Update only: keep the template's own images. An update without any image source removes them.

Returns

A successful request returns 200 with application/json.

Response fields 1 top-level fields
FieldTypeDescription
data StatusPageDesignTemplate
StatusPageDesignTemplate · 32 fields
FieldTypeDescription
accent_color string
asset_kinds string[] · nullable one oflogologo_darkfavicon The images the template stores, in the order logo, logo_dark, favicon.
assets StatusPageDesignTemplateAssetInfo[] · nullable
Each item · 4 fields
FieldTypeDescription
content_type string
kind string one oflogologo_darkfavicon
sha256 string
size_bytes integer
created_at string (date-time)
description string
ground string one ofpaperwhitecool
header_dark string
header_light string
id uuid
includes_css boolean
layout string one ofessentialbrandoverview
name string
revision integer Starts at 1 and rises with every update.
spec StatusPageDesignTemplateSpecResponse
StatusPageDesignTemplateSpecResponse · 12 fields
FieldTypeDescription
accent_color string #RRGGBB or empty for the platform default.
appearance StatusPageAppearanceResponse
StatusPageAppearanceResponse · 5 fields
FieldTypeDescription
ground string one ofpaperwhitecool Empty is stored as paper.
header_dark string #RRGGBB or empty for the platform default.
header_light string #RRGGBB or empty for the platform default.
layout string one ofessentialbrandoverview
version integer Must be 1.
custom_css string At most 64 KiB; must not contain </style.
includes_css boolean Must be true for custom_css to be non-empty.
logo_url string External logo address, copied as text and never downloaded; only kept together with brand images.
theme string one ofsystemlightdark Empty is stored as system.
version integer
theme string one ofsystemlightdark
updated_at string (date-time)

Errors

Only the errors this operation can return. Every error uses the same envelope.

Status Code Meaning
400 bad_request The request is malformed or fails validation.
409 design_template_conflict The design template was changed after the caller read it. When: Updating or applying a design template that was changed after the caller read it. Fix: Reload the template and apply the change again.
404 design_template_not_found The design template does not exist or is not visible to the caller. When: A design template id in the path or body that is unknown or not visible to the caller. Fix: List design templates and use an id from the list.
404 not_found The requested resource does not exist or is outside the caller's scope.
403 permission_denied The credentials do not permit this action.
200 / 410 / 413 / 422 request_failed The request could not be completed.

Every call can also return unauthorized (401), rate_limit_exceeded (429) or internal_error (500 / 502). See Responses and errors.