API 参考账户管理
分配角色到用户
POST
/AssignRolesToUsers为指定账户分配角色。支持批量操作:多个账户和多个角色均以英文逗号分隔。
Authorization
bearer AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/AssignRolesToUsers" \ -H "Content-Type: application/json" \ -d '{ "uniqueKey": "14~1,15~1", "username": "test" }'{ "ErrCode": 0, "Message": "分配角色成功"}