> ## Documentation Index
> Fetch the complete documentation index at: https://docs-old.tilebox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Datasets.Create

```go theme={"system"}
func (datasetClient) Create(
    ctx context.Context,
    kind datasets.DatasetKind,
    codeName string,
    name string,
    fields []datasets.Field,
    options ...datasets.DatasetOption,
) (*datasets.Dataset, error)
```

Create a dataset with the given code name, display name, schema kind, and custom fields.

Fields created with `field.String`, `field.Bool`, `field.Int32`, `field.Int64`, `field.Uint64`, or `field.Float64` can be
marked queryable. Queryable fields cannot be repeated, and a dataset can contain at most two queryable string fields.

## Parameters

**kind** `datasets.DatasetKind` *required*

The dataset kind.

**codeName** `string` *required*

The stable code identifier for the dataset.

**name** `string` *required*

The display name of the dataset.

**fields** `[]datasets.Field` *required*

The custom fields in the dataset schema.

**options** `[]datasets.DatasetOption`

Options for dataset metadata.

## Options

**datasets.WithSummary(summary string)**

Set a short dataset summary.

**datasets.WithDescription(description string)**

Set the dataset's markdown description.

## Field options

**Queryable()**

Make the field available for server-side custom field filters. Choose queryable fields before ingesting datapoints.

## Dataset kinds

**datasets.KindTemporal** `datasets.DatasetKind`

A dataset that contains timestamp, ID, and ingestion time fields.

**datasets.KindSpatiotemporal** `datasets.DatasetKind`

A dataset that contains timestamp, ID, ingestion time, and geometry fields.

## Returns

The created dataset object.

```go Go theme={"system"}
dataset, err := client.Datasets.Create(ctx,
    datasets.KindSpatiotemporal,
    "my_catalog",
    "My catalog",
    []datasets.Field{
        field.String("source").Description("Source system").Queryable(),
        field.Float64("cloud_cover").Queryable(),
    },
    datasets.WithSummary("Scenes prepared for analysis"),
)
```

See [Queryable fields](https://docs-old.tilebox.com/datasets/concepts/datasets.md#queryable-fields) for schema constraints and
[Filter by custom fields](https://docs-old.tilebox.com/datasets/query/filter-by-fields.md) for query syntax.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.