- Update parent segment configuration
Update the specified parent segment configuration by its identifier.
Important: Update Behavior and the master Field
This endpoint supports two different update modes depending on whether the master field is included in the request body:
Partial Update (without
masterfield): When themasterfield is omitted, only the scalar fields (e.g.,name,description,scheduleType) in the request body are updated. Theattributes,behaviors, andaudienceFilterscollections are left untouched, even if they are omitted or set tonullor[]in the request.Full Replacement (with
masterfield): When themasterfield is included in the request body, the endpoint performs a full replacement ofattributes,behaviors, andaudienceFilters. All existing entries in these collections are deleted and replaced with exactly what is provided in the request:- If
attributes,behaviors, oraudienceFiltersare omitted, set tonull, or set to[], those collections will be cleared (all existing entries deleted). - Only the items explicitly included in the request body will exist after the update.
- This is a destructive operation that cannot be undone.
- If
Recommendations:
- For partial updates of scalar fields only: omit the
masterfield from the request body. - For full replacement: include the
masterfield and provide complete definitions forattributes,behaviors, andaudienceFiltersto avoid unintended data loss.
Only null is acceptable when allowActivationBehavior is false.
llmState indicates more detailed state including updating.
- https://api-cdp.treasuredata.comhttps://api-cdp.treasuredata.com/audiences/{audienceId}
- https://api-cdp.treasuredata.co.jphttps://api-cdp.treasuredata.co.jp/audiences/{audienceId}
- https://api-cdp.eu01.treasuredata.comhttps://api-cdp.eu01.treasuredata.com/audiences/{audienceId}
- https://api-cdp.ap02.treasuredata.comhttps://api-cdp.ap02.treasuredata.com/audiences/{audienceId}
- https://api-cdp.ap03.treasuredata.comhttps://api-cdp.ap03.treasuredata.com/audiences/{audienceId}
curl -i -X PUT \
'https://api-cdp.treasuredata.com/audiences/{audienceId}' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"id": "string",
"name": "string",
"description": "string",
"scheduleType": "daily",
"scheduleOption": "00:00",
"timezone": "UTC",
"matrixUpdatedAt": "string",
"workflowHiveOnly": true,
"hiveEngineVersion": "0.13",
"hivePoolName": "string",
"prestoPoolName": "string",
"allowActivationBehavior": true,
"maxActivationBehaviorRow": 0,
"llmEnabled": true,
"llmState": "enabling",
"population": 0,
"enrichmentWordTaggingEnabled": true,
"enrichmentIpEnabled": true,
"enrichmentTdJsSdkEnabled": true,
"master": {
"parentDatabaseName": "string",
"parentTableName": "string"
},
"attributes": [
{
"audienceId": "string",
"name": "string",
"type": "string",
"parentDatabaseName": "string",
"parentTableName": "string",
"parentColumn": "string",
"parentKey": "string",
"foreignKey": "string",
"groupingName": "string"
}
],
"behaviors": [
{
"id": "string",
"name": "string",
"parentDatabaseName": "string",
"parentTableName": "string",
"parentKey": "string",
"foreignKey": "string",
"schema": [
{
"name": "string",
"type": "string",
"parentColumn": "string"
}
],
"scheduleType": "daily",
"scheduleOption": "string",
"defaultTimeFilterEnabled": true,
"isRealtime": true
}
],
"customerGroup": {
"id": "string",
"audienceId": 0,
"name": "string",
"parentDatabaseName": "string",
"parentTableName": "string",
"parentKey": "string",
"foreignKey": "string",
"customerGroupAttributes": [
{
"name": "string",
"type": "string",
"parentDatabaseName": "string",
"parentTableName": "string",
"parentColumn": "string",
"parentKey": "string",
"foreignKey": "string"
}
],
"customerGroupBehaviors": [
{
"name": "string",
"parentDatabaseName": "string",
"parentTableName": "string",
"parentKey": "string",
"foreignKey": "string",
"schema": [
{
"name": "string",
"type": "string",
"parentColumn": "string"
}
]
}
]
},
"audienceFilters": [
{
"columnName": "Country",
"rightValues": [
"Japan"
]
}
],
"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"
}
}'{ "code": "string", "message": "string" }