terms

Set Active

Flips one document's is_active flag. There is no enforced "one active version per type" invariant — activating a new version leaves any previously-active version of the same type active too, and deactivating a still-accepted mandatory document silently drops the onboarding gate for everyone who was blocked on it. A tenant admin may only toggle documents owned by their own tenant; global (tenant_id null) documents are admin-only, since toggling one changes the gate for every tenant at once.

put/terms/{id}/active

Request

  • Base URL: https://api.instruxi.dev/api/v1/enforcer
  • URL: https://api.instruxi.dev/api/v1/enforcer/terms/{id}/active
  • Auth: one of:
    • API key in header Authorization
    • API key in header X-API-Key

Path parameters

idstring required

id

Request body

activeboolean

Response

OK

successboolean

Example response

{
  "success": true
}

Changes

No recorded changes to this operation across all 1 revision of this API.