---
type: api
title: Start snapshot lifecycle management
description: Snapshot lifecycle management (SLM) starts automatically when a cluster is formed.
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch/operation/operation-slm-start
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch/operation/operation-slm-start
products:
  - Elasticsearch
---

# Start snapshot lifecycle management

Availability: 7.6+

## Paths

- `POST` `/_slm/start`

- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/authentication#apikeyauth)
- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/authentication#basicauth)
- [Bearer auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/authentication#bearerauth)

## Description

Snapshot lifecycle management (SLM) starts automatically when a cluster is formed.
Manually starting SLM is necessary only if it has been stopped using the stop SLM API.

## Required authorization

* Cluster privileges: `manage_slm`

## Query String Parameters

- `master_timeout` (string Duration · default: 30s)
  The period to wait for a connection to the master node.
If no response is received before the timeout expires, the request fails and returns an error.
To indicate that the request should never timeout, set it to `-1`.
- `timeout` (string Duration · default: 30s)
  The period to wait for a response.
If no response is received before the timeout expires, the request fails and returns an error.
To indicate that the request should never timeout, set it to `-1`.

## Response

`application/json`

- `acknowledged` (boolean)
  For a successful response, this value is always true. On failure, an exception is returned instead.
## Code Examples

#### Console

```console
POST _slm/start
```

#### JavaScript

```javascript
const response = await client.slm.start();
```

#### Python

```python
resp = client.slm.start()
```

#### curl

```curl
curl -X POST "$ELASTICSEARCH_URL/_slm/start" \
  -H "Authorization: ApiKey $ELASTIC_API_KEY"
```

#### Java

```java
client.slm().start(s -> s);
```

#### C#

```c#
var response = await client.SnapshotLifecycleManagement.StartAsync();
```

#### PHP

```php
$resp = $client->slm()->start();
```

#### Ruby

```ruby
response = client.slm.start
```

## Response Examples

#### Start snapshot lifecycle management response example1

A successful response from `POST _slm/start`.

```json
{
  "acknowledged": true
}
```

