Update Destination
Updates the configuration of an existing destination. The request body structure depends on the destination's type. Type itself cannot be updated. May return an OAuth redirect URL for certain types.
Request body
Example request
{
"type": "webhook",
"filter": {
"data": {
"amount": {
"$gte": 100
},
"customer": {
"tier": "premium"
}
}
},
"config": {
"url": "https://example.com/webhooks/user",
"custom_headers": "{\"x-api-key\":\"secret123\",\"x-tenant-id\":\"customer-456\"}"
},
"delivery_metadata": {
"app-id": "my-app",
"region": "us-east-1"
},
"metadata": {
"internal-id": "123",
"team": "platform"
}
}Response
Destination updated successfully or OAuth redirect needed.
Example response
{
"id": "des_webhook_123",
"type": "webhook",
"topics": [
"user.created",
"order.shipped"
],
"disabled_at": null,
"created_at": "2024-02-15T10:00:00Z",
"updated_at": "2024-02-15T10:00:00Z",
"config": {
"url": "https://my-service.com/webhook/handler"
},
"credentials": {
"secret": "whsec_abc123def456",
"previous_secret": "whsec_prev789xyz012",
"previous_secret_invalid_at": "2024-02-16T10:00:00Z"
}
}Changes
Changed in 6 of the 50 revisions of this API.10162
- ▲
added the new required request property
oneOf[DestinationUpdateAWSKinesis]/typenew-required-request-property
- ▲
added the new required request property
oneOf[DestinationUpdateAWSS3]/typenew-required-request-property
- ▲
added the new required request property
oneOf[DestinationUpdateAWSSQS]/typenew-required-request-property
- ▲
added the new required request property
oneOf[DestinationUpdateAzureServiceBus]/typenew-required-request-property
- ▲
added the new required request property
oneOf[DestinationUpdateGCPPubSub]/typenew-required-request-property
- ▲
added the new required request property
oneOf[DestinationUpdateHookdeck]/typenew-required-request-property
- ▲
added the new required request property
oneOf[DestinationUpdateKafka]/typenew-required-request-property
- ▲
added the new required request property
oneOf[DestinationUpdateRabbitMQ]/typenew-required-request-property
- ▲
added the new required request property
oneOf[DestinationUpdateWebhook]/typenew-required-request-property
- ●
removed the request property
oneOf[DestinationUpdateHookdeck]/configrequest-property-removed
- ○
added request discriminator
request-body-discriminator-added
- ○
the request property
oneOf[DestinationUpdateAWSKinesis]/config/regionbecame optionalrequest-property-became-optional
- ○
the request property
oneOf[DestinationUpdateAWSKinesis]/config/stream_namebecame optionalrequest-property-became-optional
- ○
the request property
oneOf[DestinationUpdateAWSKinesis]/credentials/keybecame optionalrequest-property-became-optional
- ○
the request property
oneOf[DestinationUpdateAWSKinesis]/credentials/secretbecame optionalrequest-property-became-optional
- ○
the request property
oneOf[DestinationUpdateAWSS3]/config/bucketbecame optionalrequest-property-became-optional
- ○
the request property
oneOf[DestinationUpdateAWSS3]/config/regionbecame optionalrequest-property-became-optional
- ○
the request property
oneOf[DestinationUpdateAWSS3]/credentials/keybecame optionalrequest-property-became-optional
- ○
the request property
oneOf[DestinationUpdateAWSS3]/credentials/secretbecame optionalrequest-property-became-optional
- ○
the request property
oneOf[DestinationUpdateAWSSQS]/config/queue_urlbecame optionalrequest-property-became-optional
- ○
the request property
oneOf[DestinationUpdateAWSSQS]/credentials/keybecame optionalrequest-property-became-optional
- ○
the request property
oneOf[DestinationUpdateAWSSQS]/credentials/secretbecame optionalrequest-property-became-optional
- ○
the request property
oneOf[DestinationUpdateAzureServiceBus]/config/namebecame optionalrequest-property-became-optional
- ○
the request property
oneOf[DestinationUpdateAzureServiceBus]/credentials/connection_stringbecame optionalrequest-property-became-optional
- ○
the request property
oneOf[DestinationUpdateGCPPubSub]/config/project_idbecame optionalrequest-property-became-optional
- ○
the request property
oneOf[DestinationUpdateGCPPubSub]/config/topicbecame optionalrequest-property-became-optional
- ○
the request property
oneOf[DestinationUpdateGCPPubSub]/credentials/service_account_jsonbecame optionalrequest-property-became-optional
- ○
the request property
oneOf[DestinationUpdateHookdeck]/credentials/tokenbecame optionalrequest-property-became-optional
- ○
the request property
oneOf[DestinationUpdateKafka]/config/brokersbecame optionalrequest-property-became-optional
- ○
the request property
oneOf[DestinationUpdateKafka]/config/sasl_mechanismbecame optionalrequest-property-became-optional
- ○
the request property
oneOf[DestinationUpdateKafka]/config/topicbecame optionalrequest-property-became-optional
- ○
the request property
oneOf[DestinationUpdateKafka]/credentials/passwordbecame optionalrequest-property-became-optional
- ○
the request property
oneOf[DestinationUpdateKafka]/credentials/usernamebecame optionalrequest-property-became-optional
- ○
the request property
oneOf[DestinationUpdateRabbitMQ]/config/exchangebecame optionalrequest-property-became-optional
- ○
the request property
oneOf[DestinationUpdateRabbitMQ]/config/server_urlbecame optionalrequest-property-became-optional
- ○
the request property
oneOf[DestinationUpdateRabbitMQ]/credentials/passwordbecame optionalrequest-property-became-optional
- ○
the request property
oneOf[DestinationUpdateRabbitMQ]/credentials/usernamebecame optionalrequest-property-became-optional
- ○
the request property
oneOf[DestinationUpdateWebhook]/config/urlbecame optionalrequest-property-became-optional
- ○
the
tlsrequest property default valuetruewas removedrequest-property-default-value-removed
- ▲
- ○
added the new optional request property
oneOf[DestinationUpdateAWSKinesis]/disabled_atnew-optional-request-property
- ○
added the new optional request property
oneOf[DestinationUpdateAWSS3]/disabled_atnew-optional-request-property
- ○
added the new optional request property
oneOf[DestinationUpdateAWSSQS]/disabled_atnew-optional-request-property
- ○
added the new optional request property
oneOf[DestinationUpdateAzureServiceBus]/disabled_atnew-optional-request-property
- ○
added the new optional request property
oneOf[DestinationUpdateGCPPubSub]/disabled_atnew-optional-request-property
- ○
added the new optional request property
oneOf[DestinationUpdateHookdeck]/disabled_atnew-optional-request-property
- ○
added the new optional request property
oneOf[DestinationUpdateKafka]/disabled_atnew-optional-request-property
- ○
added the new optional request property
oneOf[DestinationUpdateRabbitMQ]/disabled_atnew-optional-request-property
- ○
added the new optional request property
oneOf[DestinationUpdateWebhook]/disabled_atnew-optional-request-property
- ○
- ▲
added
DestinationKafkato theoneOf[Destination]/response propertyoneOflist for the response status200response-property-one-of-added
- ○
added
DestinationUpdateKafkato the request bodyoneOflistrequest-body-one-of-added
- ○
added
kafkadiscriminator mapping keys to theoneOf[Destination]/response property for the response status200response-property-discriminator-mapping-added
- ▲
- ○
request property
oneOf[DestinationUpdateAWSKinesis]/delivery_metadata/additionalProperties/list-of-types was widened by adding typesnullto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
request property
oneOf[DestinationUpdateAWSKinesis]/metadata/additionalProperties/list-of-types was widened by adding typesnullto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
request property
oneOf[DestinationUpdateAWSS3]/delivery_metadata/additionalProperties/list-of-types was widened by adding typesnullto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
request property
oneOf[DestinationUpdateAWSS3]/metadata/additionalProperties/list-of-types was widened by adding typesnullto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
request property
oneOf[DestinationUpdateAWSSQS]/delivery_metadata/additionalProperties/list-of-types was widened by adding typesnullto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
request property
oneOf[DestinationUpdateAWSSQS]/metadata/additionalProperties/list-of-types was widened by adding typesnullto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
request property
oneOf[DestinationUpdateAzureServiceBus]/delivery_metadata/additionalProperties/list-of-types was widened by adding typesnullto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
request property
oneOf[DestinationUpdateAzureServiceBus]/metadata/additionalProperties/list-of-types was widened by adding typesnullto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
request property
oneOf[DestinationUpdateGCPPubSub]/delivery_metadata/additionalProperties/list-of-types was widened by adding typesnullto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
request property
oneOf[DestinationUpdateGCPPubSub]/metadata/additionalProperties/list-of-types was widened by adding typesnullto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
request property
oneOf[DestinationUpdateHookdeck]/delivery_metadata/additionalProperties/list-of-types was widened by adding typesnullto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
request property
oneOf[DestinationUpdateHookdeck]/metadata/additionalProperties/list-of-types was widened by adding typesnullto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
request property
oneOf[DestinationUpdateRabbitMQ]/delivery_metadata/additionalProperties/list-of-types was widened by adding typesnullto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
request property
oneOf[DestinationUpdateRabbitMQ]/metadata/additionalProperties/list-of-types was widened by adding typesnullto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
request property
oneOf[DestinationUpdateWebhook]/delivery_metadata/additionalProperties/list-of-types was widened by adding typesnullto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
request property
oneOf[DestinationUpdateWebhook]/metadata/additionalProperties/list-of-types was widened by adding typesnullto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
- ○
added the media type
application/jsonfor the response with the status404response-media-type-added
- ○
added the non-success response with the status
401response-non-success-status-added
- ○
added the non-success response with the status
422response-non-success-status-added
- ○
added the non-success response with the status
500response-non-success-status-added
- ○
removed the non-success response with the status
400response-non-success-status-removed
- ○
- ○
endpoint added
endpoint-added
- ○