Moonborn — API · config
Set multiple config items in a single scoped write
POST/v1/config/bulkscope · Bearer (API key or session JWT)
Request body
| Field | Type | Description |
|---|---|---|
| scopereq | object | |
| scope.levelreq | string · "system" | "env" | "plan" | "org" | "workspace" | "user" | "api_key" | "request" | |
| scope.id | string | default: "" |
| itemsreq | object[] | |
| reason | string |
Responses
200Bulk applied
Body
| Field | Type | Description |
|---|---|---|
| appliedreq | number | |
| eventsreq | object[] |
401Unauthenticated
Body
| Field | Type | Description |
|---|---|---|
| typereq | string | |
| titlereq | string | |
| statusreq | number | |
| detail | string | |
| code | string |
403Forbidden (scope lock or tier)
Body
| Field | Type | Description |
|---|---|---|
| typereq | string | |
| titlereq | string | |
| statusreq | number | |
| detail | string | |
| code | string |
422Validation failure
Body
| Field | Type | Description |
|---|---|---|
| typereq | string | |
| titlereq | string | |
| statusreq | number | |
| detail | string | |
| code | string |
Examples
cURL
curl -X POST https://api.moonborn.co/v1/config/bulk \
-H "Authorization: Bearer $MOONBORN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"scope": {
"level": "system"
},
"items": [
{
"key": "<string>",
"value": null
}
]
}'TypeScript
import Moonborn from '@moonborn/sdk';
const client = new Moonborn({ apiKey: process.env.MOONBORN_API_KEY });
const result = await client.config.bulkSetConfig({
scope: {"level":"system"},
items: [{"key":"<string>","value":null}],
});Python
import os
from moonborn import Moonborn
client = Moonborn(api_key=os.environ["MOONBORN_API_KEY"])
result = client.config.bulk_set_config(
scope={"level":"system"},
items=[{"key":"<string>","value":null}],
)