.. _mongocli-ops-manager-featurePolicies-update:

===========================================
mongocli ops-manager featurePolicies update
===========================================

.. default-domain:: mongodb

.. contents:: On this page
   :local:
   :backlinks: none
   :depth: 1
   :class: singlecol

Update feature control policies for your project.

Feature Control Policies allow you to enable or disable certain MongoDB features based on your site-specific needs.

Syntax
------

.. code-block::
   :caption: Command Syntax

   mongocli ops-manager featurePolicies update [options]

.. Code end marker, please don't delete this comment

Options
-------

.. list-table::
   :header-rows: 1
   :widths: 20 10 10 60

   * - Name
     - Type
     - Required
     - Description
   * - -f, --file
     - string
     - false
     - File name that identifies an optional file with a json policy configuration.
   * - -h, --help
     - 
     - false
     - help for update
   * - --name
     - string
     - false
     - Identifying label for the external system that manages this Ops Manager Project.
   * - -o, --output
     - string
     - false
     - Output format. Valid values are json, json-path, go-template, or go-template-file. To see the full output, use the -o json option.
   * - --policy
     - strings
     - false
     - List of policies that the external system applies to this Ops Manager Project. Passing this flag replaces preexisting data.
   * - --projectId
     - string
     - false
     - Hexadecimal string that identifies the project to use. This option overrides the settings in the configuration file or environment variable.
   * - --systemId
     - string
     - false
     - Unique identifier of the external system that manages this Ops Manager Project.

Inherited Options
-----------------

.. list-table::
   :header-rows: 1
   :widths: 20 10 10 60

   * - Name
     - Type
     - Required
     - Description
   * - -P, --profile
     - string
     - false
     - Name of the profile to use from your configuration file. To learn about profiles for MongoCLI, see https://dochub.mongodb.org/core/atlas-cli-configuration-file.

Examples
--------

.. code-block::
   :copyable: false

   # Disable user management for a project:
   mongocli ops-manager featurePolicies update --projectId <projectId> --name Operator --policy DISABLE_USER_MANAGEMENT

   
.. code-block::
   :copyable: false

   # Update policies from a JSON configuration file:
   mongocli atlas featurePolicies update --projectId <projectId> --file <path/to/file.json>

