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

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

  • April 29, 2025
  • 2 replies
  • 583 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

Mohan_Dugganab
Adobe Employee
Adobe 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

Manoj_Kumar
Community Advisor
Manoj_KumarCommunity AdvisorAccepted solution
Community Advisor
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