API Reference / API Methods / Settings / Copy settings
Feb. 26, 2019

Copy settings

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

About this method

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.

Examples

Copy settings

1
$client->copySettings('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?