cURL
curl --request PATCH \
--url http://localhost:8001/api/sessions/{session_id}/project-candidates/{project_candidate_id} \
--header 'Content-Type: application/json; charset=utf-8' \
--data '
{
"answers": [
{
"question_id": "<string>",
"answer": "<string>",
"evidence": [
"<unknown>"
],
"confidence": 123
}
],
"dismiss": true
}
'import requests
url = "http://localhost:8001/api/sessions/{session_id}/project-candidates/{project_candidate_id}"
payload = {
"answers": [
{
"question_id": "<string>",
"answer": "<string>",
"evidence": ["<unknown>"],
"confidence": 123
}
],
"dismiss": True
}
headers = {"Content-Type": "application/json; charset=utf-8"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json; charset=utf-8'},
body: JSON.stringify({
answers: [
{
question_id: '<string>',
answer: '<string>',
evidence: ['<unknown>'],
confidence: 123
}
],
dismiss: true
})
};
fetch('http://localhost:8001/api/sessions/{session_id}/project-candidates/{project_candidate_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8001",
CURLOPT_URL => "http://localhost:8001/api/sessions/{session_id}/project-candidates/{project_candidate_id}",
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([
'answers' => [
[
'question_id' => '<string>',
'answer' => '<string>',
'evidence' => [
'<unknown>'
],
'confidence' => 123
]
],
'dismiss' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json; charset=utf-8"
],
]);
$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 := "http://localhost:8001/api/sessions/{session_id}/project-candidates/{project_candidate_id}"
payload := strings.NewReader("{\n \"answers\": [\n {\n \"question_id\": \"<string>\",\n \"answer\": \"<string>\",\n \"evidence\": [\n \"<unknown>\"\n ],\n \"confidence\": 123\n }\n ],\n \"dismiss\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Content-Type", "application/json; charset=utf-8")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("http://localhost:8001/api/sessions/{session_id}/project-candidates/{project_candidate_id}")
.header("Content-Type", "application/json; charset=utf-8")
.body("{\n \"answers\": [\n {\n \"question_id\": \"<string>\",\n \"answer\": \"<string>\",\n \"evidence\": [\n \"<unknown>\"\n ],\n \"confidence\": 123\n }\n ],\n \"dismiss\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8001/api/sessions/{session_id}/project-candidates/{project_candidate_id}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json; charset=utf-8'
request.body = "{\n \"answers\": [\n {\n \"question_id\": \"<string>\",\n \"answer\": \"<string>\",\n \"evidence\": [\n \"<unknown>\"\n ],\n \"confidence\": 123\n }\n ],\n \"dismiss\": true\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>"
}{
"success": true,
"message": "<string>"
}{
"success": true,
"message": "<string>"
}Session
Patch sessions project candidates
PATCH
/
sessions
/
{session_id}
/
project-candidates
/
{project_candidate_id}
cURL
curl --request PATCH \
--url http://localhost:8001/api/sessions/{session_id}/project-candidates/{project_candidate_id} \
--header 'Content-Type: application/json; charset=utf-8' \
--data '
{
"answers": [
{
"question_id": "<string>",
"answer": "<string>",
"evidence": [
"<unknown>"
],
"confidence": 123
}
],
"dismiss": true
}
'import requests
url = "http://localhost:8001/api/sessions/{session_id}/project-candidates/{project_candidate_id}"
payload = {
"answers": [
{
"question_id": "<string>",
"answer": "<string>",
"evidence": ["<unknown>"],
"confidence": 123
}
],
"dismiss": True
}
headers = {"Content-Type": "application/json; charset=utf-8"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json; charset=utf-8'},
body: JSON.stringify({
answers: [
{
question_id: '<string>',
answer: '<string>',
evidence: ['<unknown>'],
confidence: 123
}
],
dismiss: true
})
};
fetch('http://localhost:8001/api/sessions/{session_id}/project-candidates/{project_candidate_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8001",
CURLOPT_URL => "http://localhost:8001/api/sessions/{session_id}/project-candidates/{project_candidate_id}",
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([
'answers' => [
[
'question_id' => '<string>',
'answer' => '<string>',
'evidence' => [
'<unknown>'
],
'confidence' => 123
]
],
'dismiss' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json; charset=utf-8"
],
]);
$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 := "http://localhost:8001/api/sessions/{session_id}/project-candidates/{project_candidate_id}"
payload := strings.NewReader("{\n \"answers\": [\n {\n \"question_id\": \"<string>\",\n \"answer\": \"<string>\",\n \"evidence\": [\n \"<unknown>\"\n ],\n \"confidence\": 123\n }\n ],\n \"dismiss\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Content-Type", "application/json; charset=utf-8")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("http://localhost:8001/api/sessions/{session_id}/project-candidates/{project_candidate_id}")
.header("Content-Type", "application/json; charset=utf-8")
.body("{\n \"answers\": [\n {\n \"question_id\": \"<string>\",\n \"answer\": \"<string>\",\n \"evidence\": [\n \"<unknown>\"\n ],\n \"confidence\": 123\n }\n ],\n \"dismiss\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8001/api/sessions/{session_id}/project-candidates/{project_candidate_id}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json; charset=utf-8'
request.body = "{\n \"answers\": [\n {\n \"question_id\": \"<string>\",\n \"answer\": \"<string>\",\n \"evidence\": [\n \"<unknown>\"\n ],\n \"confidence\": 123\n }\n ],\n \"dismiss\": true\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>"
}{
"success": true,
"message": "<string>"
}{
"success": true,
"message": "<string>"
}