1// docs/update.asciidoc:218
2
3[source, php]
4----
5$params = [
6    'index' => 'test',
7    'id' => '1',
8    'body' => [
9        'doc' => [
10            'name' => 'new_name',
11        ],
12    ],
13];
14$response = $client->update($params);
15----
16