UpdateGroupMember

Updated at:

Updates a group member, primarily modifying the member's permissions.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

PUT /repository/groups/{groupId}/members/update/aliyun_pk HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

groupId

integer

Yes

The primary key ID of the code group.

22901

Request parameters

Parameter

Type

Required

Description

Example

organizationId

string

Yes

The enterprise identifier, also known as the enterprise ID. This string can be obtained from the Yunxiao URL, such as https://devops.aliyun.com/organization/[OrganizationId].

632bbfdf419338aaa2b1360a

accessToken

string

No

The personal access token. You do not need to specify this field if you use an Alibaba Cloud AccessKey pair or Security Token Service (STS) for temporary authorization.

f0b1e61db5961df5975a93f9129d2513

aliyunPk

string

Yes

The Alibaba Cloud account ID of the group member.

1789095186553536

body

object

Yes

The request body.

accessLevel

integer

Yes

The permissions of the member. Valid values:

  • 20: viewer

  • 30: developer

  • 40: administrator

30

memberType

string

No

The member type. Set this parameter to the default value: USERS.

USERS

Response elements

Element

Type

Description

Example

object

Schema of Response

requestId

string

The request ID.

ASSDS-ASSASX-XSAXSA-XSAXSAXS

errorCode

string

The error code.

SYSTEM_UNKNOWN_ERROR

errorMessage

string

The error message.

""

success

boolean

Indicates whether the call was successful.

true

result

object

The returned result.

id

integer

The Codeup user ID.

24661

name

string

The name of the user.

codeup

username

string

The nickname of the user.

test-codeup

state

string

The status. Valid values: active and blocked.

active

avatarUrl

string

The URL of the avatar.

https://tcs-devops.aliyuncs.com/thumbnail/112afcb7a6a35c3f67f1bea827c4/w/100/h/100

email

string

The email address.

username@example.com

accessLevel

integer

The permission type. Valid values:

  • 20: viewer

  • 30: developer

  • 40: administrator

30

memberType

string

The member type. Default value: USERS.

USERS

sourceId

integer

The associated ID, which refers to the ID of the code repository or code group.

223241

Examples

Success response

JSON format

{
  "requestId": "ASSDS-ASSASX-XSAXSA-XSAXSAXS",
  "errorCode": "SYSTEM_UNKNOWN_ERROR",
  "errorMessage": "\"\"",
  "success": true,
  "result": {
    "id": 24661,
    "name": "codeup",
    "username": "test-codeup",
    "state": "active",
    "avatarUrl": "https://tcs-devops.aliyuncs.com/thumbnail/112afcb7a6a35c3f67f1bea827c4/w/100/h/100",
    "email": "username@example.com",
    "accessLevel": 30,
    "memberType": "USERS",
    "sourceId": 223241
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.