跳到主要内容

Update a Task Label in a Repository

PATCH 

/api/v5/repos/:owner/:repo/labels/:original_name

Request​

Path Parameters

    owner stringrequired

    Repository space address (address path of the enterprise, organization, or individual)

    repo stringrequired

    Repository path (path)

    original_name stringrequired

    Original label name

Query Parameters

    access_token stringrequired

    User authorization code

    name string

    Label New Name

    color string

    Label New Color

Responses​

Successful Response

Response Headers
    Schema
      idinteger
      namestring
      colorstring