---
title: "Initialize Universal Profiling setup"
method: POST
path: "/api/profiling/setup/es_resources"
tags: ["Universal Profiling"]
---

# Initialize Universal Profiling setup

`POST /api/profiling/setup/es_resources`

**Spaces method and path for this operation:**

<div><span class="operation-verb post">post</span>&nbsp;<span class="operation-path">/s/{space_id}/api/profiling/setup/es_resources</span></div>

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

Set up Universal Profiling resources and configuration<br/><br/>[Required authorization] Route required privileges: profiling.

## Headers

- `kbn-xsrf` string, required

## Response `202`

Setup was accepted. Enabling resource management in Elasticsearch is asynchronous and may not have completed by the time this response is sent.

## Other responses

- `403` — The user does not have the privileges required to set up Universal Profiling.
- `500` — An unexpected error occurred. Setup failed.

---

[API](https://skmtc.dev/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.dev/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc.dev/elastic/apis/kibana-apis/revisions/a6aad934034f?raw)
