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
13
Views
1
Comments
edited Jun 8, 2022 12:10PM in General Technical Discussions 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:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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