---
type: api
title: Schedule the Privilege Monitoring Engine
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/operation/operation-schedulemonitoringengine
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/operation/operation-schedulemonitoringengine
products:
  - Kibana
---

# Schedule the Privilege Monitoring Engine

deprecated

- Server: `https://{kibana_url}`

## Paths

- `POST` `/api/entity_analytics/monitoring/engine/schedule_now`
- `POST` `/s/{space_id}/api/entity_analytics/monitoring/engine/schedule_now`

## Description

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

**Deprecated in 9.4.0.** Schedules the Privilege Monitoring Engine to run as soon as possible, triggering an immediate monitoring cycle.

## Authentication

- Api key: `Authorization: <value>`
  These APIs use key-based authentication. You must create an API key and use the encoded value in the request header. For example: `Authorization: ApiKey base64AccessApiKey`
- Basic: `Authorization: Basic <credentials>`

## Responses

#### `200`

Successful response

`application/json`

- `success` (boolean)
  Indicates the scheduling was successful
#### `409`

Conflict - Monitoring engine is already running

`application/json`

- `message` (string)
  Error message indicating the engine is already running
## Code examples

#### Console

```console
POST kbn:/api/entity_analytics/monitoring/engine/schedule_now
```

#### curl

```curl
curl -X POST "${KIBANA_URL}/api/entity_analytics/monitoring/engine/schedule_now" \
  -H "Authorization: ApiKey ${API_KEY}"
```

## Response examples

#### Engine scheduled successfully

```json
{
  "success": true
}
```

#### Engine is already running

```json
{
  "message": "Monitoring engine is already running"
}
```

