Docs

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

Sign in Start free

Pin an incident comment

Pins a note as a team insight at the top of the incident and returns the updated incident detail. Pinning notifies nobody.

PUT https://app.upfour.io/v1/incidents/{incidentID}/comments/{commentID}/pin
PUT https://app.upfour.io/v1/incidents/{incidentID}/comments/{commentID}/pin

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

Authorization
AuthorizationA pls_ key. It stays in this browser tab. Needs incident.write.
Path

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

Parameters

FieldTypeDescription
incidentID required uuid path parameter
commentID required uuid path parameter

Returns

A successful request returns 200 with application/json.

Response fields 1 top-level fields
FieldTypeDescription
data IncidentDetail
IncidentDetail · 138 fields
FieldTypeDescription
acknowledged_at string (date-time) · nullable
acknowledged_by IncidentAcknowledger · nullable Who acknowledged the current alarm, from the latest acknowledgement in the timeline. Null while unacknowledged; user_id is null when an alert channel action acknowledged it.
IncidentAcknowledger · 2 fields
FieldTypeDescription
name string
user_id uuid · nullable
cause string
check_method string
check_url string
client_id uuid · nullable
correlated_count integer
created_at string (date-time)
created_by string
description string
domain_case_id uuid · nullable
duration_seconds integer · nullable From started_at to resolved_at, or to now while the incident is open.
escalation IncidentEscalationView · nullable
IncidentEscalationView · 30 fields
FieldTypeDescription
current_step integer
escalation_id uuid
has_escalation boolean
manual_pending boolean
policy_id uuid The alert plan that runs.
policy_name string The alert plan's name.
repeat_count integer
repeat_iteration integer
repeat_push_count integer
repeat_push_max integer
source_incident_id uuid The incident that owns this alert plan run: this incident, the first short incident of its alert episode, or in a domain case the member that started the case's plan. POST /v1/incidents/{incidentID}/escalate works only on this incident; any other answers 400 naming it.
status string one ofactivepausedcompletedstopped
step_count integer
current_step_label string
current_step_recipients IncidentEscalationRecipient[] Who the step that last fired reaches. Only on GET /v1/incidents/{incidentID}.
Each item · 4 fields
FieldTypeDescription
kind string one ofuserschedulechannel user for a person (the owner of an app channel, or who is on call for a rotation), schedule for a rotation nobody can be resolved for, channel for any other alert channel.
name string The person's display name, the rotation's name or the channel's name.
channel_types string[] The alert channel types the step reaches this recipient on, for example email, sms, voice or mobile. Absent for a rotation without anyone on call.
schedule_name string For a person resolved from a rotation, the rotation's name.
next_reminder_at string (date-time) When the next reminder goes out: next_step_at when that step belongs to a repeat lap of the plan, which every channel the plan reached before receives as a reminder. Absent during the first lap, when no step is scheduled, and while the incident is acknowledged.
next_repeat_push_at string (date-time)
next_step IncidentEscalationNextStep
IncidentEscalationNextStep · 7 fields
FieldTypeDescription
label string
position integer
recipients IncidentEscalationRecipient[] Who the next step reaches, with rotations resolved for next_step_at. Only on GET /v1/incidents/{incidentID}.
Each item · 4 fields
FieldTypeDescription
kind string one ofuserschedulechannel user for a person (the owner of an app channel, or who is on call for a rotation), schedule for a rotation nobody can be resolved for, channel for any other alert channel.
name string The person's display name, the rotation's name or the channel's name.
channel_types string[] The alert channel types the step reaches this recipient on, for example email, sms, voice or mobile. Absent for a rotation without anyone on call.
schedule_name string For a person resolved from a rotation, the rotation's name.
next_step_at string (date-time)
escalation_target_label string
heartbeat_id uuid · nullable
heartbeat_name string
id uuid
metadata map of string · nullable max 100 keyseach value max length 4096 Custom key/value pairs (at most 100 keys; keys 1-128 characters, values up to 4096). Sent to machine-readable alert channels and API webhook subscriptions, and copied onto the incidents the resource opens.
monitor_id uuid · nullable
monitor_name string
notification_deliveries IncidentNotificationDelivery[] · nullable
Each item · 25 fields
FieldTypeDescription
attempt_count integer · nullable
channel_name string
created_at string (date-time)
event_type string
provider string
status string one ofdeliveredin_progresscancellednot_sentfailedunknown
channel_id uuid
devices IncidentDeviceDelivery[]
Each item · 13 fields
FieldTypeDescription
device_id uuid
device_label string
kind string
observed string one ofopeneddeliveredunknown
platform string one ofiosandroid
push_class string
repush integer
requested_class string
status string one ofpendingacceptedfailedexpiredsuppressed
accepted_at string (date-time)
delivered_at string (date-time)
error_code string
opened_at string (date-time)
notice_kind string one ofinitialreminderescalation
reason_code string one ofnotification_policydo_not_disturbinitial_not_acceptednot_sent
reminder_number integer
update_id uuid The note that caused this delivery, for a note written with notify true. Absent for every other delivery.
notified_label string
occurrence integer Starts at 1 and counts every reopen, by a person or by the monitor failing again shortly after it closed the incident.
override_channel_ids uuid[] · nullable
resolved_at string (date-time) · nullable When the incident ended. For an incident its monitor closed, the first successful check after the last outage, even though the status turns resolved only when the recovery period or the unstable observation is over (stable_since). For a manual resolve, the moment of the resolve. Null while open; a reopen clears it.
resolved_by_type string · nullable
resolved_by_user_id uuid · nullable
routing_target_id uuid · nullable
routing_type string one ofeveryoneescalation_policyteam
severity string one ofcriticalwarninginfo
stable_since string (date-time) · nullable When the monitor closed the incident: the end of its recovery period or of the unstable observation, after which the status is resolved. Null for an incident a person resolved, while it is open, and for incidents closed before this field existed.
started_at string (date-time)
started_by_type string
started_by_user_id uuid · nullable
status string one ofopenacknowledgedresolved
title string
updated_at string (date-time)
updates IncidentUpdate[] · nullable
Each item · 14 fields
FieldTypeDescription
actor_label string
actor_type string
actor_user_id uuid · nullable
created_at string (date-time)
event_type string Runner reports appear in internal timelines as runner_run. The payload contains the stage and event_id. Deliveries are grouped by event and include runner_count. Other stages include the runner name, handler and the reported result or skip reason where applicable. For these entries, created_at is the server receipt time.
id uuid
incident_id uuid
message string
payload object · nullable free-form keys
pinned_at string (date-time) · nullable When the note was pinned. Null for a note that is not pinned and for every other entry type. Pinning writes its own timeline entry (note_pinned, note_unpinned), never notifies and is never public.
pinned_by uuid · nullable The user who pinned the note.
message_code string Names a fixed system text of message so a client can translate it; empty for free text.
message_params map of string Values for the message_code text.
pinned_by_label string Name or email of the user who pinned the note. Omitted when the note is not pinned.
user_id uuid
detection_to_reaction_ms integer Time in milliseconds from a monitor or scheduled job's confirmed incident opening to the first started or finished handler report received by upfour. Available in the internal incident detail when both timestamps exist.
escalation_target_channel_count integer
escalation_target_kind string one ofnobodychannel_countchannel_count_with_policyname
escalation_target_name string
notified_channel_count integer
notified_kind string one ofnobodydelivery_failedchannel_countchannel
outage IncidentOutage What was measured during a monitor incident. Only on GET /v1/incidents/{incidentID}; left out for incidents without a monitor. Built from the incident's timeline and the monitor's alert episodes.
IncidentOutage · 21 fields
FieldTypeDescription
auto_close IncidentOutageAutoClose The rule that closes the incident once the monitor is reachable: recovery_period (the monitor's own setting, 0 closes at the next check), unstable_observation (after repeated outages, the fixed observation window), or none (the incident was not opened by its monitor, so only a person closes it). seconds is the length of that window.
IncidentOutageAutoClose · 2 fields
FieldTypeDescription
rule string one ofrecovery_periodunstable_observationnone
seconds integer
notice IncidentOutageNotice
IncidentOutageNotice · 5 fields
FieldTypeDescription
measured_seconds integer The measured downtime, the same number as unreachable_seconds.
notified boolean true when upfour queued the threshold notice and handed it to delivery for at least one person-facing channel or alert plan. Decided from what was queued, not by comparing the two numbers.
reason string one ofnotifiedbelow_thresholdno_human_channelsmonitor_pausedbilling_pauseddeclared notified; below_threshold (the measured downtime stayed under the threshold); no_human_channels (the threshold was reached, but the monitor routes only to machine integrations such as webhooks, so no person was told); monitor_paused (the monitor was paused, so the notice was dropped); billing_paused (the Company is paused for billing, so notices wait); declared (a person or integration declared the incident and the monitor had no outage in its time, so no threshold applies). Acknowledging an incident before the threshold does not stop the threshold notice.
threshold_seconds integer The monitor's notification threshold (notify_after_seconds); 0 notifies as soon as an outage is confirmed.
notified_at string (date-time) When the notice was queued. Also set with reason no_human_channels.
outages IncidentOutageSpan[] · nullable Each outage inside the incident, oldest first. A monitor that fails again shortly after it recovered continues the same incident, so one incident can hold several outages.
Each item · 5 fields
FieldTypeDescription
cause string The measured cause of this outage, a short diagnostic such as HTTP 503.
ended_at string (date-time) · nullable The first successful check after it. Null while the outage lasts.
regions string[] · nullable Regions that reported the failure. Empty when unknown.
started_at string (date-time) The first failed check of this outage.
open_at_resolve boolean True when the incident was resolved by hand while this outage still lasted: ended_at is then the resolve, not a successful check. Omitted otherwise.
unreachable_seconds integer Measured time the monitor was not reachable during the incident: from the first failed to the first successful check of each outage, gaps without checks wider than the evidence window left out. The notification threshold compares against this number.
observation_until string (date-time) When the monitor is expected to close the incident if it stays reachable (the next check after this time closes it). Only while reachable_since is set.
reachable_since string (date-time) Set while the incident is still open but the monitor is reachable again: the first successful check. The incident stays open until observation_until.
stable_since string (date-time) Same as the incident's stable_since.
unstable_from string (date-time) Start of the unstable phase: the first failed check. Only when the monitor failed more than once inside the incident.
unstable_until string (date-time) End of the unstable phase: the first successful check after the last failure. Null while the monitor is still failing.

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.