---
title: "Add custom labels to a self-hosted runner for an enterprise"
method: POST
path: "/enterprises/{enterprise}/actions/runners/{runner_id}/labels"
tags: ["enterprise-admin"]
---

# Add custom labels to a self-hosted runner for an enterprise

`POST /enterprises/{enterprise}/actions/runners/{runner_id}/labels`

Add custom labels to a self-hosted runner configured in an enterprise.

OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint.

## Path parameters

- `enterprise` string, required
- `runner_id` integer, required

## Request body

- object
  - `labels` string[], required — The names of the custom labels to add to the runner.

## Response `200`

Response

- object
  - `total_count` integer, required
  - `labels` RunnerLabel[], required
    - `id` integer — Unique identifier of the label.
    - `name` string, required — Name of the label.
    - `type` 'read-only' | 'custom' — The type of label. Read-only labels are applied automatically when the runner is configured.

## Other responses

- `404` — Resource not found
- `422` — Validation failed, or the endpoint has been spammed.

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-3.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-3/versions/dc0584ac4e13/schema)
