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

# Bulk install packages

Authentication: required

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

## Paths

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

#### Path parameters

- `space_id` (string) — optional
  An identifier for the space. If `space_id` is not provided in the URL, the default space is used. Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

## 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"
    ]
  }'
```

## Response examples

#### 200

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "items": [
    {
      "name": "string",
      "version": "string"
    }
  ],
  "response": [
    {
      "name": "string",
      "version": "string"
    }
  ]
}
```

#### 400

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "error": "string",
  "message": "string",
  "statusCode": 0
}
```

