You use REST endpoints exposed at /gsadmin/v1/cloud/content/additionalContent/TriggerName to define an additional content item, or a trigger. You can have this trigger either on a search term or on a navigation state, that is, using dimension value IDs.
Example: Rule trigger definition
You can use the following call to create a new additional content item to trigger on a search for “about us”.
POST /gsadmin/v1/cloud/content/additionalContent/aboutus
{
"ecr:type" : "content-item",
"priority" : 10,
"contentItem":
{
"@type": "UnstructuredContent",
"title":"Looking for information about our company?",
"link-title": "About Us",
"link-url": "/about-us",
"image": "company-logo.png"
},
"triggers":[
{
"searchTerms": "about",
"matchmode": "MATCHEXACT"
},
{
"searchTerms": "about us",
"matchmode": "MATCHEXACT"
}
]
}
