Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Insert excerpt_ExcerptBetaAPI_ExcerptBetaAPInopaneltrueThe PATCH /subscriptions/{subscriptionId} endpoint can be used to update an existing subscription.

Insert excerpt
_ExcerptSubscriptionChangeDelay
_ExcerptSubscriptionChangeDelay
nopaneltrue

Panel
borderColor#eeeeee
bgColorwhite
titleColorwhite
borderWidth1
titleBGColor#D6219C
borderStylesolid
titleIn this page

Table of Contents

...

TypeRequiredExample
StringTrue2V1d4FfmK5ho8aiomIwP9QdpQjv

The unique identifier for the subscription.

...

Code Block
languagejs
themeMidnight
{
  "name": "My app",
  "url": "https://your-application.com/abc/123",
  "events": [
    "agent.presencechanged.v0v1",
    "channel.connected.v0v1"
  ],
  "enabled": false,
  "secret": "OFe4WHqXISxMAgoYneiFhgdGrOgYeToYPN3HjIO4xAxDvWd/oIKTW1P4A6GLXN0McDGlLtnTn1KCGCa+W5Gu="
}

...

  • name — The name of the subscription. The name must be unique.
  • url — The URL that the webhook events are sent to. It must be a fully qualified http or https URL.
  • events — A list of the event types you wish to receive webhook notifications for. Each item in the list must be the name of an event type. You can get a list of event types to discover their names.
  • enabled — Notifications will only be sent to the URL if the subscription is enabled.
  • secret — The secret used to sign notifications. 

...

Code Block
languagepowershell
themeMidnight
curl -L -X PATCH "https://***.api.newvoicemedia.com/webhooks/subscriptions/2V1dP1RidyufqyPHlng0VJpGF3i" \
-H "Authorization: bearer <ACCESS_TOKEN>" \
-H "Accept: application/vnd.newvoicemedia.v1+json"

...

Code Block
languagejs
themeMidnight
{
    "subscriptionId": "2V1EhIxvsBPpnqf6Hqv9mtPZx1a",
    "name": "My app",
    "url": "https://your-application.com/webhooks/events",
    "events": [
        "agent.presencechanged.v0v1",
        "channel.alerting.v0v1"
    ],
    "enabled": false
}

The response contains the following properties:

Insert excerpt
_ExcerptAPISubscriptionWebhooks
_ExcerptAPISubscriptionWebhooks
nopaneltrue
Insert excerpt
_ExcerptRunInPostman
_ExcerptRunInPostman
nopaneltrue