List rules
Endpoint:
https://api.visidea.ai/rules/{website_id}
Method: GET
Response:
[
{
"id": "...",
"item_id": "636ce58f967e437264eeae17",
"rule": "{items:[\"636ce58f967e437264eeae17\",\"636ce58f967e437264eeae17\"]}",
"account_id": "...",
"website_id": "...",
"createdDate": "2022-11-10T13:40:11.940Z"
},
{
"id": "...",
"item_id": "636ce58f967e437264eeae22",
"rule": "{items:[\"636ce58f967e437264eeae17\",\"636ce58f967e437264eeae17\"]}",
"account_id": "...",
"website_id": "...",
"createdDate": "2022-11-10T13:40:28.970Z"
}
]
note
rule contains a json object with in items property an array of item ids.
In the future it will be extended with other functions.