OpenapiLegal
Discard the staged draft.
Admin — requires `inject_identity` + `settings.manage` + `has_access_to_realm`. Idempotent: discarding a missing draft returns 204. The published version table is untouched.
Admin — requires inject_identity + settings.manage + has_access_to_realm.
Idempotent: discarding a missing draft returns 204. The published version
table is untouched.
Path Parameters
realmId*string
Realm ID
agreementType*string
Agreement type: terms_of_service | privacy_policy
Response Body
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/api/legal/admin/string/agreements/string/draft"Empty
{ "code": "string", "details": null, "message": "string", "requestId": "string", "status": 0}{ "code": "string", "details": null, "message": "string", "requestId": "string", "status": 0}{ "code": "string", "details": null, "message": "string", "requestId": "string", "status": 0}{ "code": "string", "details": null, "message": "string", "requestId": "string", "status": 0}