Disconnect a destination
Stop a source's webhooks going to a destination. The destination stays.
Stops this source's webhooks going to the destination. Webhooks from this source still waiting for their first try there are dropped, and ones being retried stop and count as failed. The destination stays, with its history, for other sources or to connect again.
Only admins can disconnect destinations.
A connected app needs the write scope: full access.
AuthorizationBearer <unm_ followed by 40 letters and digits>A token from the CLI page in Unmissed. Revoke it there to stop it working.
source*integerThe source's id, from List sources.
int64destination*integerThe destination's id, from List destinations.
int64What stopped.
application/json- response
source_id*integerint64destination_id*integerint64dropped*integerWebhooks from this source still waiting for their first try there, which won't be sent.
stopped*integerWebhooks from this source being retried there, which stop and count as failed.
message*stringcurl -X DELETE 'http://localhost:8080/api/v1/sources/0/destinations/0' \
-H 'Authorization: Bearer '{
"source_id": 1,
"destination_id": 3,
"dropped": 0,
"stopped": 2,
"message": "Webhooks from Stripe stop going to destination #3. The destination stays."
}