---
type: api
title: Bulk install packages
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v8/operation/operation-bulk-install-packages
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v8/operation/operation-bulk-install-packages
products:
  - Kibana
---

# Bulk install packages

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

## Paths

- `POST` `/api/fleet/epm/packages/_bulk`
- `POST` `/s/{space_id}/api/fleet/epm/packages/_bulk`

## Description

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

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

## Query string parameters

- `prerelease` (boolean · default: false) — optional
  Whether to return prerelease versions of packages (e.g. beta, rc, preview)

## Request body

`application/json`

- `force` (boolean) — optional
  force install to ignore package verification errors
- `packages` (union oneOf[]) — required
  list of packages to install
  - **string**
    package name
  - **{ name, version }**
    - `name` (string) — optional
      package name
    - `version` (string) — optional
      package version

## Responses

#### `200`

OK

`application/json`

- `items` (object[])
  - `name` (string)
  - `version` (string)
- `response` (object[]) — deprecated
  - `name` (string)
  - `version` (string)
#### `400`

Generic Error

`application/json`

- `error` (string)
- `message` (string)
- `statusCode` (number)
## Code examples

#### Console

```console
POST kbn:/api/fleet/epm/packages/_bulk
{
  "packages": [
    "string"
  ]
}
```

#### curl

```curl
curl -X POST "${KIBANA_URL}/api/fleet/epm/packages/_bulk" \
  -H "Authorization: ApiKey ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "packages": [
      "string"
    ]
  }'
```

