Removes a role from a member.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paiworkspace:RemoveMemberRole |
*All Resource
|
None | None |
Request syntax
DELETE /api/v1/workspaces/{WorkspaceId}/members/{MemberId}/roles/{RoleName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| WorkspaceId |
string |
Yes |
The ID of the workspace. To get this ID, call the ListWorkspaces operation. |
145883 |
| MemberId |
string |
Yes |
The ID of the member. To get this ID, see ListMembers. |
145883-21513926******88039 |
| RoleName |
string |
Yes |
The role to remove. Both official roles and custom roles are supported:
|
PAI.AlgoDeveloper |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The request ID. |
5A14FA81-DD4E-******-6343FE44B941 |
Examples
Success response
JSON format
{
"RequestId": "5A14FA81-DD4E-******-6343FE44B941"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.