For a data policy segment, you can view all active data policies associated with the data policy segment and view customer consent for each data policy. You must provide the name of data policy segments in the X-Ep-Data-Policy-Segments header. You can specify more than one data policy segments separated by a comma.
- To view all data policies associated with the data policy segments, run a GET request in the GET /datapolicies/{scope} format.
The scope parameter specifies the store that the data policy segments are associated with.
- To view details of a data policy, run GET /datapolicies/{scope}/{policyId} request .
The
policyId parameter specifies the
guid of the data policy. For more information, see
Data policies.
The data policy details, such as data-policy-consent, policy-name, policy-reference-key, appear. The data-policy-consent value is set to true if the customer gives consent for the data policy, and to false if customer revokes the consent or provides no consent at all.