{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Insightsモデルデータセットの作成","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","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":"insightsモデルデータセットの作成","__idx":0},"children":["Insightsモデルデータセットの作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Insightsモデルにデータセットを作成または追加する際は、次の点を考慮してください:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["定義"]},"。Insightsモデルの作成に使用されたYAMLファイルで定義されたのと同じスキーマを持つように定義を定義します(POST /reporting/datamodels)。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["データベース/テーブル名"]},"。データベースとテーブル名、および列情報(「type(必須、現在は「presto」のみが利用可能)」、indexed(オプション、デフォルト値:false)を含む)を指定します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["データセット名"]},"。データセットに名前を付ける際に制限はありません。Treasure Dataは、データベースと同じ名前を使用することをお勧めします。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["APIエンドポイントについては、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/apis/endpoints/endpoints"},"children":["お使いの地域に適したエンドポイント"]},"を選択してください。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"    curl -X POST https://${api endpoint}/reporting/datamodels/xxxxxx/datasets \\\n    -H 'authorization: TD1 xxxx/xxxxxxxxxxxxxx' \\\n    -H 'cache-control: no-cache' \\\n    -H 'accept: application/json' \\\n    -H 'content-type: application/json' \\\n    -d '{\n      \"name\": \"new_table\",\n      \"definition\": {\n        \"type\": \"presto\",\n        \"database\": \"new_db\",\n        \"tables\": {\n          \"new_table\": {\n            \"columns\": {\n              \"id\": {\n                \"type\": \"text\",\n                \"indexed\": true\n              }\n            }\n          }\n        }\n      }\n    }'\n","lang":"bash"},"children":[]}]},"headings":[{"value":"Insightsモデルデータセットの作成","id":"insightsモデルデータセットの作成","depth":1}],"frontmatter":{"seo":{"title":"Insightsモデルデータセットの作成"}},"lastModified":"2026-03-10T06:52:05.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/products/customer-data-platform/treasure-insights/create-an-insights-model-dataset","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}