Docs

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

Sign in Start free

Update an SLA policy

Replaces an SLA policy's uptime target, scope, rolling window and business hours.

PUT https://app.upfour.io/v1/sla-policies/{policyID}
PUT https://app.upfour.io/v1/sla-policies/{policyID}

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

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

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 report.write stable returns 200

Parameters

FieldTypeDescription
policyID required uuid path parameter

Body

application/json required 7 fields

namestringrequired
target_pctnumberrequired

The uptime target in percent, above 0 and at most 100, e.g. 99.9.

All other fields7 fields
business_hoursBusinessHours · nullable

Restricts the measurement to these hours; without it the policy measures around the clock.

Nested fields 2 fields
FieldTypeDescription
days optional map of string[][] The weekdays measured, keyed by ISO weekday from 1 (Monday) to 7 (Sunday); each lists its [start, end) windows as HH:MM pairs in tz. A day with no windows is excluded; at least one window is required, and windows of a day may not overlap.
tz optional string IANA time zone name; UTC when empty.
client_iduuid · nullable
degraded_counts_as_violationboolean
monitor_iduuid · nullable

Scopes the policy to one monitor; without it the policy is the default of its client or Company.

window_daysinteger

The rolling window, 1 to 730 days; 30 when omitted or 0.

Returns

A successful request returns 200 with application/json.

Response fields 1 top-level fields
FieldTypeDescription
data SLAPolicy
SLAPolicy · 14 fields
FieldTypeDescription
created_at string (date-time)
degraded_counts_as_violation boolean
id uuid
name string
organization_id uuid
target_pct number The uptime target in percent.
updated_at string (date-time)
window_days integer
business_hours BusinessHoursResponse
BusinessHoursResponse · 2 fields
FieldTypeDescription
days map of string[][] · nullable The weekdays measured, keyed by ISO weekday from 1 (Monday) to 7 (Sunday); each lists its [start, end) windows as HH:MM pairs in tz. A day with no windows is excluded; at least one window is required, and windows of a day may not overlap.
tz string IANA time zone name; UTC when empty.
client_id uuid
created_by uuid
monitor_id uuid

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.
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.

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