Update Webhooks

Untuk mengedit webhook yang spesifik, buat panggilan PUT ke /webhooks/{{ WEBHOOK_ID }} .

Contoh

Sampel request:

curl -X PUT 'https://waofficial.botika.online/api/whatsapp/v1/webhooks/{{ WEBHOOK_ID }}' \
-H 'Authorization: Bearer {{ API_TOKEN }}' \
-H 'Content-Type: application/json' \
-d '{
    "name": "{{ WEBHOOK_NAME }}",
    "url": "{{ WEBHOOK_URL }}",
    "events": [
        "outbound notifications",
        "inbound notifications"
    ],
    "status": "ACTIVE" || "INACTIVE"
}'

Dari request tersebut akan mengembalikan JSON dengan format:

null

Copyright © 2023 Botika Teknologi Indonesia