UpdateWorkspaceRole

Updated at:

Updates a role in 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

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

PUT /api/v1/workspaces/{WorkspaceId}/roles/{RoleId} HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

WorkspaceId

string

Yes

The workspace ID. Call the ListWorkspaces operation to obtain this ID.

83***

RoleId

string

Yes

The role ID.

role-dhg*******

Request parameters

Parameter

Type

Required

Description

Example

body

object

No

The request body.

RoleName

string

No

The name of the custom role. The name must be unique within the workspace. It can be up to 64 characters long and can contain letters, digits, underscores (_), and hyphens (-).

dev-test

ModulePermissions ModulePermissions

No

The permission settings for the role.

Response elements

Element

Type

Description

Example

object

The response body.

RequestId

string

The request ID.

A519F77D-28A0-52F5-AB82-5********8

InstanceJobId

string

The task ID.

UpdateWorkspaceCustomRole-role-***abc*******

Examples

Success response

JSON format

{
  "RequestId": "A519F77D-28A0-52F5-AB82-5********8\n",
  "InstanceJobId": "UpdateWorkspaceCustomRole-role-***abc*******"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.