Api clients
/
Ruby
/
V1
/
Methods
Mar. 31, 2022
Copy Settings | Ruby API Client V1 (Deprecated)
This version of the Ruby API client has been deprecated in favor of the latest version of the Ruby API client.
Required API Key: any key with the
editSettings
ACL
Method signature
client.copy_settings( string indexNameSrc, string indexNameDest )
About this method# A
Copy the settings of an index to another index on the same app.
When creating a new index (for example, a temporary testing index or a new replica), you may need to copy the settings from a source of truth.
Note that this removes all settings currently present in the destination index, and replaces them with the settings from the source.
Examples# A
Copy settings#
Copy
1
$client->copySettings('indexNameSrc', 'indexNameDest');
Parameters# A
Response# A
No response.
Did you find this page helpful?