---
title: "Bulk install packages"
method: POST
path: "/api/fleet/epm/packages/_bulk"
tags: ["Elastic Package Manager (EPM)"]
---

# Bulk install packages

`POST /api/fleet/epm/packages/_bulk`

**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/_bulk</span></div>

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

Install multiple packages from the Elastic Package Registry in a single request.<br/><br/>[Required authorization] Route required privileges: integrations-all AND fleet-agent-policies-all.

## Query parameters

- `prerelease` boolean

## Headers

- `kbn-xsrf` string, required

## Request body

- KibanaHTTPAPIsBulkInstallPackagesFromRegistryRequest
  - `allow_outdated_version` boolean — When true, allow installing a version older than the latest available. Bypasses only the out-of-date version check.
  - `force` boolean
  - `packages` union[], required
    - union
      - string
      - object
        - `name` string, required
        - `prerelease` boolean
        - `version` string, required

## Response `200`

Successful response

- KibanaHTTPAPIsBulkInstallPackagesFromRegistryResponse
  - `items` union[], required
    - union
      - KibanaHTTPAPIsBulkInstallPackagesResponseItemSuccess
        - `name` string, required
        - `result` object, required
          - `assets` union[]
            - union
              - …
          - `error` unknown, required
          - `installSource` string
          - `installType` string, required
          - `status` 'installed' | 'already_installed'
        - `version` string, required
      - KibanaHTTPAPIsBulkInstallPackagesResponseItemError
        - `error` union
          - string
          - unknown
        - `name` string, required
        - `statusCode` number, required

## 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)
