After activation, an API JSON definition can be updated in real time.
-
To update the API JSON file:
-
- Edit the API JSON file located in the /config/api directory and make the desired changes.
- 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 in
ASE Admin APIs to update the JSON.
The following is a sample curl command for it:
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...>>
-