PATCH - Raise Feedback
This endpoint allows you to update the status of a query that has been raised against a specific feedback. You need to provide the exam ID, answer sheet ID, answer ID, feedback ID, and feedback query ID to identify the query. The status of the query can be updated to reflect its current state.
Scenario: Updating the Status of a Student’s Query:
- Updating Query Status:
- After reviewing a student’s query about feedback on their answer sheet, the teacher or administrator updates the status of the query (either resolved or pending).
- The API requires:
- Identifiers such as: exam ID, answer sheet ID, answer ID, feedback ID, and feedback query ID.
- Outcome:
- The status update clarifies whether the query is resolved or still pending, helping track the progress and resolution of each student’s query.
curl --request PATCH \
--url https://api-staging.crazygoldfish.com/evaluation-platform/v1/exam/{examId}/answer-sheet/{ansSheetId}/answer/{ansId}/feedback/{feedbackId}/query/{feedbackQueryId}/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"status": 1
}'import requests
url = "https://api-staging.crazygoldfish.com/evaluation-platform/v1/exam/{examId}/answer-sheet/{ansSheetId}/answer/{ansId}/feedback/{feedbackId}/query/{feedbackQueryId}/"
payload = { "status": 1 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({status: 1})
};
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 => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'status' => 1
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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 \"status\": 1\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.patch("https://api-staging.crazygoldfish.com/evaluation-platform/v1/exam/{examId}/answer-sheet/{ansSheetId}/answer/{ansId}/feedback/{feedbackId}/query/{feedbackQueryId}/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"status\": 1\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::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"status\": 1\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": 1,
"text": "why my marks has been deducted",
"responses": [
"<unknown>"
]
}
]
}
}{
"error": {
"code": 400,
"message": {
"non_field_errors": [
"Invalid status: The provided status is not valid."
]
}
}
}{
"detail": "Token has expired"
}{
"error": {
"code": 400,
"message": {
"non_field_errors": [
"Invalid Answer ID: The provided Answer ID does not exist"
]
}
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
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
Status of the feedback query.
1
Response
Success - Feedback details retrieved successfully.
Feedback details retrieved successfully.
Show child attributes
Show child attributes
Was this page helpful?
curl --request PATCH \
--url https://api-staging.crazygoldfish.com/evaluation-platform/v1/exam/{examId}/answer-sheet/{ansSheetId}/answer/{ansId}/feedback/{feedbackId}/query/{feedbackQueryId}/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"status": 1
}'import requests
url = "https://api-staging.crazygoldfish.com/evaluation-platform/v1/exam/{examId}/answer-sheet/{ansSheetId}/answer/{ansId}/feedback/{feedbackId}/query/{feedbackQueryId}/"
payload = { "status": 1 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({status: 1})
};
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 => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'status' => 1
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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 \"status\": 1\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.patch("https://api-staging.crazygoldfish.com/evaluation-platform/v1/exam/{examId}/answer-sheet/{ansSheetId}/answer/{ansId}/feedback/{feedbackId}/query/{feedbackQueryId}/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"status\": 1\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::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"status\": 1\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": 1,
"text": "why my marks has been deducted",
"responses": [
"<unknown>"
]
}
]
}
}{
"error": {
"code": 400,
"message": {
"non_field_errors": [
"Invalid status: The provided status is not valid."
]
}
}
}{
"detail": "Token has expired"
}{
"error": {
"code": 400,
"message": {
"non_field_errors": [
"Invalid Answer ID: The provided Answer ID does not exist"
]
}
}
}