v1

latestOpenAPI 3.1.02026-07-261690320.7 KB

Add code repo label

Add a label to a code repository

post/repositories/code/{code_repo_id}/labels

Path parameters

code_repo_idinteger required

The ID of the code 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
}