跳到主要内容

Create Repository Task Label

POST 

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

Request​

Path Parameters

    owner stringrequired

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

    repo stringrequired

    Repository path (path)

Query Parameters

    access_token stringrequired

    User authorization code

Body

    namestring

    Label name

    Example:
    colorstring

    Label new color. E.g. #fff

    Example:

Responses​

Successful Response

Response Headers
    Schema
      idinteger
      namestring
      colorstring