Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
list Table of Contents

Update a Webhook from the API

date_range 31-Oct-24

To update a webhook from the API, you send a PUT command to the webhook’s API with the topic parameter that you want to update.

See Update Org Webhook or Update Site Webhook for the sample POST structure. A sample response is provided below.

The following is an example configuration of an existing, organization-level mxedge-events webhook viewed from the API.

content_copy zoom_out_map
[ 
    { 
        "enabled": true, 
        "name": "mist-edge", 
        "url": "https://webhook.site/4ec10796-16ec-4225-aba4-xxxxxxxxxxxx", 
        "secret": "", 
        "topics": [ 
            "mxedge-events" 
        ], 
        "verify_cert": true, 
        "id": "a7c61a9c-a25b-4c27-xxxx-xxxxxxxxxxxx", 
        "for_site": false, 
        "site_id": "00000000-0000-0000-0000-000000000000", 
        "org_id": "3f12cb79-fb5e-4d4b-xxxx-xxxxxxxxxxxx", 
        "created_time": 1575305516, 
        "modified_time": 1692974137 
    } 
] 

If you want to make a change to this webhook, you need to make an API call (PUT) from your API client to the desired API URL. In this example, the API is the URL to display all webhooks configured for the organization: https://{api-endpoint}/api/v1/orgs/3f12cb79-fb5e-4d4b-xxxx-xxxxxxxxxxxxx/webhooks/4ec10796-16ec-4225-aba4-xxxxxxxxxxxx

Note:

In place of {api-endpoint}, use the API endpoint for your global region. See API Endpoints and Global Regions.

content_copy zoom_out_map
PUT 
https://api.mist.com/api/v1/orgs/3f12cb79-fb5e-4d4b-xxxx-xxxxxxxxxxxxx/webhooks/4ec10796-16ec-4225-aba4-b3ebaed32750
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right
footer-navigation
keyboard_arrow_down
file_download
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
language