- Update activation
Update an activation (formerly syndication).
Syndication column detail. Basic syntax is {"column": "alias_name", "source": {...}}. source accepts various definitions. See ColumnExpression/StringExpression for details. example value is using ColumnExpression without function property.
[ { "column": "alias_name", "source": { … } } ]
Setting an activation repetition cycle such as "day" or "week".
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.
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
[ 1, 5, 6 ]
cdp-api will fill some value for old syndications with ScheduleType is not NoneType. '%Y-%M-%DT%h:%m:%s' is expected.
Behavior activation configurations. Cannot be specified together with syndicationBehavior.
Deprecated. Old parameter for setting schedule type. See/Use RepeatUnit instead.
- https://api-cdp.treasuredata.comhttps://api-cdp.treasuredata.com/audiences/{audienceId}/segments/{segmentId}/syndications/{syndicationId}
- https://api-cdp.treasuredata.co.jphttps://api-cdp.treasuredata.co.jp/audiences/{audienceId}/segments/{segmentId}/syndications/{syndicationId}
- https://api-cdp.eu01.treasuredata.comhttps://api-cdp.eu01.treasuredata.com/audiences/{audienceId}/segments/{segmentId}/syndications/{syndicationId}
- https://api-cdp.ap02.treasuredata.comhttps://api-cdp.ap02.treasuredata.com/audiences/{audienceId}/segments/{segmentId}/syndications/{syndicationId}
- https://api-cdp.ap03.treasuredata.comhttps://api-cdp.ap03.treasuredata.com/audiences/{audienceId}/segments/{segmentId}/syndications/{syndicationId}
curl -i -X PUT \
'https://api-cdp.treasuredata.com/audiences/{audienceId}/segments/{segmentId}/syndications/{syndicationId}' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"description": "string",
"allColumns": true,
"columns": [
{
"column": "alias_name",
"source": {
"column": "real_column_name"
}
}
],
"scheduleType": "daily",
"scheduleOption": "string",
"repeatUnit": "none",
"repeatFrequency": 1,
"repeatSubFrequency": [
1,
5,
6
],
"startAt": "string",
"runAt": "string",
"cron": "string",
"timezone": "string",
"connectionId": 0,
"connectorConfig": {},
"notifyOn": [
"onSuccess"
],
"emailRecipients": [
0
],
"nestedWorkflowProjectName": "string",
"nestedWorkflowName": "string",
"lockEnabled": true,
"activationTemplateId": "string",
"syndicationBehavior": {
"columns": [
{
"column": "alias_name",
"source": {
"column": "real_column_name"
}
}
],
"behaviorTableName": "purchase_history",
"joinRow": 3,
"joinStrategy": "Last",
"formatting": "rows",
"orderBy": [
{
"key": "purchased_at",
"order": "descending"
},
{
"key": "price",
"order": "ascending"
}
]
},
"syndicationBehaviors": [
{
"columns": [
{
"column": "alias_name",
"source": {
"column": "real_column_name"
}
}
],
"behaviorTableName": "purchase_history",
"joinRow": 3,
"joinStrategy": "Last",
"formatting": "rows",
"orderBy": [
{
"key": "purchased_at",
"order": "descending"
},
{
"key": "price",
"order": "ascending"
}
]
}
]
}'successful operation
Syndication column detail. Basic syntax is {"column": "alias_name", "source": {...}}. source accepts various definitions. See ColumnExpression/StringExpression for details. example value is using ColumnExpression without function property.
cdp-api will fill some value for old syndications with ScheduleType is not NoneType. '%Y-%M-%DT%h:%m:%s' is expected.
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
[ 1, 5, 6 ]
{ "id": "string", "audienceId": "string", "segmentId": "string", "name": "string", "description": "string", "allColumns": true, "columns": [ { … } ], "scheduleType": "daily", "scheduleOption": "string", "startAt": "string", "endOn": "2019-08-24", "repeatUnit": "string", "repeatFrequency": 0, "repeatSubFrequency": [ 1, 5, 6 ], "timezone": "string", "connectionId": "string", "connectorConfig": {}, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "createdBy": { "id": "string", "td_user_id": "string", "name": "string" }, "updatedBy": { "id": "string", "td_user_id": "string", "name": "string" }, "valid": true, "executions": [ { … } ], "notifyOn": [ "onSuccess" ], "emailRecipients": [ 0 ], "activationTemplateId": "string" }