UpdateContextDatabaseWorkspace

Updated at:

Updates a ContextDB workspace.

Operation description

Modifies the name of a workspace.

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

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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 is returned. For dedicated clusters, the corresponding cluster ID is returned.

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:

  • personal_compatibility: Compatibility mode.

  • advanced: Advanced permission mode.

advanced

ConsolePermissionMode

string

The permission mode used by the server to parse the identity for the current call. Valid values:

  • personal_compatibility: Compatibility mode.

  • advanced: Advanced permission mode.

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:

  • account_compatibility: Account compatibility identity mode.

  • bound_member: Bound member identity mode.

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. This field describes the caller account and does not indicate the role of the workspace member.

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. Optional. This field is empty if no bound member role information is provided.

Owner

BoundMemberStatus

string

The status of the bound member, such as active. Optional. This field is empty if no bound member status information is provided.

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.