UpdateContextDatabaseWorkspace
Updates a ContextDB workspace.
Operation description
Modifies the name of a workspace.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rdsai:UpdateContextDatabaseWorkspace |
update |
*All Resource
|
None | None |
Request syntax
GET / HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| WorkspaceId |
string |
Yes |
The ID of the target workspace. |
ws-as1llqmkol**** |
| WorkspaceName |
string |
Yes |
The new name of the workspace. |
my-workspace |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The modification is successful. |
||
| RequestId |
string |
The request ID. |
FE9C65D7-930F-57A5-A207-8C396329**** |
| ClusterId |
string |
The ID of the cluster to which the workspace belongs. For shared clusters, |
default |
| WorkspaceId |
string |
The workspace ID. |
ws-as1llqmkol**** |
| WorkspaceName |
string |
The modified name of the workspace. |
my-workspace |
| Type |
string |
The workspace type. |
personal |
| Status |
string |
The workspace status. |
Active |
| CreatedAt |
string |
The creation time in ISO 8601 format. |
2026-05-28T17:59:55Z |
| PermissionMode |
string |
The permission mode of the workspace. Valid values:
|
advanced |
| ConsolePermissionMode |
string |
The permission mode used by the server to parse the identity for the current call. Valid values:
This field describes the identity context of the current call. For the actual permission mode of the workspace, refer to PermissionMode. |
advanced |
| Viewer |
object |
The visitor identity information for the current call, including the identity parsing mode, caller account type, and member information. Member-related fields are optional. |
|
| IdentityMode |
string |
The identity parsing mode for the current call. Valid values:
The identity parsing mode and the workspace permission mode are different concepts. You cannot infer whether advanced permissions are enabled for the workspace based on this field. |
account_compatibility |
| CallerType |
string |
The account type of the caller for the current call, such as |
customer |
| BoundMemberId |
string |
The ID of the bound workspace member in the identity information for the current call. Optional. This field is empty if no bound member information is provided. |
member-example |
| BoundMemberRole |
string |
The role of the bound member in the workspace, such as |
Owner |
| BoundMemberStatus |
string |
The status of the bound member, such as |
active |
| SelectedMemberId |
string |
The ID of the selected workspace member in the account compatibility identity mode. Optional. This field is empty if no member is selected for the current call. This field and the bound member ID represent the member selection result and the binding relationship, respectively. |
member-example |
| Capabilities |
object |
The account-level capability information for the current call. It only indicates the operations that the account compatibility adapter can perform and does not represent resource-level authorization. This field is optional and is not returned if no account-level executable operations are provided. |
|
| ExecutableActions |
array |
The list of operation names that the account compatibility adapter can perform. The list content does not represent read/write, member group, or access control authorization for specific resources. |
|
|
string |
The name of a single operation. The example only illustrates the format of the operation name. The actual executable operations are subject to the list returned in the current call. |
ListContextDatabaseMembers |
Examples
Success response
JSON format
{
"RequestId": "FE9C65D7-930F-57A5-A207-8C396329****",
"ClusterId": "default",
"WorkspaceId": "ws-as1llqmkol****",
"WorkspaceName": "my-workspace",
"Type": "personal",
"Status": "Active",
"CreatedAt": "2026-05-28T17:59:55Z",
"PermissionMode": "advanced",
"ConsolePermissionMode": "advanced",
"Viewer": {
"IdentityMode": "account_compatibility",
"CallerType": "customer",
"BoundMemberId": "member-example",
"BoundMemberRole": "Owner",
"BoundMemberStatus": "active",
"SelectedMemberId": "member-example"
},
"Capabilities": {
"ExecutableActions": [
"ListContextDatabaseMembers"
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | Request parameter is invalid. | The parameter is invalid. |
| 400 | InvalidParameter.ContextDb.%s | %s. | Incorrect parameters were passed in to the request, or several parameters were missing. |
| 401 | Unauthorized | Unauthorized. | |
| 500 | InternalError | Internal server error. | An internal system error occurred. |
| 403 | NoPermission | Permission denied. | You do not have permissions to perform this operation. |
| 502 | UpstreamError | Upstream service returned an error. | The upstream service returned an error. |
| 404 | ResourceNotFound | Resource not found. | The specified resource does not exist. |
| 503 | ServiceUnavailable | Dependent service is not configured or unavailable. | |
| 503 | PermissionModeUnavailable | Workspace permission mode is temporarily unavailable. | |
| 409 | ResourceAlreadyExists | Resource state conflict. | A resource state conflict occurred. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.