Requirements expressions on News and Pages
What's new
News posts and Pages gain an optional requirements_expression field. It holds targeting rules so a post or page is shown only to users who match the expression, bringing them in line with coupons, store items, and promotions that already support requirement expressions.
Impact
You can now scope individual news posts and pages to specific audiences by attaching a requirements expression, instead of showing them to every user.
Changes
| Resource | Change |
|---|---|
| get_news_list, get_news_post | Added optional requirements_expression to the response |
| create_news, update_news, bulk_update_news | Added optional requirements_expression to both request and response |
| get_pages, get_page | Added optional requirements_expression to the response (including the parent page) |
| create_page, update_page, bulk_update_page | Added optional requirements_expression to both request and response (including the parent page) |
| translate_page | Added optional requirements_expression to the response (including the parent page) |
Upgrade
- No action required. Set
requirements_expressionon a news post or page to restrict it to users who match the rules.
需要技术支持?
联系我们的集成技术团队: [email protected]