Activate schema version
Activates an already-materialized version, archiving whichever version was previously active.
POST
api:org-config
Re-runs check against the type definition’s sample_payload first and refuses to activate a version that fails it.
Parameters
Subtype to activate a version for.
Version to activate. Must already be materialized (schema and mapping both authored).
Returns
SchemaActionResult
Affected subtype.
Activated version.
“active”.
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. |

