Add code repo label

Add a label to a code repository

post/repositories/code/{code_repo_id}/labels

Request

  • Base URL
    https://app.aikido.dev/api/public/v1
  • URL
    https://app.aikido.dev/api/public/v1/repositories/code/{code_repo_id}/labels
  • Auth
    OAuth 2
    Client credentials
    Token URL: https://app.aikido.io/api/oauth/token scopes: repositories:write

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
}

Changes

No recorded changes to this operation across all 1 revision of this API.