Hi there,
The POST Admin endpoint to /curator/v2/collections/{collection}/profiles/{profile}/curator takes a content parameter that is suppose to be a json body object. The API docs mention that the json must follow the form specified in Funnelback’s documentation. Does anyone know where this example is located (there is no link)? I searched around the documentation and couldn’t find anything.
I’m trying to use the API to add curator rules.
Thanks,
Sam
For anyone else trying to figure this out, I used the json response from an item in the curatorRuleList object from the GET /curator/v2/collections/{collection}/profiles/{profile}/curator endpoint to come up with the following json to send. It seems to do the trick.
{
"name": "From api",
"label": "DEFAULT",
"enabled": true,
"trigger":
{
"type": "And",
"triggers": [
{
"type": "Or",
"triggers": [
{
"type": "QueryRegularExpression",
"triggerPattern": "^cow.*$"
}
]
}
]
},
"actions": [
{
"type": "DisplayUrlAdvert",
"titleHtml": "Cows on a farm",
"displayUrl": "farmers.com",
"linkUrl": "farmers.com",
"descriptionHtml": "Cows are cool",
"additionalProperties": {},
"category": "",
"removeCollectionUrl": true
}
]
}
The schema API might help
https://:8443/admin-api/curator/v2/schema
Ok, thanks @LukeButters !