We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
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 REST API: error retrieving object

Accepted answer
11
Views
1
Comments
edited Feb 5, 2021 3:00PM in Integrations and APIs 1 comment

Summary

I try to get a rating for a content id, but it cannot be found though I verified it exists

Content

Hi,

Using the Knowledge Advanced REST API via Postman, I'm trying to see if I can get the rating belonging to an article. This is my request (after having authorized the API User and thereafter the Console and Web user):
 

Url:
GET https://{{hostname}}-irs.{{server}}/km/api/{{apiversion}}/content/{{answerid}}/ratings

Headers:

key: kmauthtoken
value:
{"siteName":"{{sitename}}","interfaceId":"{{interfaceId}}","localeId":"{{localeId}}","knowledgeInteractionId":"{{knowledgeInteractionId}}","integrationUserToken":"{{integrationUserToken}}"}

key: answerid
value:
{{answerid}}

Pre-request Script:
postman.setEnvironmentVariable("answerid","1001425");

And this is the response I get:

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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