Skip to Main Content
Customer Feedback

We love feedback from you on our products and the problems in your daily work that you would like us to solve. Please describe the challenge you're encountering and your desired outcome. Be as detailed as possible.

For technical issues or bugs please head to Support or our Developer Community. You can assign up to 20 votes in total. Thank you for your feedback.

Status explanation: 'Future Consideration' = Continuing to collect further feedback, not planned at this time. 'Investigating' = Prioritized for deeper customer and feasibility investigations ahead of planning development.

Categories APIs
Created by Guest
Created on Dec 19, 2023

Enable Content Delivery Api to NOT deliver content

We need to omit content from beling delivered by the content delivery api, but it does not seem to be possible. For example some articles are not allowed to be shown to users from specific countries for legal reasons. So we want to ensure from the backend that the frontend will not render them.

The idea was to create a ContentFilter or ContentApiModelFilter that checks if the content is an article not allowed in the current country. If so, it should be omitted(not delivered) by the content delivery api. But obviously that is not supported since you cannot remove all properties. See my related post in your forum:
https://world.optimizely.com/forum/developer-forum/cms-12/thread-container/2023/12/how-to-removeomit-content-in-contentfilter-or-contentapimodelfilter/

This is something we would expect to be supported since it's an important requirement to be able to not delivery something under a certain condition.