# Unpin an incident comment — API reference

> Removes the pin from a note; the note stays in the history. Returns the updated incident detail.

Source: https://upfour.io/docs/api/incidents/unpin-an-incident-comment

[Developers](https://upfour.io/docs/api.md)/[Incidents](https://upfour.io/docs/api/incidents.md)

Removes the pin from a note; the note stays in the history. Returns the updated incident detail.

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

scope incident.write stable returns 200

## Parameters

| Field | Type | Description |
| --- | --- | --- |
| `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

| Field | Type | Description |
| --- | --- | --- |
| `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 of`active` `paused` `completed` `stopped` `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 of`user` `schedule` `channel` 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 of`user` `schedule` `channel` 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 keys each 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 of`delivered` `in_progress` `cancelled` `not_sent` `failed` `unknown` `channel_id` uuid `devices` IncidentDeviceDelivery[] Each item · 13 fields FieldTypeDescription `device_id` uuid `device_label` string `kind` string `observed` string one of`opened` `delivered` `unknown` `platform` string one of`ios` `android` `push_class` string `repush` integer `requested_class` string `status` string one of`pending` `accepted` `failed` `expired` `suppressed` `accepted_at` string (date-time) `delivered_at` string (date-time) `error_code` string `opened_at` string (date-time) `notice_kind` string one of`initial` `reminder` `escalation` `reason_code` string one of`notification_policy` `do_not_disturb` `initial_not_accepted` `not_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 of`everyone` `escalation_policy` `team` `severity` string one of`critical` `warning` `info` `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 of`open` `acknowledged` `resolved` `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 of`nobody` `channel_count` `channel_count_with_policy` `name` `escalation_target_name` string `notified_channel_count` integer `notified_kind` string one of`nobody` `delivery_failed` `channel_count` `channel` `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 of`recovery_period` `unstable_observation` `none` `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 of`notified` `below_threshold` `no_human_channels` `monitor_paused` `billing_paused` `declared` 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](https://upfour.io/docs/api/responses.md).

| Status | Code | Meaning |
| --- | --- | --- |
| 400 | [bad_request](https://upfour.io/docs/api/errors#code-bad_request) | The request is malformed or fails validation. |
| 404 | [not_found](https://upfour.io/docs/api/errors#code-not_found) | The requested resource does not exist or is outside the caller's scope. |
| 403 | [permission_denied](https://upfour.io/docs/api/errors#code-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](https://upfour.io/docs/api/responses.md).

[PreviousPin an incident comment](https://upfour.io/docs/api/incidents/pin-an-incident-comment.md) [NextList incident insights](https://upfour.io/docs/api/incidents/list-incident-insights.md)

## Request

### cURL

```bash
curl -s -X DELETE "https://app.upfour.io/v1/incidents/3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90/comments/3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90/pin" \
  -H "Authorization: Bearer $UP4_API_KEY"
```

### JavaScript

```javascript
const res = await fetch("https://app.upfour.io/v1/incidents/3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90/comments/3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90/pin", {
  method: "DELETE",
  headers: {
    Authorization: `Bearer ${process.env.UP4_API_KEY}`,
  },
});
console.log(res.status, await res.json());
```

### Python

```python
import os
import requests

res = requests.delete(
    "https://app.upfour.io/v1/incidents/3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90/comments/3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90/pin",
    headers={"Authorization": f"Bearer {os.environ['UP4_API_KEY']}"},
)
print(res.status_code, res.json())
```

### Go

```go
package main

import (
	"fmt"
	"io"
	"net/http"
	"os"
)

func main() {
	req, _ := http.NewRequest("DELETE", "https://app.upfour.io/v1/incidents/3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90/comments/3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90/pin", nil)
	req.Header.Set("Authorization", "Bearer "+os.Getenv("UP4_API_KEY"))
	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()
	out, _ := io.ReadAll(res.Body)
	fmt.Println(res.StatusCode, string(out))
}
```

### PHP

```php
<?php
$ch = curl_init("https://app.upfour.io/v1/incidents/3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90/comments/3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90/pin");
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => "DELETE",
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer " . getenv("UP4_API_KEY"),
    ],
]);
$response = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), " ", $response, "\n";
curl_close($ch);
```

## Response

### 200

```json
{
  "data": {
    "acknowledged_at": "2026-01-15T09:30:00Z",
    "acknowledged_by": {
      "name": "Example",
      "user_id": "3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90"
    },
    "cause": "example",
    "check_method": "example",
    "check_url": "https://example.com",
    "client_id": "3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90",
    "correlated_count": 1,
    "created_at": "2026-01-15T09:30:00Z",
    "created_by": "example",
    "description": "example",
    "domain_case_id": "3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90",
    "duration_seconds": 1,
    "escalation": {
      "current_step": 1,
      "escalation_id": "3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90",
      "has_escalation": false,
      "manual_pending": false,
      "policy_id": "3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90",
      "policy_name": "example",
      "repeat_count": 1,
      "repeat_iteration": 1,
      "repeat_push_count": 1,
      "repeat_push_max": 1,
      "source_incident_id": "3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90",
      "status": "active",
      "step_count": 1
    },
    "escalation_target_label": "example",
    "heartbeat_id": "3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90",
    "heartbeat_name": "example",
    "id": "3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90",
    "metadata": {},
    "monitor_id": "3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90",
    "monitor_name": "example",
    "notification_deliveries": [
      {
        "attempt_count": 1,
        "channel_name": "example",
        "created_at": "2026-01-15T09:30:00Z",
        "event_type": "example",
        "provider": "example",
        "status": "delivered"
      }
    ],
    "notified_label": "example",
    "occurrence": 1,
    "override_channel_ids": [
      "3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90"
    ],
    "resolved_at": "2026-01-15T09:30:00Z",
    "resolved_by_type": "example",
    "resolved_by_user_id": "3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90",
    "routing_target_id": "3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90",
    "routing_type": "everyone",
    "severity": "critical",
    "stable_since": "2026-01-15T09:30:00Z",
    "started_at": "2026-01-15T09:30:00Z",
    "started_by_type": "example",
    "started_by_user_id": "3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90",
    "status": "open",
    "title": "example",
    "updated_at": "2026-01-15T09:30:00Z",
    "updates": [
      {
        "actor_label": "example",
        "actor_type": "example",
        "actor_user_id": "3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90",
        "created_at": "2026-01-15T09:30:00Z",
        "event_type": "example",
        "id": "3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90",
        "incident_id": "3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90",
        "message": "example",
        "payload": {},
        "pinned_at": "2026-01-15T09:30:00Z",
        "pinned_by": "3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90"
      }
    ],
    "user_id": "3f6c1a52-8b1e-4f0d-9a43-2c5d7e8f1a90"
  }
}
```

### 400

```json
{
  "error": {
    "code": "bad_request",
    "message": "The request is malformed or fails validation.",
    "request_id": "req_…"
  }
}
```

### 403

```json
{
  "error": {
    "code": "permission_denied",
    "message": "The credentials do not permit this action.",
    "request_id": "req_…"
  }
}
```

### 404

```json
{
  "error": {
    "code": "not_found",
    "message": "The requested resource does not exist or is outside the caller's scope.",
    "request_id": "req_…"
  }
}
```
