SetYikeUserRole

更新时间:
复制 MD 格式

Sets a user role.

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 parameters

Parameter

Type

Required

Description

Example

YikeUserId

string

No

The sub-account user ID.

id

RoleName

string

No

The user role. Valid values:

  • SuperAdmin: Super Admin.

  • Admin: Admin.

  • RegularUser: Regular User.

Admin

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

****63E8B7C7-4812-46AD-0FA56029AC86****

Result

boolean

Indicates whether the operation succeeded.

  • true: Success

  • false: Failure

true

Examples

Success response

JSON format

{
  "RequestId": "****63E8B7C7-4812-46AD-0FA56029AC86****",
  "Result": true
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.