Skip to main content

Add Role Members

Adds one or more members to a specified role.

Request URL: /openapi/v1/role/member/add

Request Method: POST

Request Parameters

ParameterTypeRequiredDescriptionExample
roleIdStringYesRole ID. You can call List Roles to obtain it.2394
accountIdsArrayYesList of account IDs to add. Multiple account IDs are supported in a single request. You can call Get Account List to obtain them.["1708********6159", "1472********1784"]

Request Example

{
"roleId": "2394",
"accountIds": [
"1708********6159",
"1472********1784"
]
}

Response Parameters

ParameterTypeDescriptionExample
successBooleanWhether the request is successful.true
requestIdStringRequest ID.Wr1v5DRN-gmmmfTXnjihu0QCdjhd4CXP

Successful Invocation Example

{
"success": true,
"requestId": "Wr1v5DRN-gmmmfTXnjihu0QCdjhd4CXP"
}