Check schema
Dry-runs a schema/mapping over sample payloads — no writes.
POST
api:org-config
Pass subtype (optionally with version) to check a stored or still-pending spec, or pass schema/mapping inline to check a candidate before registering it at all. Runs the same org gate, pure mapping engine, and platform-catalog gate the live ingest route uses, so a green check genuinely predicts what logging would accept.
Parameters
Sample payloads to run through.
Load the active (or pinned version) schema/mapping for this subtype as the baseline.
Pin a specific version instead of the active one.
Inline schema, overriding or replacing the stored one.
Inline mapping, overriding or replacing the stored one.
Returns
SchemaCheckResult
True only if every example passed.
Per-example outcome.
The example payload.
Whether this example passed.
Produced platform events (subtype + payload), if mapping succeeded.
Schema/mapping/platform-catalog errors, if any.
Raises
| Exception | When |
|---|---|
AuthError | HTTP 401 or 403 — invalid API key or insufficient OAuth scope for this endpoint. |
ValidationError | HTTP 400, 404, or 422 — malformed JSON, unknown patient, or validation failure (message includes response excerpt). |
ServerError | HTTP 409 (e.g. conflicting external identifier) or repeated 5xx after retries; includes status_code when applicable. |
RateLimitError | HTTP 429 — rate limited; check retry_after (seconds). |
NetworkError | Connection timeout, DNS failure, or read error after retries. |

