What's new in Customer Journeys?

Connect and learn more! ×
Knowledge Advanced - query to restrict content by category — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Knowledge Advanced - query to restrict content by category

Received Response
35
Views
1
Comments
edited Jun 8, 2022 12:10PM in General Technical Discussions 1 comment

Summary

How to construct query in Knowledge Advanced REST API to restrict content by category

Content

Hi there,

Am using the Knowledge Advance REST API with Postman. I want to get:
1. content by one category
2. able to restrict the number of articles I get as a result.

I have used 2 kinds of queries to retrieve this result (variables between {{..}} are parsed):

Approach 1:
https://{{hostname}}-irs.{{server}}/km/api/{{apiversion}}/content?limit=20&mode=EXTENDED&contentState=PUBLISHED&categories.refKey+eq+'RN_PRODUCT_156';

Result 1: all provided parameters are working except categories.refKey+eq+'RN_PRODUCT_156' 

Approach 2 (according to this manual: REST API for Knowledge Advanced in B2C Service (oracle.com)

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!