﻿---
title: stack kb fleet-managed-integrations put-fleet-managed-integrations-policyid cli command
description: Update a managed integration Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://docs-v3-preview.elastic.dev/elastic/cli/tree/main/cli/stack/kb/fleet-managed-integrations/put-fleet-managed-integrations-policyid
---

# stack kb fleet-managed-integrations put-fleet-managed-integrations-policyid cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb fleet-managed-integrations put-fleet-managed-integrations-policyid \
  --policy-id <policy-id> \
  --name <name> \
  --package <package> \
  [options]
```

Update a managed integration
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--policy-id string required">
    The ID of the managed integration to update.
  </definition>
  <definition term="--name string required">
    Unique name for the policy.
  </definition>
  <definition term="--package string required">
  </definition>
  <definition term="--additional-datastreams-permissions string[]">
    Additional data stream permissions that will be added to the agent policy.
    **Repeatable:** pass `--additional-datastreams-permissions` multiple times to supply more than one value
  </definition>
  <definition term="--cloud-connector string">
  </definition>
  <definition term="--create-dataset-templates">
    When true, install dedicated index templates for streams with a custom data_stream.dataset. Defaults to true for input packages, false for integration packages.
  </definition>
  <definition term="--description string">
    Policy description.
  </definition>
  <definition term="--force">
    Force package policy creation even if the package is not verified, or if the agent policy is managed.
  </definition>
  <definition term="--global-data-tags string[]">
    **Repeatable:** pass `--global-data-tags` multiple times to supply more than one value
  </definition>
  <definition term="--id string">
    Policy unique identifier.
  </definition>
  <definition term="--inputs string">
    Package policy inputs. Refer to the integration documentation to know which inputs are available.
  </definition>
  <definition term="--namespace string">
    Policy namespace. When not specified, it inherits the agent policy namespace.
  </definition>
  <definition term="--policy-template string">
    The policy template to use for the managed integration. If not provided, the default policy template is used.
  </definition>
  <definition term="--var-group-selections string">
    Variable group selections. Maps var_group name to the selected option name within that group.
  </definition>
  <definition term="--vars string">
    Input/stream level variable. Refer to the integration documentation for more information.
  </definition>
  <definition term="--input-file string">
    path to a JSON file to use as command input
  </definition>
  <definition term="--dry-run">
    validate all inputs and exit without performing any action (preview changes without applying them)
  </definition>
</definitions>


## Global Options

<definitions>
  <definition term="--json">
    output as JSON
  </definition>
</definitions>