---
title: "Add container label"
method: POST
path: "/containers/{container_repo_id}/labels"
---

# Add container label

`POST /containers/{container_repo_id}/labels`

## Request

- Base URL: `https://app.aikido.dev/api/public/v1`
- URL: `https://app.aikido.dev/api/public/v1/containers/{container_repo_id}/labels`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://app.aikido.io/api/oauth/token` scopes: `containers:write`

Add a label to a container repository

## Path parameters

- `container_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/aikido-security-api-documentation.md) - [All operations](https://skmtc.dev/aikido/apis/aikido-security-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/aikido/apis/aikido-security-api-documentation/revisions/da8691338133?raw)
