1. 设置账户归属
POST /v1/api/account/owner
Request Headers
| Name | Required | Type | Description |
|---|---|---|---|
| x-api-tenantId | yes | string | 租户编号 |
| x-api-token | yes | string | 认证token |
Request Body Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| serverId | yes | string | server编码 |
| accountId | yes | Long | 账户login |
| ownerId | yes | string | 归属人ID |
Response
| Name | Type | Description |
|---|---|---|
| result | boolean | 成功标识,返回true,表示请求成功,false表示请求失败 |
| mcode | string | 错误码,成功时返回m00000,失败时返回对应的错误码,见文档默认错误码说明 |
| errorMessage | List | 错误提示信息,部分错误码时有值 |
Example
请求示例
POST /v1/api/account/owner
RequestBody
{
"accountId":2109730462,
"serverId":"428",
"ownerId":"7"
}
返回示例:成功
{
"mcode": "m0000000",
"result": true
}
返回示例:失败
{
"mcode":"m0000001",
"errorMessage":"",
"result":false
}
2. Error 错误处理
错误码表(Error Code)
| mcode | Message |
|---|---|
| BW_INVALID_PARAM | 参数错误 |
| BW_INVALID_SERVERID | 无效serverId |
| -1 | 服务异常,请稍后再试 |