# Resume runner

`POST /v1/organizations/{organization}/runnerPools/{pool}/runners/{runner}/resume`, operation `environments.ResumeRunner`

Resumes a paused runner, so that kosem places new environments on it again.

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `organization` | path | Yes | `string` | The organization's ID. |
| `pool` | path | Yes | `string` | The runner pool's ID. |
| `runner` | path | Yes | `string` | The runner's ID. |

## Responses

### 200

OK

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `createTime` | `string (date-time)` | Yes |  |
| `displayName` | `string` | Yes | Name shown in user interfaces. |
| `host` | `RunnerHost` | No | Last reported host metadata; absent until the runner registers. |
| `host.arch` | `string` | Yes | The host's architecture, such as amd64. |
| `host.diskGib` | `integer (int32)` | Yes | The disk it offers its environments, in GiB. |
| `host.hostname` | `string` | Yes |  |
| `host.kata` | `string` | Yes | The version of Kata Containers that runs its environments' microVMs, on Linux. |
| `host.memoryMib` | `integer (int32)` | Yes | The memory it offers its environments, in MiB. |
| `host.os` | `string` | Yes | The host's operating system, such as linux. |
| `host.runtime` | `string` | Yes | What runs its environments' VMs: kata for Kata Containers on Linux, or apple-container for Apple's container on a Mac. Values: `kata`, `apple-container`. |
| `host.runtimeVersion` | `string` | Yes | The version of what runs its environments' VMs. |
| `host.upgradeAvailable` | `boolean` | Yes | Whether kosem has a newer version of kosem runner for this host. Run kosem-runner upgrade on the host to install it. |
| `host.vcpus` | `integer (int32)` | Yes | The vCPUs it offers its environments. |
| `host.version` | `string` | Yes | kosem runner's version. |
| `name` | `string` | Yes | Resource name, {pool}/runners/{runner_id}. |
| `paused` | `boolean` | Yes | Whether the runner is paused from accepting new environments. Existing environments stay on the runner because their disks live on its host. |
| `registerTime` | `string (date-time)` | No |  |
| `registrationExpireTime` | `string (date-time)` | No | When the registration token expires while pending. |
| `state` | `string` | Yes | Runner status: PENDING (awaiting host registration), EXPIRED (token expired unused), ONLINE (actively syncing) or OFFLINE (no sync for 30 seconds). Counts toward organization runner quota from creation until deletion, except when EXPIRED. Values: `PENDING`, `EXPIRED`, `ONLINE`, `OFFLINE`. |
| `syncTime` | `string (date-time)` | No | When it last synced. |
| `updateTime` | `string (date-time)` | Yes |  |
| `usage` | `RunnerUsage` | No | The environments on it, and how much of its host they use, as kosem counts it when placing environments. Absent until it registers. |
| `usage.diskGib` | `integer (int32)` | Yes | Disk its environments use, in GiB: the disk of every environment on it. |
| `usage.environments` | `integer (int32)` | Yes | Environments placed on the runner, running or not. Their disks are on its host. |
| `usage.memoryMib` | `integer (int32)` | Yes | Memory its environments use, in MiB: each running or starting environment's memory, plus 1024 MiB for its VM. |
| `usage.runningEnvironments` | `integer (int32)` | Yes | Environments on the runner that are running. |
| `usage.vcpus` | `integer (int32)` | Yes | vCPUs its environments use: half of each running or starting environment's vCPUs, rounded up. |

### default

Error

Base URL: `https://api.kosem.ai`. See [API conventions](https://docs.kosem.ai/reference/api-conventions.md) for authentication, pagination and errors, and [https://docs.kosem.ai/openapi.yaml](https://docs.kosem.ai/openapi.yaml) for the full OpenAPI document.