Refer to Use the Consent API with Data 360 (Formerly Data Cloud) for details on the Consent API REST endpoint and its parameters.
A common error encountered when first using the Consent API with Data 360 is details below.
"INVALID_ID_FIELD: individulaId [ID] not exists"
{
"results": {
"result": "Failure",
"errorCode": "PROBLEM_PROCESSING_REQUEST",
"errorMessage": "Problem processing request: INVALID_ID_FIELD: individualId [Individual ID] not exists."
}
}
There is no default consent data created for the profile when it is first created. Therefore, a GET call will return an INVALID_ID_FIELD exception if a PATCH request has not previously been executed for the Individual ID. Make a PATCH call to set the consent flag for that profile before executing a GET request.
For example, a PATCH call to the endpoint /services/data/v63.0/consent/action/processing?ids=A123&mode=cdp&status=optin will return the following response indicating that the Individual ID A123 is updated with a true value for shouldforget:
{
"cdpResult": {
"A123": {
"result": "Success",
"shouldforget": true
}
}
}
Subsequently, if a GET call is then made for this Individual ID it will also return the currently consent status and no longer return a INVALID_ID_FIELD exception.
000397169

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.