PUT/v3/webhooks/{webhook-id}Update a v3 webhook

Update a v3 webhook's url, secret and subscribed event types in place, keeping the same HMAC secret.
headerAuthorizationAuthentication token (bearer token or API key).
{
"secretHttp" : String,
"webhookUrl" : String,
"types" : ["DeviceActivation" / "DeviceDeactivation" / "DeviceBoot" / "DeviceStatus" / "DeviceTamperVibration" / "DeviceTamperRotations" / "DeviceTamperFaultyPin" / "DeviceLocked" / "MatterCommissioning" / "ThreadConnection"]
}

Response

status401Invalid authentication token
{}

Example: Update a v3 webhook

PUT/v3/webhooks/2

headerAuthorizationBearer c94e0909-7100-43c1-b822-15d8761f7f20
{
"webhookUrl": "https://webhook.example.com/v3-updated",
"types": ["DeviceLocked", "ThreadConnection"]
}

Response

status200
headerAccess-Control-Expose-Headersauthorization, content-type
headerAccess-Control-Allow-Headersauthorization, content-type
headerAccess-Control-Allow-MethodsGET, POST, DELETE, OPTIONS, PUT
headerAccess-Control-Allow-Origin*
headerStrict-Transport-Securitymax-age=31536000; includeSubDomains
headerX-Frame-OptionsSAMEORIGIN
headerX-Content-Type-Optionsnosniff
headerX-XSS-Protection1; mode=block
headerContent-Security-Policydefault-src 'none'; frame-ancestors 'none'; base-uri 'none'; form-action 'none'
headerReferrer-Policyno-referrer
headerFeature-Policyself
headerPermissions-policyinterest-cohort=()
{}

Example: Reject updating a non-v3 webhook

Example: Reject updating a v3 webhook to a URL already used by another webhook