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

# Create a dataset

> Creates a dataset

## Creates a dataset

The dataset will be created in the organization of the caller.

## Parameters

### Header

<ParamField header="Authorization" type="string" required>
  Baseplate API key. Needs to be in the format "Bearer \&BASEPLATE\_API\_KEY"
</ParamField>

<ParamField header="Content-Type" type="string">
  Use application/json
</ParamField>

### Body

<ParamField body="name" type="string" requipred>
  Name of the dataset
</ParamField>

<ParamField body="description" type="string">
  Description for the dataset
</ParamField>

<ParamField body="columns" type="Array">
  Array of strings for column names. The default text embedding column will be
  added if not provided.
</ParamField>

<ParamField body="metadata_cols" type="Array">
  Array of strings for metadata columns.
</ParamField>

<ParamField body="image_cols" type="Array">
  Array of strings for image columns.
</ParamField>

<ParamField body="hybrid" type="Boolean">
  If true, this will create a hybrid search dataset.
</ParamField>

<Tabs>
  <Tab title="🟢 200: OK">
    ```json theme={null}
    {
      "id": "7a966cc7-62ea-41a7-a3bc-81cba234438f",
      "created_at": "2023-03-07T18:34:51.217059+00:00",
      "name": "Example Name",
      "description": "Example Description",
      "columns": ["col1", "col2", "text"],
      "metadata_cols": ["date", "time"],
      "organization_id": "c86cb775-2d6d-4a77-b119-3bc96e5c7a2e"
    }
    ```
  </Tab>

  <Tab title="🟠 401: Unauthorized">
    Unauthorized for project or invalid API key.

    ```json theme={null}
    {
      // Response
    }
    ```
  </Tab>
</Tabs>
