Unify and manage your data

Create destinations for a segment

Learn more about the Segmentation Api to create a new destination.

This Activation Service API will enable you to create a new destination schedule for a segment in a tenant. In the Segments page in the Hub, when you add a downstream system for a segment with a sync schedule, the POST destination API is invoked and all details are stored in the destination object.

Request

POST /api/[env]/[tenant]/destinations 
Parameter Required Description
Headers Authorization YesInformation about authentication access token in the format "Bearer <accessToken>". For more information, see Authentication API.

Request body

ParameterTypeDescription
segmentUriStringThe segment URI for which you want to retrieve destinations.
integrationIdStringThe UUID of the integration
typeThe type of schedule, which can be One time or Recurring.
scheduleStringFor the Recurring type, enter a string with a recurring rule based on RFC 5545. For the One time type, enter a date.

Response

ParameterType Description
successbooleanTrue for success response
errorErrorError object for details
resultDestinationThe destination object
result.idStringUUID of the destination
result.integrationIdStringUUID of the integration
result.typeType of schedule, which can be One time or recurring.
result.scheduleString

Can be one of the following:

  • A string with a recurring rule based on RFC 5545.

  • A date, if type is One time.

result.segmentUriStringThe segment URI to get details about the segment.