{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Step 5: Upload the Configuration via CAS API","description":"Use the CAS API to upload and create a Composable Parent Segment from your Databricks configuration file.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"step-5-upload-the-configuration-via-cas-api","__idx":0},"children":["Step 5: Upload the Configuration via CAS API"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use the CAS API to create the Composable Parent Segment from your configuration file."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"api-endpoint","__idx":1},"children":["API Endpoint"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"POST https://api-cas.<region>.treasuredata.com/composable_audiences\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Regional endpoints:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Region"},"children":["Region"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Endpoint"},"children":["Endpoint"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["US"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://api-cas.treasuredata.com/composable_audiences"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Tokyo"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://api-cas.treasuredata.co.jp/composable_audiences"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["EU01"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://api-cas.eu01.treasuredata.com/composable_audiences"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"authentication","__idx":2},"children":["Authentication"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Include a Treasure API key in the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Authorization"]}," header using the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TD1"]}," scheme."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"request","__idx":3},"children":["Request"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Headers:"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"Authorization: TD1 <your_api_key>\nContent-Type: application/json\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Body:"]}," The JSON configuration file created in ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/composable-cdp/databricks/create-parent-segment-config"},"children":["Step 4"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"example-upload-using-curl","__idx":4},"children":["Example: Upload Using curl"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"curl -X POST https://api-cas.treasuredata.com/composable_audiences \\\n  -H \"Authorization: TD1 <your_api_key>\" \\\n  -H \"Content-Type: application/json\" \\\n  -d @parent_segment_config.json\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Replace:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["<your_api_key>"]}," with your Treasure Data Master API key"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["parent_segment_config.json"]}," with the path to your configuration file"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"response","__idx":5},"children":["Response"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["On success, the API returns the created Parent Segment with an assigned ID. Save this ID for future reference."]}]},"headings":[{"value":"Step 5: Upload the Configuration via CAS API","id":"step-5-upload-the-configuration-via-cas-api","depth":1},{"value":"API Endpoint","id":"api-endpoint","depth":2},{"value":"Authentication","id":"authentication","depth":2},{"value":"Request","id":"request","depth":2},{"value":"Example: Upload Using curl","id":"example-upload-using-curl","depth":2},{"value":"Response","id":"response","depth":2}],"frontmatter":{"seo":{"title":"Step 5: Upload the Configuration via CAS API","description":"Use the CAS API to upload and create a Composable Parent Segment from your Databricks configuration file."}},"lastModified":"2026-06-01T09:09:59.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/products/customer-data-platform/composable-cdp/databricks/upload-config-api","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}