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


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