Update a destination

PUT/cdp/{connection_id}/destination/{id}

Parameters

fieldsstring array
Fields to return
rawstring
Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
connection_idstring required
ID of the connection
idstring required
ID of the Destination

Payload

idstring
Unique identifier for this destination object
created_atdate
The date that this destination object was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atdate
The last date that this destination object was updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
namestring
The name of the outbound activation destination
slugstring
A stable handle/key for the destination
typestring
The connector/destination type (eg. the provider's connector slug or plugin id)
direction enum
Valid values:
"SOURCE"
"DESTINATION"
"BIDIRECTIONAL"
DESTINATION, or BIDIRECTIONAL for import+export connectors
is_enabledboolean
Whether the destination is active/enabled

Returns

idstring
Unique identifier for this destination object
created_atdate
The date that this destination object was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atdate
The last date that this destination object was updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
namestring
The name of the outbound activation destination
slugstring
A stable handle/key for the destination
typestring
The connector/destination type (eg. the provider's connector slug or plugin id)
direction enum
Valid values:
"SOURCE"
"DESTINATION"
"BIDIRECTIONAL"
DESTINATION, or BIDIRECTIONAL for import+export connectors
is_enabledboolean
Whether the destination is active/enabled
const options = {
  method: 'PUT',
  url: 'https://api.unified.to/cdp/5de520f96e439b002043d8dc/destination/5de520f96e439b002043d8d8',
  headers: {
    authorization: 'bearer .....'
  },
  data: undefined,
  params: {
    fields: '',
    raw: '',
  }
};

const results = await axios.request(options);
Are we missing anything? Let us know
Was this page helpful?