跳到主要内容

Update Project Member Roles

PUT 

/api/v5/repos/:owner/:repo/members/:username

Request​

Path Parameters

    owner stringrequired

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

    repo stringrequired

    Repository path (path)

    username stringrequired

    Project member username

Query Parameters

    access_token stringrequired

    User authorization code

Body

    permissionstring

    Member Permissions: Participant (pull), Developer (push), Maintainer (admin). Default: push, customized (custom role)

    role_idstring

    Role ID, if "permission" is set to "customized", the role ID must be provided.

Responses​

Successful Response

Response Headers
    Schema
      followers_urlstring
      html_urlstring
      idstring
      loginstring
      namestring
      typestring
      urlstring
      permissions object
      admininteger
      pushinteger
      customizedinteger
      pullinteger