GuideLab API

Initialize organization settings defaults

Idempotently applies any unapplied settings-default revision using stable keys. The organization type and revision are read from a locked database row. New organizations run the same initializer during creation; this manager command repairs legacy or partially initialized organizations without recreating defaults intentionally removed after a revision was applied.

POST
/settings-defaults/initialize

Idempotently applies any unapplied settings-default revision using stable keys. The organization type and revision are read from a locked database row. New organizations run the same initializer during creation; this manager command repairs legacy or partially initialized organizations without recreating defaults intentionally removed after a revision was applied.

Authorization

__Secure-guidelab-prod.session_token<token>

Production session cookie set for the guidelab.co domain by Better Auth

In: cookie

Response Body

application/json

curl -X POST "https://example.com/settings-defaults/initialize"
{  "initialized": {    "shadeSystems": 0,    "implantSystems": 0,    "orderFilterPresets": 0,    "reports": 0,    "qcSettings": 0,    "productionSettings": 0,    "receivingCategories": 0,    "receivingSources": 0,    "inventoryCategories": 0,    "inventoryAdjustmentReasons": 0  }}
Empty
Empty
Empty