DeleteGroupMember

Updated at:

Removes a member from a specified code group based on the member's Alibaba Cloud account ID.

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

DELETE /repository/groups/{groupId}/members/remove/aliyun_pk HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

groupId

integer

Yes

The ID of the code group.

34410

Request parameters

Parameter

Type

Required

Description

Example

organizationId

string

Yes

The organization ID. You can obtain the organization ID from the URL used to access Alibaba Cloud DevOps. The URL is in the format: https://devops.aliyun.com/organization/{organizationId}.

6082a9b0c7972588ac363793

accessToken

string

No

The personal access token. This parameter is not required if you use an Alibaba Cloud AccessKey pair or STS temporary authorization for authentication.

f0b1e61db5961df5975a93f9129d2513

aliyunPk

string

Yes

The Alibaba Cloud account ID of the group member.

1789095186553536

body

object

Yes

The request body.

memberType

string

Yes

The member type. Set the value to USERS.

USERS

Response elements

Element

Type

Description

Example

object

The response object.

requestId

string

The request ID.

4D6AF7CC-B43B-5454-86AB-023D25E44868

errorMessage

string

The error message.

SYSTEM_UNKNOWN_ERROR

errorCode

string

The error code.

""

success

boolean

Indicates whether the request succeeded.

true

result

object

The data returned.

id

integer

The Codeup user ID.

524836

name

string

The user name.

codeup

username

string

The user nickname.

test-codeup

state

string

The user status. Valid values: active and blocked.

active

avatarUrl

string

The user's avatar URL.

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

accessLevel

integer

The permission level. Valid values: 20 (reporter), 30 (developer), and 40 (maintainer).

40

memberType

string

The member type. Default value: USERS.

USERS

sourceId

integer

The ID of the associated resource, which can be the ID of a code repository or a code group.

2080398

Examples

Success response

JSON format

{
  "requestId": "4D6AF7CC-B43B-5454-86AB-023D25E44868",
  "errorMessage": "SYSTEM_UNKNOWN_ERROR",
  "errorCode": "\"\"",
  "success": true,
  "result": {
    "id": 524836,
    "name": "codeup",
    "username": "test-codeup",
    "state": "active",
    "avatarUrl": "https://tcs-devops.aliyuncs.com/thumbnail/112afcb7a6a35c3f67f1bea827c4/w/100/h/100",
    "accessLevel": 40,
    "memberType": "USERS",
    "sourceId": 2080398
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.