Domain name for API request: bi.intl.tencentcloudapi.com.
This API is used to modify the user role info in the project.
A maximum of 100 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: ModifyUserRoleProject. |
| Version | Yes | String | Common Params. The value used for this API: 2022-01-05. |
| Region | No | String | Common Params. This parameter is not required. |
| ProjectId | No | Integer | Project ID. |
| UserId | No | String | User ID. |
| RoleIdList.N | No | Array of Integer | Role ID list. |
| No | String | Mailbox. | |
| UserName | No | String | Username. |
| AppUserId | No | String | WeCom app user ID. |
| Parameter Name | Type | Description |
|---|---|---|
| ErrorInfo | ErrorInfo | Custom error information object. Note: This field may return null, indicating that no valid values can be obtained. |
| Extra | String | Expansion. Note: This field may return null, indicating that no valid values can be obtained. |
| Msg | String | Message. Note: This field may return null, indicating that no valid values can be obtained. |
| Data | String | Data. Note: This field may return null, indicating that no valid values can be obtained. |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
This example shows you how to modify user information in the project.
POST / HTTP/1.1
Host: bi.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyUserRoleProject
<Common request parameters>
{
"ProjectId": 1982493789748932,
"UserId": "UserId",
"RoleIdList": [
1982493789748932
],
"Email": "123***@qq.com",
"UserName": "zhangsan",
"AppUserId": "AppUserId"
}{
"Response": {
"ErrorInfo": {
"ErrorTip": "",
"ErrorLevel": "INFO",
"DocLink": "",
"FAQ": "",
"ReservedField": ""
},
"Extra": "",
"Msg": "Successful",
"Data": "",
"RequestId": "sadd23jdsh-123cdjds"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| InternalError.Internal | Internal error. |
| MissingParameter.MissingParam | The required parameter is missing. |
| UnauthorizedOperation.Authorize | Permission error. |
Feedback