curl --request POST \
--url https://api.journeybee.io/v1/certifications/{uuid}/enrollments/result \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"passed": true,
"achieved_date": "2023-12-25",
"learner_email": "<string>",
"user_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"partnership_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"score": 50,
"expiry_date": "2023-12-25"
}
'import requests
url = "https://api.journeybee.io/v1/certifications/{uuid}/enrollments/result"
payload = {
"passed": True,
"achieved_date": "2023-12-25",
"learner_email": "<string>",
"user_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"partnership_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"score": 50,
"expiry_date": "2023-12-25"
}
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({
passed: true,
achieved_date: '2023-12-25',
learner_email: '<string>',
user_uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
partnership_uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
score: 50,
expiry_date: '2023-12-25'
})
};
fetch('https://api.journeybee.io/v1/certifications/{uuid}/enrollments/result', 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.journeybee.io/v1/certifications/{uuid}/enrollments/result",
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([
'passed' => true,
'achieved_date' => '2023-12-25',
'learner_email' => '<string>',
'user_uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'partnership_uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'score' => 50,
'expiry_date' => '2023-12-25'
]),
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.journeybee.io/v1/certifications/{uuid}/enrollments/result"
payload := strings.NewReader("{\n \"passed\": true,\n \"achieved_date\": \"2023-12-25\",\n \"learner_email\": \"<string>\",\n \"user_uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"partnership_uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"score\": 50,\n \"expiry_date\": \"2023-12-25\"\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://api.journeybee.io/v1/certifications/{uuid}/enrollments/result")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"passed\": true,\n \"achieved_date\": \"2023-12-25\",\n \"learner_email\": \"<string>\",\n \"user_uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"partnership_uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"score\": 50,\n \"expiry_date\": \"2023-12-25\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.journeybee.io/v1/certifications/{uuid}/enrollments/result")
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 \"passed\": true,\n \"achieved_date\": \"2023-12-25\",\n \"learner_email\": \"<string>\",\n \"user_uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"partnership_uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"score\": 50,\n \"expiry_date\": \"2023-12-25\"\n}"
response = http.request(request)
puts response.read_body{
"uuid": "<string>",
"user_uuid": "<string>",
"user_email": "<string>",
"status": "enrolled",
"progress_percentage": 123,
"enrolled_at": "<string>",
"started_at": "<string>",
"completed_at": "<string>",
"assessment_best_score": 123,
"assessment_passed": true,
"result_source": "platform",
"expires_at": "<string>",
"expired": true
}Record an externally-achieved exam result on a learner's enrolment
curl --request POST \
--url https://api.journeybee.io/v1/certifications/{uuid}/enrollments/result \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"passed": true,
"achieved_date": "2023-12-25",
"learner_email": "<string>",
"user_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"partnership_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"score": 50,
"expiry_date": "2023-12-25"
}
'import requests
url = "https://api.journeybee.io/v1/certifications/{uuid}/enrollments/result"
payload = {
"passed": True,
"achieved_date": "2023-12-25",
"learner_email": "<string>",
"user_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"partnership_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"score": 50,
"expiry_date": "2023-12-25"
}
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({
passed: true,
achieved_date: '2023-12-25',
learner_email: '<string>',
user_uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
partnership_uuid: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
score: 50,
expiry_date: '2023-12-25'
})
};
fetch('https://api.journeybee.io/v1/certifications/{uuid}/enrollments/result', 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.journeybee.io/v1/certifications/{uuid}/enrollments/result",
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([
'passed' => true,
'achieved_date' => '2023-12-25',
'learner_email' => '<string>',
'user_uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'partnership_uuid' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'score' => 50,
'expiry_date' => '2023-12-25'
]),
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.journeybee.io/v1/certifications/{uuid}/enrollments/result"
payload := strings.NewReader("{\n \"passed\": true,\n \"achieved_date\": \"2023-12-25\",\n \"learner_email\": \"<string>\",\n \"user_uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"partnership_uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"score\": 50,\n \"expiry_date\": \"2023-12-25\"\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://api.journeybee.io/v1/certifications/{uuid}/enrollments/result")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"passed\": true,\n \"achieved_date\": \"2023-12-25\",\n \"learner_email\": \"<string>\",\n \"user_uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"partnership_uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"score\": 50,\n \"expiry_date\": \"2023-12-25\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.journeybee.io/v1/certifications/{uuid}/enrollments/result")
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 \"passed\": true,\n \"achieved_date\": \"2023-12-25\",\n \"learner_email\": \"<string>\",\n \"user_uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"partnership_uuid\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"score\": 50,\n \"expiry_date\": \"2023-12-25\"\n}"
response = http.request(request)
puts response.read_body{
"uuid": "<string>",
"user_uuid": "<string>",
"user_email": "<string>",
"status": "enrolled",
"progress_percentage": 123,
"enrolled_at": "<string>",
"started_at": "<string>",
"completed_at": "<string>",
"assessment_best_score": 123,
"assessment_passed": true,
"result_source": "platform",
"expires_at": "<string>",
"expired": true
}Authorizations
Path Parameters
Body
Record an exam result achieved outside the platform on a learner's enrolment. Completes (or fails) the learner's current enrolment period with the supplied dates and marks it as an external result; later learner activity never overwrites it.
Record an exam result achieved outside the platform on a learner's enrolment. Completes (or fails) the learner's current enrolment period with the supplied dates and marks it as an external result; later learner activity never overwrites it.
Calendar date, YYYY-MM-DD (stored as that day at 12:00 UTC). The date the result was achieved; must not be in the future
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$Calendar date, YYYY-MM-DD (stored as that day at 12:00 UTC). When the certificate expires; omit to derive from the certification's validity schedule, null for no expiry
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$Response
A user's enrollment and progress in a certification.
A user's enrollment and progress in a certification.