Record the user's explicit consent to one or more agreement versions.
Self-service — requires Bearer identity; the realm is the one pinned by the bearer token. Each `version_id` must equal the current effective version for its type (enforced in the service layer, BE-D04); a stale version surfaces as 409 so the client re-reads the effective version. Returns 204 on success. The upsert is idempotent on a repeat of the same version.
Self-service — requires Bearer identity; the realm is the one pinned by
the bearer token. Each version_id must equal the
current effective version for its type (enforced in the service layer,
BE-D04); a stale version surfaces as 409 so the client re-reads the
effective version. Returns 204 on success. The upsert is idempotent on a
repeat of the same version.
application/json- body
POST /consent request body.
agreements*array<>Consent recorded
curl -X POST 'https://example.com/api/user/consent' \
-H 'Content-Type: application/json' \
-d '{
"agreements": [
{
"agreement_type": "string",
"version_id": "9e94c502-ca41-4342-a7f7-af96b444512c"
}
]
}'