Retrieve a Survey

This endpoint allows the user to retrieve the survey specific to a node. In this case, the only nodes that will have surveys will be questions.



Permissions & Notes:

There is no permission required to make this API request.

Sample Request

In the example request below, the user wants to find the survey for a question posted with a node ID of 123.

-u "answerhub:test123"
-H "Accept: application/json"
-H "Content-type: application/json"
-X GET "

Successful Sample Response

HTTP Status: 201

   “id”:<long id>,
         “id”:<long id>

Expected Error Response

HTTP Status: 404

  "error": "Node has no survey"
Click Try It! to start a request and see the response here!