Memperbarui kunci publik enkripsi nomor telepon.
Deskripsi operasi
-
Before you call this API, you must add and verify a phone number for your WhatsApp Business Account (WABA).
-
If you do not have a phone number for your WABA, call the GetChatappVerifyCode and ChatappVerifyAndRegister APIs to obtain a verification code and verify the phone number.
QPS limit
This API is limited to 5 queries per second (QPS) for each user. If you exceed this limit, API calls are throttled, which can affect your business. Call this API within the specified limit.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cams:UpdatePhoneEncryptionPublicKey |
update |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| PhoneNumber |
string |
Yes |
Nomor telepon. Anda dapat mencari nomor telepon di halaman Manajemen Nomor Telepon. Untuk membuka halaman tersebut, pilih Manajemen Saluran > Kelola > Manajemen WABA. |
86158******** |
| EncryptionPublicKey |
string |
Yes |
Kunci publik. |
-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAt+PMrYw4zUDEk+VeTrp0\n8LZaoVpiVFErX7iuoDjUs4F9vkxMQuIABjcXw\/swzTMEopLORQV28uqN\/2\/x9hjU\****\/Zwa\/Vk5Svp4\niVY4e22FsJCCWUEMvayO8Q+3UGq0eXXQ+8SlUWEMq1VaJ4pwCLsMnmgybA+VmJxi\nkwIDAQAB\n-----END PUBLIC KEY-----" |
| CustSpaceId |
string |
No |
ID ruang sub-pelanggan Vendor Perangkat Lunak Independen (ISV) atau ID instans pelanggan langsung. Anda dapat mencari ID ruang di halaman Manajemen Saluran. |
cams-kei**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The data returned. |
||
| AccessDeniedDetail |
string |
Details about the access denial. |
None |
| RequestId |
string |
The ID of the request. |
90E63D28-E31D-1EB2-8939-A94866411B2O |
| Message |
string |
The error message. |
None |
| Code |
string |
The status code of the request. For more information, see Error codes. |
OK |
Contoh
Respons sukses
JSONformat
{
"RequestId": "90E63D28-E31D-1EB2-8939-A94866411B2O\n",
"Code": "OK",
"Message": "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.