Save (upsert) a draft for an agreement type.
Admin — requires first-party Bearer + `settings.manage` (realm pinned by the session token). A repeat save overwrites the prior draft. Does NOT publish — the agreement stays unchanged for end users until POST `/publish`.
Admin — requires first-party Bearer + settings.manage (realm pinned by the session token).
A repeat save overwrites the prior draft. Does NOT publish — the agreement
stays unchanged for end users until POST /publish.
agreementType*stringAgreement type: terms_of_service | privacy_policy
application/json- body
PUT draft request body. content is a locale → body map and must contain at
least one entry (validated by the service layer, same rule as publish).
content*unknownexternal_url?string|nullmode?null|version_label?string|nullSaved draft
application/json- response
GET/PUT draft response: the staged draft's stable fields plus the localized
content body. Mirrors the locale map shape of a published version so the
admin form can render/edit it the same way.
agreement_type*AgreementTypeType of legal agreement. Serialized as snake_case (terms_of_service,
privacy_policy) to align with the DB column values and path params.
"terms_of_service""privacy_policy"content*unknownexternal_url?string|nullmode*AgreementMode"full_text""link"pending_version_no*integerint32updated_at*stringdate-timeversion_label?string|nullcurl -X PUT 'https://example.com/api/legal/admin/agreements/string/draft' \
-H 'Content-Type: application/json' \
-d '{
"content": null
}'{
"agreement_type": "terms_of_service",
"content": null,
"external_url": "string",
"mode": "full_text",
"pending_version_no": 0,
"updated_at": "2019-08-24T14:15:22Z",
"version_label": "string"
}