// indices/aliases.asciidoc:222

[source, php]
----
$params = [
    'body' => [
        'actions' => [
            [
                'add' => [
                    'index' => 'test1',
                    'alias' => 'alias1',
                ],
            ],
            [
                'add' => [
                    'index' => 'test2',
                    'alias' => 'alias1',
                ],
            ],
        ],
    ],
];
$response = $client->indices()->updateAliases($params);
----
