{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"テーブルの作成または追加","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":"テーブルの作成または追加","__idx":0},"children":["テーブルの作成または追加"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["#POST /reporting/datamodels/{datamodel_id}/datasets/{dataset_id}/tables を呼び出します。"]},{"$$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://${TD_API_ENDPOINT}/reporting/datamodels/xxxxxx/datasets/yyyyyy/tables \\\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\": \"pageviews\",\n      \"definition\": {\n        \"columns\": {\n          \"td_url\": {\n            \"type\": \"text\"\n          },\n          \"time\": {\n            \"type\": \"int\"\n          }\n        }\n      }\n    }'\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この例に関する詳細情報は次のとおりです:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["name"]},"。取り込むテーブル名。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["definition"]},"。取り込みたいすべての列をリストします。各列には、その_type_を識別する必要があります。"]}]}]},{"$$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":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Treasure Data用語"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["分析プラットフォーム用語"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["text"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["int"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["int/bigint"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["long"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["bigint"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["float"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["float"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["double"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["float"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["array type*"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["text"]}]}]}]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure コンソールで、JSONデータ(配列またはオブジェクトタイプ)を操作する場合、データを転送する前にデータタイプを「string」として設定することが不可欠です。これにより、分析プラットフォームがデータを正確に処理できるようになります。分析プラットフォームはJSON配列タイプのデータを直接サポートせず、代わりにテキストデータとして転送することに注意してください。したがって、タイプを「string」として定義することは、適切なデータ処理を確保するために必要なステップです。"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["indexed"]},"。これはオプションです。IndexedはBoolean属性です。デフォルト値はfalseです。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["timestamp"]},"。分析プラットフォームは_unixtimestamp_をサポートしていません。ウィジェットで_datetime_を使用する場合は、Insightsモデルを作成する前に_unixtimestamp_をタイムスタンプ形式のテキストに変換し、列を_timestamp_のタイプとして定義してください。"]}]}]},"headings":[{"value":"テーブルの作成または追加","id":"テーブルの作成または追加","depth":1}],"frontmatter":{"seo":{"title":"テーブルの作成または追加"}},"lastModified":"2026-06-01T09:34:27.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/products/customer-data-platform/treasure-insights/create-or-add-a-table","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}