curl --request POST \
--url https://cool.jobmojito.com/functions/v1/assessment-result-set \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"position_result_step_id": "6a0f2d4e-1c3b-4e5f-8a7b-9c0d1e2f3a4b",
"score": 78,
"score_max": 100,
"passed": true,
"result_label": "B2",
"report_url": "<string>",
"note": "<string>"
}
'import requests
url = "https://cool.jobmojito.com/functions/v1/assessment-result-set"
payload = {
"position_result_step_id": "6a0f2d4e-1c3b-4e5f-8a7b-9c0d1e2f3a4b",
"score": 78,
"score_max": 100,
"passed": True,
"result_label": "B2",
"report_url": "<string>",
"note": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
position_result_step_id: '6a0f2d4e-1c3b-4e5f-8a7b-9c0d1e2f3a4b',
score: 78,
score_max: 100,
passed: true,
result_label: 'B2',
report_url: '<string>',
note: '<string>'
})
};
fetch('https://cool.jobmojito.com/functions/v1/assessment-result-set', 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://cool.jobmojito.com/functions/v1/assessment-result-set",
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([
'position_result_step_id' => '6a0f2d4e-1c3b-4e5f-8a7b-9c0d1e2f3a4b',
'score' => 78,
'score_max' => 100,
'passed' => true,
'result_label' => 'B2',
'report_url' => '<string>',
'note' => '<string>'
]),
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://cool.jobmojito.com/functions/v1/assessment-result-set"
payload := strings.NewReader("{\n \"position_result_step_id\": \"6a0f2d4e-1c3b-4e5f-8a7b-9c0d1e2f3a4b\",\n \"score\": 78,\n \"score_max\": 100,\n \"passed\": true,\n \"result_label\": \"B2\",\n \"report_url\": \"<string>\",\n \"note\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://cool.jobmojito.com/functions/v1/assessment-result-set")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"position_result_step_id\": \"6a0f2d4e-1c3b-4e5f-8a7b-9c0d1e2f3a4b\",\n \"score\": 78,\n \"score_max\": 100,\n \"passed\": true,\n \"result_label\": \"B2\",\n \"report_url\": \"<string>\",\n \"note\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://cool.jobmojito.com/functions/v1/assessment-result-set")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"position_result_step_id\": \"6a0f2d4e-1c3b-4e5f-8a7b-9c0d1e2f3a4b\",\n \"score\": 78,\n \"score_max\": 100,\n \"passed\": true,\n \"result_label\": \"B2\",\n \"report_url\": \"<string>\",\n \"note\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"outcome": "applied",
"status": "<string>",
"score": 123,
"score_max": 123,
"passed": true
}{
"error": "Field is required.",
"name": "interview_result_id"
}{
"error": "Field is required.",
"name": "interview_result_id"
}{
"error": "Field is required.",
"name": "interview_result_id"
}{
"error": "Field is required.",
"name": "interview_result_id"
}{
"error": "Field is required.",
"name": "interview_result_id"
}Record an external assessment result
Records the result of an external assessment step of an application (status, score, pass / fail, report link). A result never decides on its own: the step then waits for the recruiter to pass or fail it. Requires the token of a merchant or merchant owner of the company; available when external assessments are enabled for the company.
curl --request POST \
--url https://cool.jobmojito.com/functions/v1/assessment-result-set \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"position_result_step_id": "6a0f2d4e-1c3b-4e5f-8a7b-9c0d1e2f3a4b",
"score": 78,
"score_max": 100,
"passed": true,
"result_label": "B2",
"report_url": "<string>",
"note": "<string>"
}
'import requests
url = "https://cool.jobmojito.com/functions/v1/assessment-result-set"
payload = {
"position_result_step_id": "6a0f2d4e-1c3b-4e5f-8a7b-9c0d1e2f3a4b",
"score": 78,
"score_max": 100,
"passed": True,
"result_label": "B2",
"report_url": "<string>",
"note": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
position_result_step_id: '6a0f2d4e-1c3b-4e5f-8a7b-9c0d1e2f3a4b',
score: 78,
score_max: 100,
passed: true,
result_label: 'B2',
report_url: '<string>',
note: '<string>'
})
};
fetch('https://cool.jobmojito.com/functions/v1/assessment-result-set', 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://cool.jobmojito.com/functions/v1/assessment-result-set",
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([
'position_result_step_id' => '6a0f2d4e-1c3b-4e5f-8a7b-9c0d1e2f3a4b',
'score' => 78,
'score_max' => 100,
'passed' => true,
'result_label' => 'B2',
'report_url' => '<string>',
'note' => '<string>'
]),
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://cool.jobmojito.com/functions/v1/assessment-result-set"
payload := strings.NewReader("{\n \"position_result_step_id\": \"6a0f2d4e-1c3b-4e5f-8a7b-9c0d1e2f3a4b\",\n \"score\": 78,\n \"score_max\": 100,\n \"passed\": true,\n \"result_label\": \"B2\",\n \"report_url\": \"<string>\",\n \"note\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://cool.jobmojito.com/functions/v1/assessment-result-set")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"position_result_step_id\": \"6a0f2d4e-1c3b-4e5f-8a7b-9c0d1e2f3a4b\",\n \"score\": 78,\n \"score_max\": 100,\n \"passed\": true,\n \"result_label\": \"B2\",\n \"report_url\": \"<string>\",\n \"note\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://cool.jobmojito.com/functions/v1/assessment-result-set")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"position_result_step_id\": \"6a0f2d4e-1c3b-4e5f-8a7b-9c0d1e2f3a4b\",\n \"score\": 78,\n \"score_max\": 100,\n \"passed\": true,\n \"result_label\": \"B2\",\n \"report_url\": \"<string>\",\n \"note\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"outcome": "applied",
"status": "<string>",
"score": 123,
"score_max": 123,
"passed": true
}{
"error": "Field is required.",
"name": "interview_result_id"
}{
"error": "Field is required.",
"name": "interview_result_id"
}{
"error": "Field is required.",
"name": "interview_result_id"
}{
"error": "Field is required.",
"name": "interview_result_id"
}{
"error": "Field is required.",
"name": "interview_result_id"
}Authorizations
Supabase JWT — Authorization: Bearer <token>.
Body
The external assessment step of the application (position_result_step id).
1"6a0f2d4e-1c3b-4e5f-8a7b-9c0d1e2f3a4b"
started, completed (a result), expired (not taken in time) or cancelled.
started, completed, expired, cancelled Score (completed).
78
Maximum score.
x > 0100
Pass / fail as the assessment reports it. Without it the step's pass mark decides it from the score.
Result label, for example a language level.
200"B2"
Link to the full report (https).
2000Note for the recruiter.
2000Response
Result recorded.