A profile’s CCPA opt-out status can be monitored and managed using the ccpaOptOut profile attribute and the “true” or “false” values:
"ccpaOptOut": <value>
Sample requests
Sample GET request to retrieve a profile’s CCPA opt-out status.
-X GET https://mc.adobe.io/<ORGANIZATION>/campaign/profilesAndServices/profile/<PKEY> \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>' \
-H 'Content-Type: application/json;charset=utf-8'
Response to the GET request.
{
"PKey": "<PKEY>",
"ccpaOptOut": false,
"firstName": "John",
"lastName": "Doe",
...
}
Sample POST request to mark a profile for CCPA opt-out.
-X POST https://mc.adobe.io/<ORGANIZATION>/campaign/profilesAndServices/profile/ \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>' \
-H 'Content-Type: application/json;charset=utf-8'
-i
-d {
-d "firstName": "John",
-d "lastName": "Doe",
-d "email": "jdoe@mail.com",
-d "ccpaOptOut": true
-d }'
Response to the GET request.
{
...
"email": "john.doe@mail.com",
"firstName": "John",
"lastName": "Doe",
"ccpaOptOut": true,
...
}
Sample PATCH request to update a profile for CCPA opt-out.
-X PATCH https://mc.adobe.io/<ORGANIZATION>/campaign/profilesAndServices/profile/<PKEY> \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>' \
-H 'Content-Type: application/json;charset=utf-8'
-i
-d {
-d "ccpaOptOut": true
-d }'
Response to the GET request.
{
...
"email": "john.doe@mail.com",
"firstName": "John",
"lastName": "Doe",
"ccpaOptOut": true,
...
}