[Документация Yandex Cloud](../../../../index.md) > [Yandex Managed Service for YDB](../../../index.md) > Document API, совместимый с Amazon DynamoDB > Инструменты > [Работа с AWS CLI](index.md) > Обновление данных

# Обновление данных

Чтобы обновить данные в таблице `series`:

{% list tabs group=instructions %}

- AWS CLI {#cli}

    Выполните команду, заменив `https://your-database-endpoint` [подготовленным ранее Document API эндпоинтом](index.md#before-you-begin) вашей БД:

    {% note warning %}

    Для работы с AWS CLI из Windows рекомендуется использовать [WSL](https://docs.microsoft.com/ru-ru/windows/wsl/).

    {% endnote %}

    ```bash
    endpoint="https://your-database-endpoint"
    aws dynamodb update-item \
        --table-name series \
        --key '{"series_id": {"N": "2"}, "title": {"S": "Silicon Valley"}}' \
        --update-expression "SET series_info = :newval" \
        --expression-attribute-values '{":newval":{"S":"Silicon Valley is an American comedy television series created by Mike Judge, John Altschuler and Dave Krinsky. The series focuses on five young men who founded a startup company in Silicon Valley."}}' \
        --return-values ALL_NEW \
        --endpoint $endpoint
    ```

    Результат:

    ```text
    {
        "Attributes": {
            "series_id": {
                "N": ".2e1"
            },
            "title": {
                "S": "Silicon Valley"
            },
            "release_date": {
                "S": "2014-04-06"
            },
            "series_info": {
                "S": "Silicon Valley is an American comedy television series created by Mike Judge, John Altschuler and Dave Krinsky. The series focuses on five young men who founded a startup company in Silicon Valley."
            }
        }
    }
    ```

{% endlist %}