Edit Application settings via API

Problem statement

We would like to programmatically edit some Application Settings such as callback URLs, Allowed Web Origins, etc.

Is it possible to do this via the Management API or any other API?

Solution

You should be able to update the applications settings via Management API using the below endpoint:
PATCH/api/v2/clients/{id}

Please find below the documentation in relation to this endpoint:

Here is the sample payload:

{
  "name": "test-app-6",
  "callbacks": [
    "https://jwt.io"
  ],
    "web_origins": [
     "https://google.com"
  ],
  "allowed_origins": [
    "https://yahoo.com"
  ],
  
  "allowed_logout_urls": [
    "https://jwt.io"
  ] 
}