Mengubah templat Paket. Anda hanya dapat mengubah templat yang belum ditinjau atau telah ditolak.
Deskripsi operasi
QPS limits
The queries per second (QPS) limit for this API is 50 calls per second for each user. If you exceed this limit, your API calls are subject to rate limiting. This may affect your business. Make sure that you call this API within the specified limit.
Status changes
You can monitor changes in template status and quality through MNS or HTTP. For more information, see Receipt messages.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cams:ModifyChatappTemplate |
update |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Components |
array<object> |
Yes |
Daftar Komponen templat Paket. Catatan
Jika kategori adalah AUTHENTICATION, Components tidak boleh berisi node dengan tipe yang diatur ke Header. Jika tipe adalah BODY atau FOOTER, konten Text kosong dan dibuat secara otomatis. |
|
|
array<object> |
No |
A message template component. |
||
| Type |
string |
Yes |
The component type:
Catatan
|
BODY |
| Text |
string |
No |
The text of the message. Catatan
If Category is AUTHENTICATION, this property is empty. |
hello chatapp |
| Format |
string |
No |
The media resource type.
|
TEXT |
| Url |
string |
No |
The URL of the media asset. |
https://img.****.com/png_preview/00/10/24/1GygxVK3F4.jpg |
| Caption |
string |
No |
The description. Catatan
You can add a description when Type is HEADER and Format is IMAGE, |
This is a video |
| FileName |
string |
No |
The file name. Catatan
Specify the file name when Type is HEADER and |
video |
| Buttons |
array<object> |
No |
A list of buttons. This applies only to the Catatan
Number of buttons for WhatsApp:
|
|
|
array<object> |
No |
The button definition. |
||
| Type |
string |
Yes |
The button type.
Catatan
|
PHONE_NUMBER |
| Text |
string |
No |
The button text. |
phone-button-text |
| PhoneNumber |
string |
No |
The phone number. |
+861388888**** |
| Url |
string |
No |
The URL to visit when the button is clicked. |
https://www.website.com/*** |
| UrlType |
string |
No |
The URL type.
|
dynamic |
SignatureHash
deprecated
|
string |
No |
Use the properties under SupportedApps. |
29dkeke |
PackageName
deprecated
|
string |
No |
Use the properties under SupportedApps. |
com.demo |
| AutofillText |
string |
No |
Required for WhatsApp templates when Category is AUTHENTICATION and Button Type is ONE_TAP or ZERO_TAP. This is the button text for the WhatsApp Autofill action. |
Autofill |
| IsOptOut |
boolean |
No |
For WhatsApp templates, this is valid when Category is Marketing and Button type is QUICK_REPLY. It indicates that the button is a marketing opt-out button. If a customer clicks this button and a sending control action is configured in ChatApp, subsequent marketing messages are not sent to the customer. |
false |
| CouponCode |
string |
No |
The coupon code. It supports only letters and numbers. You can pass a variable, such as `$(couponCode)`, and provide the actual coupon code at the time of sending. |
120293 |
| FlowId |
string |
No |
The Flow ID. |
664597077870605 |
| FlowAction |
string |
No |
The Flow data event type. Valid values:
|
NAVIGATE |
| NavigateScreen |
string |
No |
The screen to navigate to. This is required when FlowAction is NAVIGATE. |
DETAILS |
| SupportedApps |
array<object> |
No |
A list of supported apps. |
|
|
object |
No |
A list of supported apps. |
||
| SignatureHash |
string |
No |
Required for WhatsApp templates when Category is AUTHENTICATION and Button Type is ONE_TAP or ZERO_TAP. This is the signature hash of the application launched by WhatsApp. |
fk39kd93ks9 |
| PackageName |
string |
No |
Required for WhatsApp templates when Category is AUTHENTICATION and Button Type is ONE_TAP or ZERO_TAP. This is the package name of the application launched by WhatsApp. |
com.example.myapplication |
| ThumbUrl |
string |
No |
This field is invalid. |
https://cdn.multiplymall.mobiapp.cloud/cloudcode/yc-165407506207478-165511576113195/20220905/ec5b9737-1507-4208-bb27-8da3958da961.jpg?x-oss-process=image/resize,w_100 |
| Duration |
integer |
No |
This field is invalid. |
120 |
| FileType |
string |
No |
This field is invalid. |
docx |
| CodeExpirationMinutes |
integer |
No |
The validity period of the verification code for a WhatsApp AUTHENTICATION template, in minutes. This is valid only for WhatsApp messages when Category is AUTHENTICATION and Component Type is Footer. This information is displayed in the footer. |
5 |
| AddSecretRecommendation |
boolean |
No |
For WhatsApp templates, this is valid when Category is AUTHENTICATION and Component Type is Body. It indicates that a message is displayed above the body, advising users not to share the verification code. |
false |
| HasExpiration |
boolean |
No |
Indicates whether the coupon code has an expiration time. Used when type is LIMITED_TIME_OFFER. |
true |
| Cards |
array<object> |
No |
A list of cards for the Carousel template. |
|
|
array<object> |
No |
A list of cards for the Carousel template. |
||
| CardComponents |
array<object> |
Yes |
A list of controls in the Carousel card. |
|
|
array<object> |
No |
A list of controls in the Carousel card. |
||
| Type |
string |
Yes |
The component type. Valid values:
|
BODY |
| Format |
string |
No |
The media resource type. This is valid when Type is HEADER.
|
IMAGE |
| Text |
string |
No |
The content of the BODY in the Carousel card. |
Who is the very powerful team |
| Url |
string |
No |
The URL of the media asset. |
https://alibaba.com/****/img.png |
| Buttons |
array<object> |
No |
A list of buttons. This applies only to the BUTTONS component. Each Carousel card can have a maximum of two buttons. |
|
|
object |
No |
The button object. |
||
| Text |
string |
No |
The button text. |
Call me |
| Type |
string |
Yes |
The button type.
|
PHONE_NUMBER |
| Url |
string |
No |
The URL to visit when the button is clicked. |
https://alibaba.com/xx |
| UrlType |
string |
No |
The URL type.
|
static |
| PhoneNumber |
string |
No |
The phone number. |
+861368893**** |
| Language |
string |
Yes |
Bahasa templat. Untuk daftar kode bahasa, lihat Kode bahasa. |
en |
| Example |
object |
No |
Contoh templat. |
|
|
string |
No |
The template example. |
StringConcat('a', 'b', 'c') |
|
CustWabaId
deprecated
|
string |
No |
ID WhatsApp Business Account (WABA) pelanggan independent software vendor (ISV). Catatan
Parameter ini tidak digunakan lagi. Gunakan CustSpaceId sebagai gantinya. |
65921621816**** |
| IsvCode |
string |
No |
Kode verifikasi ISV. Kode ini digunakan untuk memverifikasi bahwa Pengguna RAM telah diotorisasi oleh ISV. |
ksiekdki39ksks93939 |
| TemplateCode |
string |
No |
Kode templat Paket. |
8472929283883 |
| CustSpaceId |
string |
Yes |
ID Space pelanggan sub-ISV, atau ID instans pelanggan langsung. |
28251486512358**** |
| Category |
string |
No |
Tipe templat tidak dapat diubah. |
text |
| TemplateType |
string |
No |
Tipe templat.
|
|
| MessageSendTtlSeconds |
integer |
No |
Pengatur waktu-to-live (TTL) dari templat Paket dalam detik.
|
120 |
| TemplateName |
string |
No |
Nama templat. |
test_name |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| RequestId |
string |
The request ID. |
90E63D28-E31D-1EB2-8939-A9486641**** |
| Code |
string |
The request status code.
|
OK |
| Message |
string |
The error message. |
None |
| Data |
object |
The returned data. |
|
| TemplateCode |
string |
The template code. |
8472929283883 |
| TemplateName |
string |
The template name. |
hello_whatsapp |
| AccessDeniedDetail |
string |
Details about the access denial. |
None |
Contoh
Respons sukses
JSONformat
{
"RequestId": "90E63D28-E31D-1EB2-8939-A9486641****",
"Code": "OK",
"Message": "None",
"Data": {
"TemplateCode": "8472929283883",
"TemplateName": "hello_whatsapp"
},
"AccessDeniedDetail": "None"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Product.Unsubscript | You have not subscribed to the specified product. | |
| 400 | Ram.PermissionDeny | You are not authorized to perform the operation. | |
| 400 | System.LimitControl | The system is under flow control. | |
| 400 | Unknown.ResourceOwnerId | The resource does not belong to the current user. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.