Set snapshot repository

Creates or updates an existing snapshot repository configuration by name.

Request

PUT /api/v1/platform/configuration/snapshots/repositories/{repository_name}

Path parameters

repository_name (required)
(string) The name of the snapshot repository configuration.

Query parameters

version
(integer) Checks for conflicts against the metadata version, then returns the value in the x-cloud-resource-version header.

Request body

(SnapshotRepositoryConfiguration) (required) The Elasticsearch snapshot repository configuration

Responses

200
(RepositoryConfig) New snapshot repository config
449
(BasicFailedReply) elevated permissions are required. (code: '"root.needs_elevated_permissions"')