consentId
, or both target
and scope
. If all three fields are included, they are required to refer to the same consent.curl --location --request POST 'https://api.mediaconnect.no/capi/v1/client/customer/privacy/consentEvent' \
--header 'Content-Type: application/json' \
--data-raw '{
"consentId": 1,
"consentTarget": "editoral",
"consentScope": "telephone",
"subject": "563457",
"subjectType": "CONNECT",
"source": "Selfservice",
"action": true,
"eventTime": 1560277312000,
"data": "dHJ1ZQ=="
}'
{
"consentId": 1,
"subject": "563457",
"subjectType": "CONNECT",
"consentEventId": 1,
"created": 1560963388000,
"source": "Selfservice",
"action": true,
"childEvents": {
"consentEventId": 1,
"consentId": 1,
"created": 1560363712000,
"action": true
}
}