DeleteGroupMember - Remove a group member
Removes a member from a code group.
|
Applicable editions |
Central edition, Region edition |
Service endpoints and authorization
- Get service endpoints: Replace
{domain}in the API request syntax. - Get a personal access token.
- Required only for the Central edition. Go to the organization management console and get the organization ID from the Basic Information page.
|
Product |
Resource |
Permission |
|
Codeup |
member |
Read and write |
Request syntax
Central edition
DELETE https://{domain}/oapi/v1/codeup/organizations/{organizationId}/groups/{groupId}/members/{userId}
Region edition
DELETE https://{domain}/oapi/v1/codeup/groups/{groupId}/members/{userId}
Request headers
|
Parameter |
Type |
Required |
Description |
Example |
|
x-yunxiao-token |
string |
Yes |
Personal access token. |
pt-0fh3****0fbG_35af****0484 |
Request parameters
|
Parameter |
Type |
In |
Required |
Description |
Example |
|
organizationId |
string |
path |
|
Organization ID. |
60d54f3daccf2bbd6659f3ad |
|
groupId |
string |
path |
Yes |
Group ID, or the URL-encoded full path of the group. |
2813489 or 60de7a6852743a5162b5f957%2FDemoGroup |
|
userId |
string |
path |
Yes |
Alibaba Cloud DevOps user ID. |
62c795xxxb468af8 |
Request example
Central edition
curl -X 'DELETE' \
'https://{domain}/oapi/v1/codeup/organizations/60d54f3daccf2bbd6659f3ad/groups/2813489/members/62c795xxxb468af8' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Region edition
curl -X 'DELETE' \
'https://{domain}/oapi/v1/codeup/groups/2813489/members/62c795xxxb468af8' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Response parameters
|
Parameter |
Type |
Description |
Example |
| - |
object |
|
|
| accessLevel |
integer |
Access level of the member. Valid values: |
30 |
| avatarUrl |
string |
Avatar URL. |
https://example/example/w/100/h/100 |
| expiresAt |
string |
Expiration time. |
2024-10-05T15:30:45Z |
| id |
integer |
Primary key ID. This value has no business significance. |
2813489 |
| inheritedGroup |
object |
Group from which the member inherits permissions. Null if the member is directly added to the current group. |
|
| avatarUrl |
string |
Avatar URL. |
https://example/example/w/100/h/100 |
| fullPath |
string |
Full path of the namespace. |
60de7a6852743a5162b5f957/parent-group |
| id |
integer |
ID. |
1 |
| kind |
string |
Type. Typically |
group |
| name |
string |
Name. |
ParentGroup |
| nameWithNamespace |
string |
Full name, including the namespace. |
60de7a6852743a5162b5f957 / ParentGroup |
| parentId |
integer |
ID of the parent path. |
2 |
| path |
string |
Path. |
parent-group |
| pathWithNamespace |
string |
Full path, including the namespace. |
60de7a6852743a5162b5f957/parent-group |
| visibility |
string |
Visibility level. Valid values: |
private |
| webUrl |
string |
Web URL of the group. |
https://example.com/60de7a6852743a5162b5f957/parent-group |
| memberType |
string |
Member type. Valid values: |
USERS |
| name |
string |
Name of the member. |
codeup-demo |
| state |
string |
Member state. Valid values: |
active |
| teamId |
string |
Department ID. Returned only for department members; null for user members. |
70d8ddd4-xxxx-xxxx-xxxx-46100efe985e |
| userId |
string |
Alibaba Cloud DevOps user ID. Use this ID for user-related operations in Codeup API calls. |
62c795xxxb468af8 |
| username |
string |
Username. |
codeup-username |
| webUrl |
string |
Web URL of the user's profile. |
https://codeup.aliyun.com/users/codeup-username |
Response example
{
"accessLevel": 30,
"avatarUrl": "https://example/example/w/100/h/100",
"expiresAt": "2024-10-05T15:30:45Z",
"id": 2813489,
"inheritedGroup": {
"avatarUrl": "https://example/example/w/100/h/100",
"fullPath": "60de7a6852743a5162b5f957/parent-group",
"id": 1,
"kind": "group",
"name": "ParentGroup",
"nameWithNamespace": "60de7a6852743a5162b5f957 / ParentGroup",
"parentId": 2,
"path": "parent-group",
"pathWithNamespace": "60de7a6852743a5162b5f957/parent-group",
"visibility": "private",
"webUrl": "https://example.com/60de7a6852743a5162b5f957/parent-group"
},
"memberType": "USERS",
"name": "codeup-demo",
"state": "active",
"teamId": "70d8ddd4-xxxx-xxxx-xxxx-46100efe985e",
"userId": "62c795xxxb468af8",
"username": "codeup-username",
"webUrl": "https://codeup.aliyun.com/users/codeup-username"
}
Error codes
For a list of error codes, see Error Code Center.