# Revoke a node

`POST /api/v1/nodes/{nodeId}/revoke`

Revokes a private node: it disconnects and runs no more checks. Checks that ran on it keep their other locations. Workspace owner or admin.

Sign-in: a dashboard session, an API token with `nodes:write` or the `monitorly` CLI's sign-in with `nodes:write`.

Section: Nodes. Operation id in openapi.json: `revoke_node`.

## Parameters

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `nodeId` | path | yes | string (uuid) | The node's id. |

## Responses

Errors are `application/problem+json` (`Problem`); branch on `type`.

### 204

Revoked.

### 400

Bad Request.

- `auth.credentials_conflict`: the request carries both a session cookie and a token

### 401

Unauthorized.

- `auth.unauthenticated`, `auth.session_expired`: no session, or it ended
- `token.invalid`: the token is malformed, unknown, revoked or expired, or its creator left the workspace

### 403

Forbidden.

- `auth.forbidden`: your role is too low for this
- `token.scope_missing`: the token lacks the scope this needs; `detail` names it
- `request.origin_mismatch`, `request.header_required`: a changing request with a session comes from another site or lacks `X-Monitorly-Request: 1`

### 404

Not Found.

- `request.not_found`: it does not exist, or you cannot see it

### 429

Too Many Requests.

- `token.rate_limited`: more than 10 requests a second with this token
- `session.rate_limited`: more than 5 changes a second from your sessions

Schemas named above are listed with their fields in [the schema list](https://docs.monitorly.cloud/api/reference/schemas.md).
