Companies
Set the mode
Switch the company live between supervised, tiered and autonomous.
The live switch: supervised asks at every gate, tiered asks by the standard’s tiers, autonomous asks only where a building’s policy says require. Overrides the campus and every building (a building’s documented mode included) and survives every apply; setting the campus’s documented mode clears it, so each building reads its documented mode again. Takes effect on the next tick and is logged as config.changed.
Authorizations
Authorization: Bearer ozk_…. ozk_ platform API key (Authorization: Bearer ozk_…)Path parameters
plunge), never a row idQuery parameters
Available options: json, yaml, markdown, text
Body
application/jsontext/yaml
Available options: supervised, tiered, autonomous
Response
The mode now set Response format negotiates via the format field, an Accept header (application/json, text/yaml, text/markdown, text/plain), or the request Content-Type mirror; default JSON.
application/jsontext/yamltext/markdowntext/plain
Available options: supervised, tiered, autonomous
invalid_json — body is not valid JSON or YAML; invalid_format — format must be one of json, yaml, markdown, text
application/json
unauthorized — missing, invalid or revoked ozk_ key
application/json
company_not_found — no company with that slug for this account (a foreign slug answers the same); not_found — no route for this method on this path: every other method answers it
application/json
invalid_params — a field failed validation; nothing was written
application/json
upstream_error — the company service is unavailable; retry
application/json
not_enabled — the company service is not deployed on this tier
application/json