Create Table
create-tableCreate an empty RawTree table in a database, optionally using a customer-owned S3 bucket for data and backups. Returns the resolved storage destination.
Instructions
Purpose: Create an empty RawTree table in a database, optionally using a customer-owned S3 bucket configured for the cluster.
Returns: The database and table names plus the resolved storage destination. S3 responses include the full bucket, object path, and endpoint.
Behavior: Omit s3Storage to inherit database-level storage when configured, then the cluster's default storage. To use an explicit per-table customer-owned S3 configuration, provide the complete s3Storage object with data and backup buckets, optional paths, roleArn, and externalId. Paths default to the bucket root when omitted.
Credentials: The API does not return S3 credentials in cluster metadata. Confirm the exact buckets, paths, role ARN, and External ID before using an explicit s3Storage override.
Auth: Requires organization admin access. Authorization is enforced by the RawTree API.
Reliability: If the response is ambiguous, call list-tables to reconcile by database and table name before retrying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the table to create. | |
| cluster | No | RawTree cluster to use for this operation. | |
| database | No | Optional RawTree database override. RawTree uses the default database when omitted. | |
| s3Storage | No | Optional per-table S3 override. Omit to inherit the database or cluster's default storage. | |
| organization | No | RawTree organization containing the target cluster. |