Domain name for API request: iss.intl.tencentcloudapi.com.
Used to modify a real-time cloud template.
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: UpdateRecordTemplate. |
| Version | Yes | String | Common Params. The value used for this API: 2023-05-17. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| TemplateId | Yes | String | Template ID. |
| Mod | Yes | UpdateRecordTemplateData | Modify Content |
| Parameter Name | Type | Description |
|---|---|---|
| Data | RecordTemplateInfo | Returned result |
| 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. |
POST / HTTP/1.1
Host: iss.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: UpdateRecordTemplate
<Common request parameters>
{
"TemplateId": "48676e89a8c**********baa36220fa4",
"Mod": {
"TemplateName": "newname"
}
}
{
"Response": {
"Data": {
"TemplateId": "48676e89a8c**********baa36220fa4",
"TemplateName": "newname",
"TimeSections": [
{
"DayOfWeek": 3,
"StartTime": "10:00:00",
"EndTime": "10:30:00"
}
]
},
"RequestId": "fba7981b-d6a4-4177-b11d-e53a6110e4cd"
}
}
POST / HTTP/1.1
Host: iss.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: UpdateRecordTemplate
<Common request parameters>
{
"TemplateId": "48676e89a8c**********baa36220fa4",
"Mod": {
"TimeSections": [
{
"DayOfWeek": 3,
"StartTime": "10:00:00",
"EndTime": "10:30:00"
},
{
"DayOfWeek": 4,
"StartTime": "12:00:00",
"EndTime": "13:00:00"
}
]
}
}
{
"Response": {
"Data": {
"TemplateId": "48676e89a8c**********baa36220fa4",
"TemplateName": "name",
"TimeSections": [
{
"DayOfWeek": 3,
"StartTime": "10:00:00",
"EndTime": "10:30:00"
},
{
"DayOfWeek": 4,
"StartTime": "12:00:00",
"EndTime": "13:00:00"
}
]
},
"RequestId": "fba7981b-d6a4-4177-b11d-e53a6110e4cd"
}
}
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 |
| InvalidParameter.InvalidBodyFormat | Invalid message body format |
| InvalidParameter.InvalidTimeSection | Invalid time segment |
| InvalidParameterValue.EmptyName | Name cannot be empty |
| InvalidParameterValue.IllegalName | Name contains non-compliant characters (only Chinese, English, digits, _, and - are supported) |
| InvalidParameterValue.InvalidTemplateId | Invalid template ID |
| InvalidParameterValue.InvalidTimeSectionValue | Invalid time segment value |
| InvalidParameterValue.StartTimeGreaterThanOrEqualEndTime | Start time cannot be greater than or equal to end time. |
| InvalidParameterValue.TimeLessThanTenMinutes | Time interval cannot be less than 10 minutes. |
| InvalidParameterValue.TooLongName | Name is too long |
| MissingParameter.EmptyTimeSection | Time segment not found |
| MissingParameter.MissingUpdatedInfo | No update information. |
| ResourceInUse.TemplateNameRepeat | Template name must be unique. |
| ResourceNotFound.TemplateNotExist | The template does not exist. |
フィードバック