Skip to main content
PATCH
Rename, pause, resume or repoint a destination

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

idempotency-key
string

Any client-chosen key, a uuid for example. Sending the same request twice with the same key has one effect and returns the same response twice; the same key with a different body returns 409.

Required string length: 1 - 255
Example:

"3f1b2c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d"

Path Parameters

id
string

An existing destination, by name or id from list_destinations: the call updates it instead of adding one. With it, pass name, paused, url (webhook) or to (email); provider is not needed.

Required string length: 1 - 200

Body

application/json
provider
enum<string>

For a new destination: webhook or email. connect_destination connects Slack and other apps.

Available options:
webhook,
email
url
string<uri>

For webhook: the https URL that receives the signed events. On an update it replaces the URL and makes a new secret.

to
string<email>[]

For email: the addresses that receive the emails, 1 to 20. On an update it replaces the list.

Required array length: 1 - 20 elements
paused
boolean

Only with destination. true pauses every sync to it: they send nothing until you resume them. The syncs keep their choices. false resumes them. They do not send the people who entered a view during the pause.

name
string

A name to tell destinations apart, such as "Make leads". list_destinations shows it, and save_sync takes it.

Required string length: 1 - 120
fields
string[]

For webhook and Clay: what it sends about each person, as field keys in order. Examples: first_name, last_name, job_title, company, signal, post_topic, post_url, ziplined_url. An unknown key gets an error with all keys. Left out, a new webhook gets the default set. You cannot change the columns of a Google Sheets tab.

Maximum array length: 27
confirm_id
string

The confirm_id of a needs_confirmation answer: commits what that answer summarised.

Response

The result, or without confirm_id first a needs_confirmation answer: nothing happened yet.

destination
object
required
secret
string | null
required

The webhook signing secret, shown this one time. Null for email, and null when this answer is a replay. A lost secret is not recoverable: rotate it with POST /v1/integrations/{id}/rotate-secret.

app_url
string
required