---
title: "POST /api/v1/ci/nodes/{id}/drain"
method: POST
path: "/api/v1/ci/nodes/{id}/drain"
tags: ["ci"]
---

# POST /api/v1/ci/nodes/{id}/drain

`POST /api/v1/ci/nodes/{id}/drain`

## Request

- Base URL: `https://composal.com` (the document declares no server; this is the origin it was published from)
- URL: `https://composal.com/api/v1/ci/nodes/{id}/drain`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Request body

- object

## Response `200`

CI runner

- object
  - `runner` object, required
    - `id` string, required
    - `organization_id` string, required
    - `ci_runner_pool_id` string, required
    - `network_peer_id` string, nullable, required
    - `slug` string, required
    - `name` string, required
    - `status` string, required
    - `kind` string, required
    - `os` string, nullable, required
    - `architecture` string, nullable, required
    - `version` string, nullable, required
    - `labels_csv` string, nullable, required
    - `node_capabilities_csv` string, nullable, required
    - `node_certificate_fingerprint_sha256` string, nullable, required
    - `node_certificate_serial` string, nullable, required
    - `node_certificate_expires_at` string, date-time, nullable, required
    - `bazel_enabled` boolean, required
    - `bazel_properties_json` string, nullable, required
    - `last_seen_at` string, date-time, nullable, required
    - `online_at` string, date-time, nullable, required
    - `offline_at` string, date-time, nullable, required
    - `cordoned_at` string, date-time, nullable, required
    - `revoked_at` string, date-time, nullable, required
    - `health_state` string, required
    - `schedulable` boolean, required
    - `heartbeat_age_seconds` integer, nullable, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `node_certificate_expires_at_label` string, nullable, required
    - `last_seen_at_label` string, nullable, required
    - `online_at_label` string, nullable, required
    - `offline_at_label` string, nullable, required
    - `cordoned_at_label` string, nullable, required
    - `revoked_at_label` string, nullable, required
    - `created_at_label` string, nullable, required
    - `updated_at_label` string, nullable, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `422`: Unprocessable entity
- `502`: Bad gateway

---

[API](https://skmtc.dev/composal/apis/vex-api.md) - [All operations](https://skmtc.dev/composal/apis/vex-api/llms.txt) - [OpenAPI document](https://skmtc.dev/composal/apis/vex-api/revisions/74298a24e040?raw)
