---
title: "Install a package by upload"
method: POST
path: "/api/fleet/epm/packages"
tags: ["Elastic Package Manager (EPM)"]
---

# Install a package by upload

`POST /api/fleet/epm/packages`

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

<div><span class="operation-verb post">post</span>&nbsp;<span class="operation-path">/s/{space_id}/api/fleet/epm/packages</span></div>

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

Install a package by uploading a .zip or .tar.gz archive (max 100MB). Only available to superusers.<br/><br/>[Required authorization] Route required privileges: integrations-all AND fleet-agent-policies-all.

## Query parameters

- `ignoreMappingUpdateErrors` boolean
- `skipDataStreamRollover` boolean

## Headers

- `kbn-xsrf` string, required

## Response `200`

Successful response

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.net/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/kibana-apis/versions/531c9e2a7d23/schema)
