consent.update
Method to update TrustCommander consent OnSite via JavaScript.
cact('consent.update', consentObject)Examples
Update categories and vendors
cact('consent.update', {
categories: {
'2': { status: 'on' }
},
vendors: {
'1': { status: 'on' }
}
});/* Consent Object Before Update
{
meta: { ... },
consent: {
status: "mixed",
categories: {
"1": { status: "on" },
"2": { status: "off" }
},
vendors: {
"1": { status: "off" },
"2": { status: "on"}
}
}
}
*/
// Update
cact('consent.update', {
categories: {
'2': { status: 'on' }
},
vendors: {
'1': { status: 'on' }
}
});
/* Consent Object After Update
{
meta: { ... }, // automatically updated
consent: {
status: "all-on", // automatically updated
categories: {
"1": { status: "on" },
"2": { status: "on" } // updated
},
vendors: {
"1": { status: "on" }, // updated
"2": { status: "on"}
}
}
}
*/Update IAB TCF/ACM categories and vendors
Accept all categories and vendors
Refuse all categories and vendors
Specify update action
Last updated