API Reference / API Methods / Query rules / Copy rules
Feb. 26, 2019

Copy Rules

Required API Key: any key with the rules ACL
Method signature
$client->copyRules(string_ indexNameSrc, string indexNameDest);

About this method

Copy the rules of an index to another index on the same app.

Examples

Copy rules

1
$client->copyRules('indexNameSrc', 'indexNameDest');

Parameters

indexNameSrc
type: string
Required

Name of the source index to copy.

indexNameDest
type: string
Required

Name of the destination index.

Response

No response

Did you find this page helpful?