UpdateDataAgentWorkspaceMemberRole
Changes the role of a workspace member.
Try it now
Test
RAM authorization
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DMSUnit |
string |
No |
The current DMS unit. |
cn-hangzhou |
| WorkspaceId |
string |
No |
The workspace ID. |
12**** |
| MemberId |
string |
No |
The UID of the member whose role you want to change. |
20282*****7591 |
| RoleName |
string |
No |
The role to assign to the member. |
admin |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
E0D2-*****-A63B6 |
| Success |
boolean |
Indicates whether the request was successful. |
true |
| ErrorCode |
string |
The error code returned if the request fails. |
DMS-DA-40114 |
| ErrorMessage |
string |
The error message returned if the request fails. |
Specified parameter is not valid. |
| Data |
object |
The returned data. |
|
| MemberId |
string |
The UID of the member whose role was changed. |
20282*****7591 |
| UserName |
string |
The RAM username. |
yunqitest |
| RoleName |
string |
The new role of the user. |
admin |
| JoinTime |
integer |
The time when the user joined the workspace. This is a UNIX timestamp in seconds. |
1765961516 |
| TotalTaskNumber |
integer |
The total number of tasks for the user in the workspace. |
20 |
| RunningTaskNumber |
integer |
The number of running tasks for the user in the workspace. |
10 |
Examples
Success response
JSON format
{
"RequestId": "E0D2-*****-A63B6",
"Success": true,
"ErrorCode": "DMS-DA-40114",
"ErrorMessage": "Specified parameter is not valid.",
"Data": {
"MemberId": "20282*****7591",
"UserName": "yunqitest",
"RoleName": "admin",
"JoinTime": 1765961516,
"TotalTaskNumber": 20,
"RunningTaskNumber": 10
}
}
Error codes
See for a complete list.
Release notes
See Release Notes for a complete list.