---
title: "Add code repo label"
method: POST
path: "/repositories/code/{code_repo_id}/labels"
---

# Add code repo label

`POST /repositories/code/{code_repo_id}/labels`

Add a label to a code repository

## Path parameters

- `code_repo_id` integer, required

## Request body

- object
  - `name` string, required — The name of the label

## Response `200`

The label has been added successfully

- object
  - `label_id` integer — The ID of the newly added label

---

[API](https://skmtc.dev/aikido/apis/authorization.md) · [All operations](https://skmtc.dev/aikido/apis/authorization/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/aikido/authorization/revisions/5445e7c21137/schema)
