What's new in Customer Journeys?

Connect and learn more! ×
Knowledge Advanced REST API: what parameters to provide for rate answer — 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 REST API: what parameters to provide for rate answer

Accepted answer
60
Views
2
Comments
edited Jun 8, 2022 12:10PM in General Technical Discussions 2 comments

Summary

Knowledge Foundation REST API unclearity what parameters to provide

Content

Hi,

I want to submit an answer rating via Postman, for which I provide the following request in the body:

{
  "survey" : {
    "recordId" : "{{id}}",
    "referenceKey" : "FIVE_STAR_RATING",
    "links" : [ {
      "rel" : "canonical",
      "href" : "https://{{hostname}}-irs.{{server}}/km/api/{{apiversion}}/content/{{id}}/rate",
      "mediaType" : "application/json, application/xml",
      "templated" : true,
      "method" : "GET"
    } ]
  },
  "locale" : "en_US",
  "answer" : "1000527",
  "answerComment" : "ANSWER_COMMENT"
}

And this is what I get as result:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ErrorResponse xmlns:ns2="urn:base.ws.rightnow.com/v1_4" xmlns:ns3="urn:generic.ws.rightnow.com/v1_4" xmlns:ns4

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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