Marketing Consent
All operations require authentication.
2 operationsv1/me/marketing
Retrieve user marketing consent detailsProduction
GET
/1.0/ me/ marketing
Response
200Consentsuccessful operation
call
Consent Details
Details for call marketing communication
deny All
boolean
Stop all marketing communication
deny Until
stringdate-time
Stop marketing communication until this date
email
Consent Details
Details for email marketing communication
sms
Consent Details
Details for sms marketing communication
Reads your token from $OVH_TOKEN
$ curl https:/ / api.eu.ovhcloud.com/ 1.0/ me/ marketing \
-H "authorization: Bearer $OVH_TOKEN"{ "call": { "events": true, "newProductRecommendation": true, "newsletter": true, "offerAndDiscount": true }, "denyAll": true, "denyUntil": "2024-01-01T12:00:00Z", "email": { "events": true, "newProductRecommendation": true, "newsletter": true, "offerAndDiscount": true }, "sms": { "events": true, "newProductRecommendation": true, "newsletter": true, "offerAndDiscount": true }}
Update user marketing consentProduction
PUT
/1.0/ me/ marketing
Request body (required)
call
Consent Details
Details for call marketing communication
deny All
boolean
Stop all marketing communication
deny Until
stringdate-time
Stop marketing communication until this date
email
Consent Details
Details for email marketing communication
sms
Consent Details
Details for sms marketing communication
Response
200Consentsuccessful operation
call
Consent Details
Details for call marketing communication
deny All
boolean
Stop all marketing communication
deny Until
stringdate-time
Stop marketing communication until this date
email
Consent Details
Details for email marketing communication
sms
Consent Details
Details for sms marketing communication
Reads your token from $OVH_TOKEN
$ curl https:/ / api.eu.ovhcloud.com/ 1.0/ me/ marketing \
-H "authorization: Bearer $OVH_TOKEN"{ "call": { "events": true, "newProductRecommendation": true, "newsletter": true, "offerAndDiscount": true }, "denyAll": true, "denyUntil": "2024-01-01T12:00:00Z", "email": { "events": true, "newProductRecommendation": true, "newsletter": true, "offerAndDiscount": true }, "sms": { "events": true, "newProductRecommendation": true, "newsletter": true, "offerAndDiscount": true }}