# Pause or resume a status service (https://notert.io/docs/api/reference/pause-or-resume-a-status-service)

`PUT /api/v1/status/services/{id}/paused`

Pauses a service, so Notert stops checking it and visitors no longer see it, or resumes one, which is hidden from visitors again until its next check passes. The state it is in already changes nothing.

Access: A token with status:write.

## Path parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | Yes | The service's id. At most 64 characters. |

## Body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `paused` | boolean | Yes | true to pause it, false to resume it. |

## Response 200

| Field | Type | Description |
| --- | --- | --- |
| `id` | string | The service's id. |
| `name` | string | The application's or the service's name. |
| `url` | string | The address the service's check reads. |
| `phase` | string | Where the service's check stands: paused; over limit (past what the workspace's plan checks); checking (no check yet); hidden (checked, not yet shown to visitors); changing (its latest check differs from what visitors see); or steady. One of: `paused`, `over limit`, `checking`, `hidden`, `changing`, `steady`. |
| `state` | string or null | What visitors see of the service: operational, degraded or down. Null while nothing is shown. One of: `operational`, `degraded`, `down`. |
| `since` | date-time or null | Since when visitors have seen that state. Null while nothing is shown. |
| `problem` | string or null | Why the service's check fails, such as status (an unexpected status code), slow, timeout or unreachable. Null while it passes. One of: `status`, `slow`, `reported degraded`, `reported down`, `timeout`, `not found`, `refused`, `certificate`, `private`, `port`, `blocked`, `unreachable`, `redirects`, `not configured`. |
| `lastCheck` | object or null | The service's latest check. Null before its first. |
| `lastCheck.at` | date-time | When the check ran. |
| `lastCheck.httpStatus` | integer or null | The status code the check was answered with. Null when nothing answered. |
| `lastCheck.latencyMs` | integer or null | How long the answer took, in milliseconds. Null when nothing answered. |
| `application` | string | The name of the application the service belongs to. |

## Errors

| Status | Code | Message |
| --- | --- | --- |
| 400 | `BAD_REQUEST` | Input validation failed. |
| 401 | `UNAUTHORIZED` | Send a valid API token as a Bearer token. |
| 403 | `FORBIDDEN` | The teammate who holds this API token's secret can't change health checks. Only an owner or admin can. |
| 403 | `HOLDER_NOT_ALLOWED` | The teammate who holds this API token's secret can't do this in the workspace now. A teammate who can should roll it in the workspace's settings. |
| 403 | `INSUFFICIENT_SCOPE` | This API token can't add, edit, pause or resume your health checks. Create one that may in the workspace's settings. |
| 403 | `NETWORK_NOT_ALLOWED` | This API token works only from the networks it was made for. Call from one of them, or create a token for this one in the workspace's settings. |
| 403 | `NO_SEAT` | This workspace's plan has no seat for you. |
| 403 | `WORKSPACE_SUSPENDED` | This workspace is suspended. |
| 404 | `NOT_FOUND` | Not Found. |
| 409 | `CHANGED_MEANWHILE` | Something changed meanwhile. Try again. |
| 409 | `LIMIT_REACHED` | That service is past what the workspace's plan checks, so it can't be paused or resumed. data.limit says how many it checks. Its data holds `limit`. |
| 429 | `TOO_MANY_REQUESTS` | Too Many Requests. Its data holds `retryAfter`. |

## Example request

```sh
curl -X PUT https://app.notert.io/api/v1/status/services/5b7d9f1a-3c5e-4a7b-9d1f-3a5c7e9b1d24/paused \
  -H "Authorization: Bearer $NOTERT_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "paused": true
}'
```

## Example response 200

```json
{
  "id": "5b7d9f1a-3c5e-4a7b-9d1f-3a5c7e9b1d24",
  "name": "API",
  "url": "https://api.example.com/health",
  "phase": "steady",
  "state": "operational",
  "since": "2026-11-10T14:05:00.000Z",
  "problem": null,
  "lastCheck": {
    "at": "2026-11-21T09:30:00.000Z",
    "httpStatus": 200,
    "latencyMs": 84
  },
  "application": "Acme"
}
```
