p2-inc / keycloak-orgs

Single realm, multi-tenancy for SaaS apps
Other
367 stars 65 forks source link

Organization Id is not assigning as expected with API #96

Closed syama-aot closed 1 year ago

syama-aot commented 1 year ago

const axios = require("axios"); let data = JSON.stringify({ id: "648aa11a7cee8d3fd5b7b183", name: "Testing", displayName: "Testing", realm: "cosmogence", attributes: {}, })

https://app.phasetwo.io/auth/realms/:realm/orgs API used for creation of new organization . organization id is not same as i passed in args . Its different b23d4b86-40c2-43cf-8bb5-b98ecaea5dd3. How can i get passed id value

xgp commented 1 year ago

id is a generated value. Anything you pass in will be ignored. You can retrieve the generated id value from the Location header in the response.