Create
Creates a NEW terms document version. type must be one of platform, privacy, cookies, aml, custom — anything else is a 400 invalid_terms_type, because a document stored under an unrecognised type is never resolved by any reader (the onboarding gate keys on type, and the public legal route serves only platform/privacy/cookies). This does NOT deactivate or supersede any existing active version of the same type — setTermsActive is a separate, explicit step. Until the old version is turned off, getMyTerms' current-version resolution treats both as active and picks between them (tenant-specific over global, otherwise the newest-effective), so a caller may keep seeing the version they already accepted. content_hash is computed server-side (sha256 of content) and is what an acceptance snapshots, not a client-supplied value. tenant_id is admin-only; a tenant_admin caller is silently pinned to their own tenant regardless of what they pass.
Request
- Base URL: https://api.instruxi.dev/api/v1/enforcer
- URL: https://api.instruxi.dev/api/v1/enforcer/terms
- Auth: one of:
- API key in header Authorization
- API key in header X-API-Key
Request body
Response
Created
Example response
{
"success": true
}Changes
No recorded changes to this operation across all 1 revision of this API.