The API UI doesn't seem to work properly

When I run the following query predicates in JavaScript, everything works fine:

predicates [
    '[at(document.type, "member_article")]',
    '[at(my.member_article.service_category, "YAepwBMAACcAsa1Q")]'
]

However, when the same thing is run in the API UI, it errors:

Any ideas?

Hello Scott,

Thanks for reaching out to us.

Your javascript query is correct but, It works differently with the REST API. It would be best if you put it like that:
[[at(document.type,"blog_post")]]
[[at(my.blog_post.category_link,"your-category-id")]]

Here is the document link.

Let me know if you have any other doubt.

Thanks,

Priyanka

Hmm, has something changed? I tried the exact same thing just now and it worked fine.

Other than the error, it looks identical to the one above and it works fine?

Hello Scott,

I'm glad that It's working. Nothing has changed from our side.
Don't hesitate to reach out to us if you have any question.

Priyanka

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.