Docs

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

Sign in Start free

Preview a client template

Previews a Client template for a Client using supplied name, slug, contact email and domain values.

POST https://app.upfour.io/v1/client-templates/{templateID}/dry-run
POST https://app.upfour.io/v1/client-templates/{templateID}/dry-run

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

Authorization
AuthorizationA pls_ key. It stays in this browser tab. Needs client.write.
Path
Body
More fields4
Headers

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 client.write stable Idempotency-Key supported returns 200

Parameters

FieldTypeDescription
templateID required uuid path parameter

Body

application/json required 5 fields

client_iduuidrequired

The client to preview the template for.

All other fields4 fields
client_namestring

Fills {{client_name}}.

client_slugstring

Fills {{client_slug}}.

contact_emailstring

Fills {{contact_email}}.

domainstring

Fills {{domain}}. Required when the template uses it.

Returns

A successful request returns 200 with application/json.

Response fields 1 top-level fields
FieldTypeDescription
data TemplateDryRunResult
TemplateDryRunResult · 32 fields
FieldTypeDescription
monitors TemplateMonitorPreview[] · nullable
Each item · 11 fields
FieldTypeDescription
alarm_route_status string one ofconfiguredwithout_alarm_route
name string
channels MaterializedChannel[]
Each item · 4 fields
FieldTypeDescription
id uuid
name string
scope string
type string
warnings MaterializeError[]
Each item · 3 fields
FieldTypeDescription
kind string one oftemplatemonitormonitor_alarm_routepolicystatus_page
message string
name string
policies TemplatePolicyPreview[] · nullable
Each item · 7 fields
FieldTypeDescription
channels MaterializedChannel[] · nullable
Each item · 4 fields
FieldTypeDescription
id uuid
name string
scope string
type string
name string
step_count integer
status_pages TemplateStatusPagePreview[] · nullable
Each item · 11 fields
FieldTypeDescription
design TemplateStatusPageDesignPreview · nullable
TemplateStatusPageDesignPreview · 8 fields
FieldTypeDescription
apply_assets boolean
apply_css boolean
asset_kinds string[] · nullable
id uuid
includes_css boolean
layout string
name string
revision integer
name string
subdomain string

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.

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