Use the CAS API to create the Composable Parent Segment from your configuration file.
POST https://api-cas.<region>.treasuredata.com/composable_audiencesRegional endpoints:
| Region | Endpoint |
|---|---|
| US | https://api-cas.treasuredata.com/composable_audiences |
| Tokyo | https://api-cas.treasuredata.co.jp/composable_audiences |
| EU01 | https://api-cas.eu01.treasuredata.com/composable_audiences |
Include a Treasure API key in the Authorization header using the TD1 scheme.
Headers:
Authorization: TD1 <your_api_key>
Content-Type: application/jsonBody: The JSON configuration file created in Step 4.
curl -X POST https://api-cas.treasuredata.com/composable_audiences \
-H "Authorization: TD1 <your_api_key>" \
-H "Content-Type: application/json" \
-d @parent_segment_config.jsonReplace:
<your_api_key>with your Treasure Data Master API keyparent_segment_config.jsonwith the path to your configuration file
On success, the API returns the created Parent Segment with an assigned ID. Save this ID for future reference.