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
19
Views
2
Comments
edited Feb 10, 2021 5:45PM in Integrations and APIs 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",
      "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="urn:objects.ws.rightnow.com/v1_4" xmlns:ns5="urn:faults.ws.rightnow.com/v1_4" xmlns:ns6="urn:metadata.ws.rightnow.com/v1_4" xmlns:ns7="urn:messages.ws.rightnow.com/v1_4" xmlns:ns8="urn:nullfields.ws.rightnow.com/v1_4">
Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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