v1

latestOpenAPI 3.0.02026-07-249055687.1 KB
repo-labels

Associate repository label (beta)

Associate a repository label with a repository.

Labels can be used to group and organize repositories and to apply security/license policies.

This endpoint consumes 1 unit of your quota.

This endpoint requires the following org token scopes:

  • repo-label:update
post/orgs/{org_slug}/repos/labels/{label_id}/associate

Path parameters

org_slugstring required

The slug of the organization

label_idstring required

The ID of the label

Request body

repository_idstring

The ID of the repository to associate with the label

Response

Associates a repository label with the specified repository. The authenticated user must be a member of the organization.

statusstring

Status of the operation