Api clients / JavaScript / V3 / Methods

Copy Rules | JavaScript API Client V3 (Deprecated)

Deprecated content
This documentation is for a deprecated version of JavaScript API client. Some features and settings may be missing or their usage may have changed. Refer to the documentation for the latest version of JavaScript API client for up-to-date information.
Required API Key: any key with the rules ACL
Method signature
Not implemented yet.

About this method

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

Note that this removes all Query Rules currently present in the destination index, and replaces them with the Query Rules from the source.

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?