v1

latestOpenAPI 3.1.02026-07-261690320.7 KB

Add container label

Add a label to a container repository

post/containers/{container_repo_id}/labels

Path parameters

container_repo_idinteger required

The ID of the container repository

Request body

namestring required

The name of the label

Example request

{
  "name": "production"
}

Response

The label has been added successfully

label_idinteger

The ID of the newly added label

Example response

{
  "label_id": 1
}