// docs/update.asciidoc:84

[source, php]
----
$params = [
    'index' => 'test',
    'id' => '1',
    'body' => [
        'counter' => 1,
        'tags' => [
            'red',
        ],
    ],
];
$response = $client->index($params);
----
