Upsert legal content for a type
Creates or replaces the legal document for the given type and
the caller’s organization. Content is uploaded as an HTML file
via the workspace’s /files API using the deterministic id
legal-{orgSlug}-{type}.
Requires the announcements:write permission (note: this
endpoint reuses the announcements auth resource - the field is
not specific to legal). Rate-limited to 50 calls per minute.
Authorizations
User-bound credential carrying an identity: either a session JWT
or a user access token (at:*) generated from the user settings UI.
Send as Authorization: Bearer <token>.
Org API keys (iak_*) are not accepted here - they carry
no user identity. Use the x-prismeai-api-key header instead
(see OrgApiKeyAuth).
Path Parameters
Legal document type slug (e.g. cgu, privacy-policy,
secure-chat).
64^[a-z0-9-]+$Body
Raw HTML content of the legal document.
500000