Repositories

Create a repository label

Creates a label with a unique name, color, and optional description. Requires authenticated authority and enforces current resource policy.

post/api/repos/{owner}/{repo}/labels

Request

  • Base URL
    https://git.cafe
  • Auth
    • API key in cookie gc-session
    • or HTTP bearer
    • or HTTP basic
    • or HTTP token
    • or OAuth 2
      Authorization code: /api/oauth/authorize
      Token URL: /api/oauth/token scopes: repo:metadata:write

Path parameters

ownerstring required
repostring required

Request body

namestring required
colorstring required
descriptionstring nullable

Response

Response for status 201

idstring required
repoIdstring required
namestring required
colorstring required
descriptionstring nullable required
versioninteger required
createdAtstring date-time required
updatedAtstring date-time required

Changes

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