PUT - Subscription

(Please note that updates to webhook subscriptions can take up to 15 minutes to take effect.)

If changes are needed to an existing subscription, the PUT should be used to make an update to avoid deleting and recreating. This requires all of the same information as the POST and will completely replace the previous subscription.

HTTP Verb: PUT
URI: https://webhooks.services.10-4.com/api/subscription/{{subscriptionID}}
Authentication: Webhook Bearer Token

Sample Request:

{
    "EventType": "Stop.Arrived",
    "CallbackUrl": "https://www.mytestsite199.com",
    "CallbackAuthenticationToken" : "tokenTest"
}

Sample Response:

{
    "data": [
        {
            "subscriptionId": 139,
            "organizationGuid": "{{GUID}}",
            "linkBaseName": "https://develop.trimblevisibility.tech",
            "eventType": "Stop.Arrived",
            "createdDate": "2019-03-26T02:31:38+00:00",
            "callbackUrl": "https://www.mytestsite25.com",
            "callbackAuthenticationToken": "tokenTest",
            "updatedByUserGuid": "{{GUID}}",
            "adminEmailAddress": "[email protected]"
        }
    ],
    "messages": [],
    "totalPossibleCount": 0
}