Create an organization
Creates a Herald organization for an app-side grouping, registering the external id and the owner account. Idempotent: replaying an existing `(clientApp, externalId)` returns the existing organization with `created = false` and does not update it. The first creation for a `(realm, client app)` seeds the three built-in tiers.
Creates a Herald organization for an app-side grouping, registering the
external id and the owner account. Idempotent: replaying an existing
(clientApp, externalId) returns the existing organization with
created = false and does not update it. The first creation for a
(realm, client app) seeds the three built-in tiers.
api_keyX-API-Key<token>Client-app API key (third-party external API).
realmId*stringRealm ID
application/json- body
externalId*stringApp-side identifier (workspace id etc.); unique per Client App,
1-255 chars after trim. Replaying an existing externalId returns the
existing organization with created = false.
name?|Optional display name (<= 255 chars).
ownerId*stringOwner account id; must belong to the same realm.
Idempotent replay returning the existing organization
application/json- response
clientId*stringcreated*booleancreatedAt*stringexternalId*stringid*stringname?string|nullownerId*stringrealmId*stringcurl -X POST 'https://example.com/api/ext/realms/string/orgs' \
-H 'Content-Type: application/json' \
-d '{
"externalId": "string",
"ownerId": "string"
}'{
"clientId": "string",
"created": true,
"createdAt": "string",
"externalId": "string",
"id": "string",
"name": "string",
"ownerId": "string",
"realmId": "string"
}