// indices/put-mapping.asciidoc:473

[source, php]
----
$params = [
    'body' => [
        'source' => [
            'index' => 'users',
        ],
        'dest' => [
            'index' => 'new_users',
        ],
    ],
];
$response = $client->reindex($params);
----
