Destination
Update a destination
Authentication
WRITE API
- Write
READ API
- Read
PLATFORM API
- OAuth
- Project
- Provider App
- Integration
- Revision
- Installation
- Objects & Fields
- Operation
- Provider
- API Key
- Connection
- Group
- Consumer
- Destination
- Upload URL
- Org
- User
- Billing Account
Destination
Update a destination
PATCH
/
projects
/
{projectIdOrName}
/
destinations
/
{destination}
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"
}
Authorizations
Path Parameters
The Ampersand project ID or project name.
The destination ID.
Body
application/json
Response
200
application/json
Updated
The response is of type object
.
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"
}