---
type: api
title: Update package settings
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/kibana/v8/operation/operation-update-package
resource: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/kibana/v8/operation/operation-update-package
products:
  - Kibana
---

# Update package settings

Authentication: required

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

## Paths

- `PUT` `/api/fleet/epm/packages/{pkgName}/{pkgVersion}`
- `PUT` `/s/{space_id}/api/fleet/epm/packages/{pkgName}/{pkgVersion}`

#### 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.
- `pkgName` (string) — required
- `pkgVersion` (string) — required

## Query string parameters

- `ignoreUnverified` (boolean) — optional
  Ignore if the package is fails signature verification
- `full` (boolean) — optional
  Return all fields from the package manifest, not just those supported by the Elastic Package Registry
- `prerelease` (boolean · default: false) — optional
  Whether to return prerelease versions of packages (e.g. beta, rc, preview)

## Request body

`application/json`

- `keepPoliciesUpToDate` (boolean) — optional

## Responses

#### `200`

OK

`application/json`

- `items` (object[])
  - `id` (string)
  - `type` (union enum)
    Values: `dashboard`, `visualization`, `search`, `index-pattern`, `map`, `lens`, `ml-module`, `security-rule`, `csp_rule_template`, `component_template`, `ingest_pipeline`, `index_template`, `ilm_policy`, `transform`, `data_stream_ilm_policy`
#### `400`

Generic Error

`application/json`

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

#### Console

```console
PUT kbn:/api/fleet/epm/packages/PKG_NAME/PKG_VERSION
{}
```

#### curl

```curl
curl -X PUT "${KIBANA_URL}/api/fleet/epm/packages/${PKG_NAME}/${PKG_VERSION}" \
  -H "Authorization: ApiKey ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
```

## 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": [
    {
      "id": "string",
      "type": "dashboard"
    }
  ]
}
```

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

