Skip to main content

consent_decisions

Creates, updates, deletes, gets or lists a consent_decisions resource.

Overview​

Nameconsent_decisions
TypeResource
Idovh.me.consent_decisions

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
campaignstringCampaign name
historyarrayConsent decisions history for this campaign
pixelobjectOptional pixel tracking consent
typestringCampaign type (OPTIN, OPTOUT)
valuebooleanCurrent email consent value

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectcampaign_nameGet decision value for a consent campaign
updateupdatecampaign_nameUpdate decision of a consent campaign

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
campaign_namestringCampaign name (wire: campaignName)

SELECT examples​

Get decision value for a consent campaign

SELECT
campaign,
history,
pixel,
type,
value
FROM ovh.me.consent_decisions
WHERE campaign_name = '{{ campaign_name }}' -- required
;

UPDATE examples​

Update decision of a consent campaign

UPDATE ovh.me.consent_decisions
SET
pixel = '{{ pixel }}',
value = {{ value }}
WHERE
campaign_name = '{{ campaign_name }}' --required;