# Create activation Create an activation (formerly syndication). Endpoint: POST /entities/segments/{segmentId}/syndications Version: 1.0.0 ## Path parameters: - `segmentId` (integer, required) Segment to create Activation ## Request fields (application/vnd.treasuredata.v1+json): - `id` (string) - `type` (string) Enum: "syndication" - `attributes` (object) - `attributes.name` (string, required) - `attributes.description` (string) - `attributes.allColumns` (boolean) syndication all column flag ('true' means that you use all attribute data) - `attributes.columns` (array) Syndication column detail. Basic syntax is . accepts various definitions. See ColumnExpression/StringExpression for details. example value is using ColumnExpression without property. Example: [{"column":"alias_name","source":{"column":"real_column_name"}}] - `attributes.columns.column` (string, required) - `attributes.columns.source` (any, required) - `attributes.runAt` (string) - `attributes.cron` (string) - `attributes.timezone` (string) - `attributes.startAt` (string,null) cdp-api will fill some value for old syndications with ScheduleType is not NoneType. '%Y-%M-%DT%h:%m:%s' is expected. - `attributes.endOn` (string,null) - `attributes.repeatUnit` (string) Setting an activation repetition cycle such as "day" or "week". Enum: "none", "minute", "hour", "day", "week", "month", "once" - `attributes.repeatFrequency` (integer) Setting an activation repeat frequency. Currently, it is set only when the repeat unit is "minute". If the repeat unit is "minute", the interval is set in minutes. - `attributes.repeatSubFrequency` (array) Parameter for more detailed frequency settings. Values are array of integers. Currently, this parameter is only valid for repeat unit "week". For multiple days of the week, each value should be 1 to 7. 1: Monday, 2: Tuesday, 3: Wednesday, 4: Thursday, 5: Friday, 6: Saturday, 7: Sunday Example: [1,5,6] - `attributes.connectionId` (integer) - `attributes.connectorConfig` (object) - `attributes.notifyOn` (array) Enum: "onSuccess", "onFailure" - `attributes.emailRecipients` (array) - `attributes.activationTemplateId` (string) - `attributes.syndicationBehavior` (object,null) - `attributes.syndicationBehavior.behaviorTableName` (string) Behavior table name which contains behavior records Example: "purchase_history" - `attributes.syndicationBehavior.joinRow` (integer,null) How much rows would be joined (value is N for Top-N join) Example: 3 - `attributes.syndicationBehavior.formatting` (string) Enum: "rows", "cols" - `attributes.syndicationBehavior.orderBy` (array) Example: [{"key":"purchased_at","order":"descending"},{"key":"price","order":"ascending"}] - `attributes.syndicationBehavior.orderBy.key` (string) Example: "purchased_at" - `attributes.syndicationBehavior.orderBy.order` (string) Enum: "ascending", "descending" - `attributes.scheduleType` (string) Deprecated. Old parameter for setting schedule type. See/Use RepeatUnit instead. Enum: "cron", "daily", "hourly", "minutes_interval", "monthly", "none", "weekly" - `attributes.scheduleOption` (string) Deprecated. Old parameter for setting schedule. See startAt instead. ## Response 200 fields (application/vnd.treasuredata.v1+json): - `data` (object, required) - `data.id` (string) - `data.type` (string) Enum: "syndication" - `data.attributes` (object) - `data.attributes.audienceId` (string, required) - `data.attributes.name` (string, required) - `data.attributes.description` (string,null, required) - `data.attributes.allColumns` (boolean) syndication all column flag ('true' means that you use all attribute data) - `data.attributes.columns` (array, required) Syndication column detail. Basic syntax is . accepts various definitions. See ColumnExpression/StringExpression for details. example value is using ColumnExpression without property. Example: [{"column":"alias_name","source":{"column":"real_column_name"}}] - `data.attributes.columns.column` (string, required) - `data.attributes.columns.source` (any, required) - `data.attributes.timezone` (string) - `data.attributes.startAt` (string,null) cdp-api will fill some value for old syndications with ScheduleType is not NoneType. '%Y-%M-%DT%h:%m:%s' is expected. - `data.attributes.endOn` (string,null) - `data.attributes.runStatus` (string,null) Tag should be shown in "Run Status". If the workflow never run before and future schedule is set, 'scheduled' will be shown. Enum: "scheduled", "success", "error", "canceling", "canceled", "running", "waiting" - `data.attributes.repeatUnit` (string) Setting an activation repetition cycle such as "day" or "week". Enum: "none", "minute", "hour", "day", "week", "month", "once" - `data.attributes.repeatFrequency` (integer) Setting an activation repeat frequency. Currently, it is set only when the repeat unit is "minute". If the repeat unit is "minute", the interval is set in minutes. - `data.attributes.repeatSubFrequency` (array) Parameter for more detailed frequency settings. Values are array of integers. Currently, this parameter is only valid for repeat unit "week". For multiple days of the week, each value should be 1 to 7. 1: Monday, 2: Tuesday, 3: Wednesday, 4: Thursday, 5: Friday, 6: Saturday, 7: Sunday Example: [1,5,6] - `data.attributes.connectionId` (string) - `data.attributes.connectorConfig` (object) - `data.attributes.valid` (boolean) - `data.attributes.notifyOn` (array) Enum: "onSuccess", "onFailure" - `data.attributes.emailRecipients` (array) - `data.attributes.executions` (array) - `data.attributes.executions.workflowId` (string, required) - `data.attributes.executions.workflowSessionId` (string, required) - `data.attributes.executions.createdAt` (string, required) - `data.attributes.executions.finishedAt` (string,null, required) - `data.attributes.executions.status` (string, required) Enum: "success", "canceled", "error", "canceling", "blocked", "queued", "running" - `data.attributes.executions.workflowAttemptId` (string, required) - `data.attributes.executions.syndicationId` (string) - `data.attributes.updatedAt` (string, required) - `data.attributes.nestedWorkflowProjectName` (string) - `data.attributes.nestedWorkflowName` (string) - `data.attributes.activationActionsEnabled` (boolean) - `data.attributes.lockEnabled` (boolean) - `data.attributes.activationTemplateId` (string) - `data.attributes.syndicationBehavior` (object) - `data.attributes.syndicationBehavior.behaviorTableName` (string) Behavior table name which contains behavior records Example: "purchase_history" - `data.attributes.syndicationBehavior.joinRow` (integer,null) How much rows would be joined (value is N for Top-N join) Example: 3 - `data.attributes.syndicationBehavior.joinStrategy` (string) Label of what is the wanted record(s). Note for BE: See APPS-2679. "ascending" and "descending" are inverted finally. Enum: "All", "First", "Last", "Top-N" - `data.attributes.syndicationBehavior.formatting` (string) Enum: "rows", "cols" - `data.attributes.syndicationBehavior.orderBy` (array) Example: [{"key":"purchased_at","order":"descending"},{"key":"price","order":"ascending"}] - `data.attributes.syndicationBehavior.orderBy.key` (string) Example: "purchased_at" - `data.attributes.syndicationBehavior.orderBy.order` (string) Enum: "ascending", "descending" - `data.attributes.syndicationBehavior.validReferences` (object) Example: {"behaviorTableName":true,"columns":{"purchased_at":false,"price":true}} - `data.attributes.syndicationBehavior.validReferences.behaviorTableName` (boolean) Behavior table name has valid reference by other dependent resources. Example: true - `data.attributes.syndicationBehavior.validReferences.columns` (object) it contains pair of source name and status by each column status is Behavior column has valid reference by other dependent resources. Example: {"purchased_at":false,"price":true} - `data.attributes.scheduleType` (string) Deprecated. Old parameter for setting schedule type. See/Use RepeatUnit instead. Enum: "cron", "daily", "hourly", "minutes_interval", "monthly", "none", "weekly" - `data.attributes.scheduleOption` (string) - `data.relationships` (object) - `data.relationships.segment` (object) - `data.relationships.createdBy` (object) - `data.relationships.updatedBy` (object) - `included` (array, required)