cURL
curl --request PATCH \ --url https://api.withampersand.com/v1/projects/{projectIdOrName}/destinations/{destination} \ --header 'Content-Type: application/json' \ --header 'X-Api-Key: <api-key>' \ --data '{ "updateMask": [ "name", "metadata.url", "metadata.headers" ], "destination": { "name": "leadConvertedWebhook", "metadata": { "url": "https://webhooks.mailmonkey.com/salesforce-lead-converted", "headers": { "Authorization": "Bearer 1234" } } } }'
{ "id": "<string>", "name": "leadConvertedWebhook", "type": "webhook", "metadata": { "url": "https://webhooks.mailmonkey.com/salesforce-lead-converted", "headers": { "Authorization": "Bearer 1234" } }, "createTime": "2023-11-07T05:31:56Z", "updateTime": "2023-11-07T05:31:56Z" }
The Ampersand project ID or project name.
The destination ID.
Updated
The response is of type object.
object
Was this page helpful?