Archives a Chat App Message Service template. Currently, only WhatsApp templates support archiving.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TemplateList |
array<object> |
Yes |
The template list. |
|
|
object |
Yes |
The template list. |
||
| TemplateCode |
string |
Yes |
The template code. You can view the template code on the Channel Management > Management > Template Design page. |
939938**** |
| Language |
string |
Yes |
The template language. For detailed language codes, see Language codes. |
zh_CN |
| ArchiveType |
string |
Yes |
The archive type. Valid values:
|
ARCHIVED |
| CustSpaceId |
string |
Yes |
The space ID of the ISV sub-customer or the instance ID of the direct customer. You can view the Space ID on the Channel Management page. |
示例值示例值 |
| ChannelType |
string |
Yes |
The channel type. Valid values:
Note
Only the WhatsApp channel type is supported. |
示例值 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| AccessDeniedDetail |
string |
The details about the access denial. |
None |
| Message |
string |
The error message. |
None |
| RequestId |
string |
The request ID. |
90E63D28-E31D-1EB2-8939-A94866411B2O |
| Data |
object |
The returned data. |
|
| Message |
string |
The error message. |
示例值示例值 |
| RequestId |
string |
The request ID. |
示例值示例值示例值 |
| Code |
string |
The request status code.
|
示例值示例值 |
| Success |
boolean |
Indicates whether the call was successful. Valid values:
|
false |
| Code |
string |
The request status code.
|
OK |
| Success |
boolean |
Indicates whether the call was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"AccessDeniedDetail": "None",
"Message": "None",
"RequestId": "90E63D28-E31D-1EB2-8939-A94866411B2O",
"Data": {
"Message": "示例值示例值",
"RequestId": "示例值示例值示例值",
"Code": "示例值示例值",
"Success": false
},
"Code": "OK",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.