跳到主要内容

Modify Organization Member Permissions

PUT 

/api/v5/enterprises/:enterprise/members/:username

Request​

Path Parameters

    enterprise stringrequired

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

    username stringrequired

    username (alias: login)

Query Parameters

    access_token stringrequired

    User authorization code

Body

    rolestringrequired

    Enterprise Role (viewer: viewer, tester: tester, developer: developer, maintainer: maintainer, admin: administrator, customized: customized role)

    role_idstring

    Role ID, if role is passed as customized, the role ID needs to be passed

Responses​

Successful Response

Response Headers
    Schema
      activeinteger
      rolestring
      urlstring
      user object
      idinteger
      loginstring
      urlstring
      html_urlstring