[Yandex Cloud documentation](../../../../index.md) > [Yandex Managed Service for YDB](../../../index.md) > Amazon DynamoDB-compatible Document API > Tools > [Working with the AWS CLI](index.md) > Adding data to a table

# Adding data to a table

To add two records to the `series` table:

{% list tabs group=instructions %}

* AWS CLI {#cli}

    Run these commands, replacing `https://your-database-endpoint` with the [previously prepared Document API endpoint](index.md#before-you-begin) of your database:

    {% note warning %}

    To work with the AWS CLI on Windows, we recommend using the [WSL](https://docs.microsoft.com/en-us/windows/wsl/).

    {% endnote %}

    ```bash
    endpoint="https://your-database-endpoint"
    aws dynamodb put-item \
        --table-name series \
        --item '{"series_id": {"N": "1"}, "title": {"S": "IT Crowd"}, "series_info": {"S": "The IT Crowd is a British sitcom produced by Channel 4, written by Graham Linehan, produced by Ash Atalla and starring Chris ODowd, Richard Ayoade, Katherine Parkinson, and Matt Berry."}, "release_date": {"S": "2006-02-03"}}' \
        --endpoint $endpoint
    ```

    and

    ```bash
    endpoint="https://your-database-endpoint"
    aws dynamodb put-item \
        --table-name series \
        --item '{"series_id": {"N": "2"}, "title": {"S": "Silicon Valley"}, "series_info": {"S": "Silicon Valley is an American comedy television series created by Mike Judge, John Altschuler and Dave Krinsky."}, "release_date": {"S": "2014-04-06"}}' \
        --endpoint $endpoint
    ```

{% endlist %}