Herald
OpenapiRealm_config

Batch create or update configs

POST
/api/configs/batch

Request Body

application/json
  1. body

Batch update configuration request

configs*array<>

List of configuration entries to create or update

Each entry in the list follows the UpsertRealmConfigRequest structure

Response Body

Batch configs created or updated

application/json
  1. response
[index: integer]?
Example Request
curl -X POST 'https://example.com/api/configs/batch' \
  -H 'Content-Type: application/json' \
  -d '{
  "configs": [
    {
      "configKey": "string",
      "configType": "totp",
      "configValue": "string"
    }
  ]
}'
Example Response
[
  {
    "configKey": "string",
    "configType": "string",
    "configValue": "string",
    "createdAt": "string",
    "enabled": true,
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "isSecret": true,
    "metadata": null,
    "realmId": "string",
    "updatedAt": "string"
  }
]