POST - Feedback Query
This endpoint allows a student, teacher, or parent to reply to a query that has been raised against a specific feedback query. Additionally, a student can reply to the AI response related to the feedback query. You need to provide the exam ID, answer sheet ID, answer ID, feedback ID, and feedback query ID to identify the query.
Scenario: Student Replying to a Feedback Query:
- Student’s Additional Clarification:
- After receiving AI-generated feedback and the AI’s response to their query, a student may want to explain why they believe their answer should be graded differently or address any misunderstandings.
- Outcome:
- The student’s reply is stored and linked to the specific feedback query, offering further context for the evaluator to review.
Scenario: Teacher or Parent Replying to a Query:
- Teacher or Parent’s Input:
- A teacher or parent might reply to a query raised by the student to clarify feedback, explain reasoning behind marks, or provide additional insights.
- Outcome:
- The teacher or parent’s reply is stored, ensuring more transparency in the evaluation process.
POST
/
evaluation-platform
/
v1
/
exam
/
{examId}
/
answer-sheet
/
{ansSheetId}
/
answer
/
{ansId}
/
feedback
/
{feedbackId}
/
query
/
{feedbackQueryId}
/
Generate Feedback Query for answer
curl --request POST \
--url https://api-staging.crazygoldfish.com/evaluation-platform/v1/exam/{examId}/answer-sheet/{ansSheetId}/answer/{ansId}/feedback/{feedbackId}/query/{feedbackQueryId}/ \
--header 'Content-Type: application/json' \
--data '
{
"text": "ok got it"
}
'import requests
url = "https://api-staging.crazygoldfish.com/evaluation-platform/v1/exam/{examId}/answer-sheet/{ansSheetId}/answer/{ansId}/feedback/{feedbackId}/query/{feedbackQueryId}/"
payload = { "text": "ok got it" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({text: 'ok got it'})
};
fetch('https://api-staging.crazygoldfish.com/evaluation-platform/v1/exam/{examId}/answer-sheet/{ansSheetId}/answer/{ansId}/feedback/{feedbackId}/query/{feedbackQueryId}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-staging.crazygoldfish.com/evaluation-platform/v1/exam/{examId}/answer-sheet/{ansSheetId}/answer/{ansId}/feedback/{feedbackId}/query/{feedbackQueryId}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'text' => 'ok got it'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-staging.crazygoldfish.com/evaluation-platform/v1/exam/{examId}/answer-sheet/{ansSheetId}/answer/{ansId}/feedback/{feedbackId}/query/{feedbackQueryId}/"
payload := strings.NewReader("{\n \"text\": \"ok got it\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-staging.crazygoldfish.com/evaluation-platform/v1/exam/{examId}/answer-sheet/{ansSheetId}/answer/{ansId}/feedback/{feedbackId}/query/{feedbackQueryId}/")
.header("Content-Type", "application/json")
.body("{\n \"text\": \"ok got it\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-staging.crazygoldfish.com/evaluation-platform/v1/exam/{examId}/answer-sheet/{ansSheetId}/answer/{ansId}/feedback/{feedbackId}/query/{feedbackQueryId}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"text\": \"ok got it\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "def80534-8f59-49ea-b43e-553075b1db91",
"examId": "edaf2e84-e911-4150-9628-6d182a05ed0d",
"studentId": "10160091",
"answerId": "11637fca-dc77-4b63-88c0-ec74126d951c",
"feedback": "The student selected an incorrect option. It is important to carefully analyze the question and the options provided. Understanding the characteristics of a homologous series is crucial for answering such questions correctly.",
"marks_deducted": "1 - incorrect option selected",
"justification": "The student's answer (c) gradation in Physical Properties is incorrect as it does not address the question of what is not observed in a homologous series. The model answer correctly identifies (a) Change in chemical properties as the correct response.",
"room_for_improvement": "To achieve full marks, the student should select the correct option (a) Change in chemical properties, which is the only option that is not observed in a homologous series.",
"feedbackQuery": [
{
"id": "e2b75a94-bc8a-4a2b-a23f-32abc1198f37",
"createdByRole": "Student",
"queryType": 1,
"status": 3,
"text": "why my marks has been deducted",
"responses": [
{
"id": "3421ecec-30fd-4a51-89ba-aa796332ba51",
"createdByRole": "AI",
"text": "The student's selected answer '(c) gradation in Physical Properties' is incorrect according to the marking scheme. The correct answer is '(a) Change in chemical properties', as homologous series have the same functional group and show a gradation in physical properties, but do not have a change in chemical properties. Therefore, no change in marks is warranted."
}
]
}
]
}
}Path Parameters
Unique identifier of the exam.
Unique identifier of the answer sheet.
Unique identifier of the answer.
Unique identifier of the feedback.
Unique identifier of the feedback query.
Body
application/json
Text of the feedback query.
Example:
"ok got it"
Response
200 - application/json
Success - Feedback details retrieved successfully.
Show child attributes
Show child attributes
Was this page helpful?
⌘I
Generate Feedback Query for answer
curl --request POST \
--url https://api-staging.crazygoldfish.com/evaluation-platform/v1/exam/{examId}/answer-sheet/{ansSheetId}/answer/{ansId}/feedback/{feedbackId}/query/{feedbackQueryId}/ \
--header 'Content-Type: application/json' \
--data '
{
"text": "ok got it"
}
'import requests
url = "https://api-staging.crazygoldfish.com/evaluation-platform/v1/exam/{examId}/answer-sheet/{ansSheetId}/answer/{ansId}/feedback/{feedbackId}/query/{feedbackQueryId}/"
payload = { "text": "ok got it" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({text: 'ok got it'})
};
fetch('https://api-staging.crazygoldfish.com/evaluation-platform/v1/exam/{examId}/answer-sheet/{ansSheetId}/answer/{ansId}/feedback/{feedbackId}/query/{feedbackQueryId}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-staging.crazygoldfish.com/evaluation-platform/v1/exam/{examId}/answer-sheet/{ansSheetId}/answer/{ansId}/feedback/{feedbackId}/query/{feedbackQueryId}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'text' => 'ok got it'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-staging.crazygoldfish.com/evaluation-platform/v1/exam/{examId}/answer-sheet/{ansSheetId}/answer/{ansId}/feedback/{feedbackId}/query/{feedbackQueryId}/"
payload := strings.NewReader("{\n \"text\": \"ok got it\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-staging.crazygoldfish.com/evaluation-platform/v1/exam/{examId}/answer-sheet/{ansSheetId}/answer/{ansId}/feedback/{feedbackId}/query/{feedbackQueryId}/")
.header("Content-Type", "application/json")
.body("{\n \"text\": \"ok got it\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-staging.crazygoldfish.com/evaluation-platform/v1/exam/{examId}/answer-sheet/{ansSheetId}/answer/{ansId}/feedback/{feedbackId}/query/{feedbackQueryId}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"text\": \"ok got it\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "def80534-8f59-49ea-b43e-553075b1db91",
"examId": "edaf2e84-e911-4150-9628-6d182a05ed0d",
"studentId": "10160091",
"answerId": "11637fca-dc77-4b63-88c0-ec74126d951c",
"feedback": "The student selected an incorrect option. It is important to carefully analyze the question and the options provided. Understanding the characteristics of a homologous series is crucial for answering such questions correctly.",
"marks_deducted": "1 - incorrect option selected",
"justification": "The student's answer (c) gradation in Physical Properties is incorrect as it does not address the question of what is not observed in a homologous series. The model answer correctly identifies (a) Change in chemical properties as the correct response.",
"room_for_improvement": "To achieve full marks, the student should select the correct option (a) Change in chemical properties, which is the only option that is not observed in a homologous series.",
"feedbackQuery": [
{
"id": "e2b75a94-bc8a-4a2b-a23f-32abc1198f37",
"createdByRole": "Student",
"queryType": 1,
"status": 3,
"text": "why my marks has been deducted",
"responses": [
{
"id": "3421ecec-30fd-4a51-89ba-aa796332ba51",
"createdByRole": "AI",
"text": "The student's selected answer '(c) gradation in Physical Properties' is incorrect according to the marking scheme. The correct answer is '(a) Change in chemical properties', as homologous series have the same functional group and show a gradation in physical properties, but do not have a change in chemical properties. Therefore, no change in marks is warranted."
}
]
}
]
}
}