# configure datasink

The `configure datasink` command configures a data sink and connects it to a data source. In the notebook, you will be guided through a template form that will prompt you for various inputs, such as the data source name.

## Syntax

```
configure datasink
```

## Parameters

To create a new data sink:

1. Select **New** from the **DataSink** drop-down list.
2. Specify a name for the data sink.
3. Select the type of the data sink.
4. Select the data source.
5. If the selected data source has no columns defined, select the **Define Schema** checkbox to define the columns for the data sink.
6. For an events data sink:
   1. Select the primary key columns.
   2. Select the timestamp column.
   3. Select the desired event data rate.
   4. Specify the maximum aggregation window. This value will be used when creating aggregate features for datasets that use the data sink as input.
   5. Specify the start and end times for backfill data.
   6. Optionally specify constraints or metrics for the data sink.
7. Click the **Save Configuration** button to save the new data sink.

To change an existing data sink:

1. Select the name of the data sink from the drop-down list
2. Change the features of the data sink.
3. Click the **Save Configuration** button to save changes to the data sink.

## Example

<div align="left"><figure><img src="/files/i9yL8EKaddaKGuFe0iJo" alt=""><figcaption></figcaption></figure></div>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://aizen-corp.gitbook.io/docs/model-building-commands/data-sink-commands/configure-datasink.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
