Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Submitted
Categories Atlas
Created by Guest
Created on Apr 25, 2023

Disable duplicate linked Organization names

Currently, one can create multiple linked sub-organizations under a main billing organization, but having the exact same names. The below API command, run repeatedly, will create the same sub-org name with different orgId's. I believe this only serves to confuse administrators and makes management more difficult -- therefore, I'd rather have the API fail with "HTTP 4xx: Another organization already exists with the same name." curl -s -X POST --digest -u "$ATLAS_PUBLIC_KEY:$ATLAS_PRIVATE_KEY" \ --header "Content-Type: application/json" \ --data '{ "name": "MY_ORG", "orgOwnerId": "MY_ORG_OWNER_ID" }' "https://cloud.mongodb.com/api/atlas/v1.0/orgs" \ | jq -r .organization.name
  • Attach files