Herald
OpenapiExt

Create a new realm

Creates a new realm in the system. Only principals with `realm.manage` permission in the admin realm may invoke this endpoint. # Authentication Requires valid API Key via X-API-Key header # Authorization The caller must have `realm.manage` permission in the `admin` realm.

POST
/api/ext/realms

Creates a new realm in the system. Only principals with realm.manage permission in the admin realm may invoke this endpoint.

Authentication

Requires valid API Key via X-API-Key header

Authorization

The caller must have realm.manage permission in the admin realm.

Authorization

api_key
headerX-API-Key<token>

Client-app API key (third-party external API).

Request Body

application/json
  1. body

Request body for creating a realm via the ext API

adminUser*

Admin user credentials for realm creation

description?string|null
name*string
Length3 <= length <= 50

Response Body

Realm created successfully

application/json
  1. response

Realm detail response for create/get endpoints

adminUser?null|
createdAt*string
description?string|null
id*string
name*string
updatedAt*string
Example Request
curl -X POST 'https://example.com/api/ext/realms' \
  -H 'Content-Type: application/json' \
  -d '{
  "adminUser": {
    "email": "string",
    "password": "stringst"
  },
  "name": "string"
}'
Example Response
{
  "adminUser": null,
  "createdAt": "string",
  "description": "string",
  "id": "string",
  "name": "string",
  "updatedAt": "string"
}