---
title: Configuring the flow control CLI for REST API
description: You can use the API Security Enforcer (ASE) command-line interface (CLI) to update flow control parameters.
component: pingintelligence
version: 5.2
page_id: pingintelligence:pingintelligence_reference_guide:pingintelligence_configuring_flow_control_cli_rest_api
canonical_url: https://docs.pingidentity.com/pingintelligence/5.2/pingintelligence_reference_guide/pingintelligence_configuring_flow_control_cli_rest_api.html
revdate: April 3, 2024
section_ids:
  about-this-task: About this task
  steps: Steps
  example: Example:
  example-2: Example:
  example-3: Example:
---

# Configuring the flow control CLI for REST API

You can use the API Security Enforcer (ASE) command-line interface (CLI) to update flow control parameters.

## About this task

|   |                                                                                                                                                                                        |
| - | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|   | API security must be enabled for ASE flow control to work. For more information on enabling API security, see [Enable API security](pingintelligence_activate_api_cybersecurity.html). |

## Steps

* To update the client spike threshold, run the following command:

  ```
  update_client_spike_threshold {api_id} {+ve digit/(second|minute|hour)}
  ```

  ### Example:

  ```
  update_client_spike_threshold shop_api 5000/second
  ```

* To update the server spike threshold, run the following command:

  ```
  update_server_spike_threshold {api_id} {host:port} {+ve digit/(second|minute|hour)}
  ```

  ### Example:

  ```
  update_server_spike_threshold shop_api 5000/second
  ```

* To update the server connection quota, run the following command:

  ```
  update_server_connection_quota {api_id} {host:port}{+ve digit}
  ```

  ### Example:

  ```
  update_server_connection_quota shop_api 5000
  ```
