跳到主要内容

Create Project Protection Tag

POST 

/api/v5/repos/:owner/:repo/protected_tags

Request​

Path Parameters

    owner stringrequired

    Repository space address (organization or individual's address path)

    repo stringrequired

    Repository path (path)

Query Parameters

    access_token stringrequired

    User authorization code

Body

    namestringrequired

    Label name

    create_access_levelinteger

    Allowed access level to be created (0: no one allowed; 30: developer, maintainer, admin; 40: maintainer, admin), default: 40

Responses​

Successful Response

Response Headers
    Schema
      namestring
      create_access_levelinteger
      create_access_level_descstring