---
title: Updating API JSON files
description: After activation, an API JSON definition can be updated in real time.
component: pingintelligence
version: 5.2
page_id: pingintelligence:pingintelligence_reference_guide:pingintelligence_updating_api_json_files
canonical_url: https://docs.pingidentity.com/pingintelligence/5.2/pingintelligence_reference_guide/pingintelligence_updating_api_json_files.html
revdate: May 6, 2024
section_ids:
  about-this-task: About this task
  steps: Steps
  choose-from: Choose from:
---

# Updating API JSON files

## About this task

After activation, an API JSON definition can be updated in real time.

## Steps

* To update the API JSON file:

  ### Choose from:

\*\*

1. Edit the API JSON file located in the `/config/api` directory and make the desired changes.

2. Save the edited API JSON file and run the following CLI command:

   ```
   /<ASE_Installation path>/pingidentity/ase/bin/cli.sh –u admin -p admin update_api  <api_name>
   ```

   The following is an example:

   ```
   /opt/pingidentity/ase/bin/cli.sh –u admin -p admin update_api shop
   api shop updated successfully
   ```

   * You can also use [Update API](pingintelligence_rest_api_inline_sideband_ase.html) in ASE Admin APIs to update the JSON.

   The following is a sample `curl` command for it:

   \+

   ```shell
   curl --location --request PUT '{{API}}=<API Name>' \
   --header '{{Access_Key_Header}}: {{Access_Key}}' \
   --header '{{Secret_Key_Header}}: {{Secret_key}}' \
   --header 'Content-Type: application/json' \
   --data-raw '{
       "api_metadata": {
           "protocol": "https",
           "url": "/pubatmapp",
           "hostname": "*",
           "oauth2_access_token": false,
           <<Request body continues...>>
   ```
