Domain name for API request: lcic.tencentcloudapi.com.
This API is used to set or update the custom content of an application, including the application icon and custom code. After you update JS and CSS content, you also need to call this API for the updates to take effect.
A maximum of 20 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: SetAppCustomContent. |
Version | Yes | String | Common Params. The value used for this API: 2022-08-17. |
Region | No | String | Common Params. This parameter is not required. |
CustomContent.N | Yes | Array of AppCustomContent | Custom content |
SdkAppId | Yes | Integer | Application ID |
Parameter Name | Type | Description |
---|---|---|
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 configure custom content for an application.
POST / HTTP/1.1
Host: lcic.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: SetAppCustomContent
<Common request parameters>
{
"SdkAppId": 123,
"CustomContent": [
{
"Scene": "default",
"LogoUrl": "https://yourdomain.com/logo.png",
"HomeUrl": "https://yourdomain.com/login",
"JsUrl": "https://yourdomain.com/default.js",
"CssUrl": "https://yourdomain.com/default.css"
}
]
}
{
"Response": {
"RequestId": "213das"
}
}
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 |
---|---|
FailedOperation | Operation failed. |
FailedOperation.RequestTimedOut | Request timed out. |
InternalError | Internal error. |
InvalidParameter | Invalid parameter. |
InvalidParameter.CssOrJs | Unable to access the CSS/JavaScript address. |
InvalidParameter.SdkAppId | SdkAppId is incorrect. |
Was this page helpful?