跳到主要内容

Modify Project Protection Tag

PUT 

/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_levelintegerrequired

    Allowed access level to be created (0: no one allowed; 30: developers, maintainers, administrators; 40: maintainers, administrators)

Responses​

Successful Response

Response Headers
    Schema
      namestring
      create_access_levelinteger
      create_access_level_descstring