Administrating Trusted Origins using Java SDK

Is there a way to manage Security -> API -> Trusted Origins -> Add Origin via the Java SDK?
This is needed for automating OKTA configurations. Please advise.

There isn’t a method built into the Java Management SDK to do this, but you can make the call manually to create a Trusted Origin via API

e.g.

curl -X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: SSWS ${api_token}" \
-d '{
  "name": "New Trusted Origin",
  "origin": "http://example.com",
  "scopes": [
    {
      "type": "CORS"
    },
    {
      "type": "REDIRECT"
    }
  ]
}' "https://${yourOktaDomain}/api/v1/trustedOrigins"

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.