Moonborn — API · config
Compute the diff between two snapshots
GET/v1/config/snapshots/diffscope · Bearer (API key or session JWT)
Query parameters
| Field | Type | Description |
|---|---|---|
| fromreq | string | |
| toreq | string |
Responses
200Snapshot diff
Body
| Field | Type | Description |
|---|---|---|
| fromreq | string | |
| toreq | string | |
| changesreq | object[] |
401Unauthenticated
Body
| Field | Type | Description |
|---|---|---|
| typereq | string | |
| titlereq | string | |
| statusreq | number | |
| detail | string | |
| code | string |
404Snapshot not found
Body
| Field | Type | Description |
|---|---|---|
| typereq | string | |
| titlereq | string | |
| statusreq | number | |
| detail | string | |
| code | string |
Examples
cURL
curl -X GET https://api.moonborn.co/v1/config/snapshots/diff \ -H "Authorization: Bearer $MOONBORN_API_KEY"
TypeScript
import Moonborn from '@moonborn/sdk';
const client = new Moonborn({ apiKey: process.env.MOONBORN_API_KEY });
const result = await client.config.diffConfigSnapshots();Python
import os from moonborn import Moonborn client = Moonborn(api_key=os.environ["MOONBORN_API_KEY"]) result = client.config.diff_config_snapshots()