Profile updates

Set consent (non-authenticated)

Changed on

Manage explicit consent for marketing activities. All consent preferences previously saved in the user's profile(s) are overwritten through this operation.

post/v1/privacy/set-consent

Request

  • Base URL: https://edge.adobedc.net/ee
  • URL: https://edge.adobedc.net/ee/v1/privacy/set-consent
  • Auth: none declared

Query parameters

configIdstring required

The datastream ID. The v1 APIs use configId instead of datastreamId.

requestIdstring uuid

Provide an external request tracing ID; it can also be supplied in the x-request-id header. The Edge Network always appends a 16-character hex entropy suffix to the provided value (or generates a new UUID if none is provided) to guarantee uniqueness across concurrent requests. The returned identifier uses the format <requestId>-<entropy> (for example, 708e4f90-5bff-41c5-8f4b-6c15bab76b11-f46e48eb52594815). Because the entropy suffix is always added, the value in the response always differs from the value supplied in the request. When correlating requests to responses, match on the prefix of the returned requestId rather than an exact string match.

Headers

x-request-idstring uuid

Alternate way to supply an external request tracing ID (equivalent to the requestId query parameter). The Edge Network always appends a 16-character hex entropy suffix to the provided value (or generates a new UUID if none is provided) to guarantee uniqueness across concurrent requests. The returned identifier uses the format <x-request-id>-<entropy> (for example, 708e4f90-5bff-41c5-8f4b-6c15bab76b11-f46e48eb52594815). Because the entropy suffix is always added, the value in the response always differs from the value supplied in the request. When correlating requests to responses, match on the prefix of the returned requestId rather than an exact string match.

Request body

ConsentReplaceRequest required(unresolved $ref)

Response

Successfully processed. Consent preferences are successfully saved for the supplied profile(s).

requestIdstring required

The entropy-augmented identifier for this request, in the format <requestId>-<entropy> (for example, 708e4f90-5bff-41c5-8f4b-6c15bab76b11-f46e48eb52594815). If a requestId was supplied in the request it is used as the prefix; otherwise a generated UUID is used. This value always differs from any caller-supplied requestId. Match on the prefix when correlating requests to responses.

Example response

{
  "handle": [
    {
      "eventIndex": 0,
      "type": "state:store",
      "payload": [
        {
          "key": "kndctr_53A16ACB5CC1D3760A495C99_AdobeOrg_optout",
          "value": "",
          "maxAge": 7200
        }
      ]
    }
  ]
}

Changes