Repositories

Update a repository label

Updates the label; at least one mutable field is required. Requires authenticated authority and enforces current resource policy.

patch/api/repos/{owner}/{repo}/labels/{label}

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
labelstring required

Request body

namestring
colorstring
descriptionstring nullable
expectedVersioninteger required

Response

Response for status 200

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.