AJO Consent dataset- How to ingest data to AJO consent dataset using API ? | Community
Skip to main content
Sneha-Parmar
New Participant
April 29, 2025
Solved

AJO Consent dataset- How to ingest data to AJO consent dataset using API ?

  • April 29, 2025
  • 2 replies
  • 575 views

Hi All,

Is it possible to ingest subscription and consent data to AJO default system generated schema dataset 'AJO Consent Service Dataset' using API or Web SDK? If yes, please share some details on how to ingest it.

Schema: AJO Consent Service Schema

Dataset: AJO Consent Service Dataset

 

Thanks,

Sneha 

Best answer by _Manoj_Kumar_

Hello @sneha-parmar 

 

You will have to add Consent and Preferences field group to the Profile Schema and then you can use HTTP API update the field group values against a profile.

 

This is a simple payload you can use for HTTP API

var json= { "optInOut":{ "_channels":{ "sms": localStorage.getItem('optin_sms'), "email": localStorage.getItem('optin_email'), "phone": localStorage.getItem('optin_phone'), "directMail": localStorage.getItem('optin_dm') } }, "SANDBOX_IDNETIFIER":{ "identity":{ "ecid": _satellite.getVar('ECID'), "email":localStorage.getItem('email') } } };

 

Same payload can be used to append the subscriptions object mentioned in this document.

https://experienceleague.adobe.com/en/docs/experience-platform/xdm/data-types/marketing-field-subscriptions#subscriptions

2 replies

_Manoj_Kumar_
_Manoj_Kumar_Accepted solution
New Participant
May 1, 2025

Hello @sneha-parmar 

 

You will have to add Consent and Preferences field group to the Profile Schema and then you can use HTTP API update the field group values against a profile.

 

This is a simple payload you can use for HTTP API

var json= { "optInOut":{ "_channels":{ "sms": localStorage.getItem('optin_sms'), "email": localStorage.getItem('optin_email'), "phone": localStorage.getItem('optin_phone'), "directMail": localStorage.getItem('optin_dm') } }, "SANDBOX_IDNETIFIER":{ "identity":{ "ecid": _satellite.getVar('ECID'), "email":localStorage.getItem('email') } } };

 

Same payload can be used to append the subscriptions object mentioned in this document.

https://experienceleague.adobe.com/en/docs/experience-platform/xdm/data-types/marketing-field-subscriptions#subscriptions

     Manoj     Find me on LinkedIn
Mohan_Dugganab
Employee
April 29, 2025

Kindly take a look at the following documentation https://experienceleague.adobe.com/en/docs/experience-platform/landing/governance-privacy-security/consent/sdk

 

Consent dataset is a system dataset used by the AJO consent service, and it's not advisable to modify it. 

Instead,

  • Create a custom dataset based on the Consent Service Schema 
  • Set up an HTTP API Dataflow to ingest data into the custom dataset and use the ingestion API of this Dataflow to input consent values into the respective profiles

Additional reference 

https://experienceleague.adobe.com/en/docs/experience-platform/xdm/data-types/marketing-field-subscriptions#subscriptions