---
type: api
title: Start rollup jobs
description: If you try to start a job that does not exist, an exception occurs.
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/elasticsearch/v9/operation/operation-rollup-start-job
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/elasticsearch/v9/operation/operation-rollup-start-job
products:
  - Elasticsearch
---

# Start rollup jobs

deprecated

Availability: Experimental since 6.3

## Paths

- `POST` `/_rollup/job/{id}/_start`

#### Path parameters

- `id` (string) — required
  Identifier for the rollup job.

## Description

If you try to start a job that does not exist, an exception occurs.
If you try to start a job that is already started, nothing happens.

## Required authorization

- Cluster privileges: `manage_rollup`

## Authentication

- Api key: `Authorization: <value>`
  Elasticsearch APIs support key-based authentication.
  You must create an API key and use the encoded value in the request header.
  For example:
  
  
  ```
  curl -X GET "${ES_URL}/_cat/indices?v=true" \
    -H "Authorization: ApiKey ${API_KEY}"
  ```
  
  To get API keys, use the `/_security/api_key` APIs.
- Basic: `Authorization: Basic <credentials>`
- Bearer: `Authorization: Bearer <token>`
  Elasticsearch APIs support the use of bearer tokens in the `Authorization` HTTP header to authenticate with the API.
  For examples, refer to [Token-based authentication services](https://www.elastic.co/docs/deploy-manage/users-roles/cluster-or-deployment-auth/token-based-authentication-services)

## Response

`application/json`

- `started` (boolean)
## Code examples

#### Console

```console
POST _rollup/job/sensor/_start
```

#### JavaScript

```javascript
const response = await client.rollup.startJob({
  id: "sensor",
});
```

#### Python

```python
resp = client.rollup.start_job(
    id="sensor",
)
```

#### curl

```curl
curl -X POST "$ELASTICSEARCH_URL/_rollup/job/sensor/_start" \
  -H "Authorization: ApiKey $ELASTIC_API_KEY"
```

#### Java

```java
client.rollup().startJob(s -> s
    .id("sensor")
);
```

#### C#

```c#
var response = await client.Rollup.StartJobAsync(id: "sensor");
```

#### PHP

```php
$resp = $client->rollup()->startJob([
    "id" => "sensor",
]);
```

#### Ruby

```ruby
response = client.perform_request(
  "POST",
  "/_rollup/job/sensor/_start",
  {},
)
```

## Response examples

#### Start rollup job response example1

A successful response from `POST _rollup/job/sensor/_start`.

```json
{
  "started": true
}
```

