Track progress
Write learner actions against the assignment revision and read back the resulting progress.
Record learning actions
Read the current assignment and replace the IDs and revisions in the requests below with those for your learner. After each completed operation, use its resulting revision for the next action. Send a separate lesson request and UUID for the checklist before sending the quiz answers in question order.
curl
curl -X POST "$RDC_BASE_URL/elearning/v1/assignments/ASG-2026-0312/start" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "4e08713a-ec34-4a5a-92d3-81fd42564004",
"expectedRevision": 1
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/elearning/v1/assignments/ASG-2026-0312/start`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "4e08713a-ec34-4a5a-92d3-81fd42564004",
"expectedRevision": 1
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/elearning/v1/assignments/ASG-2026-0312/start',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': '4e08713a-ec34-4a5a-92d3-81fd42564004',
'expectedRevision': 1,
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "4e08713a-ec34-4a5a-92d3-81fd42564004",
"expectedRevision": 1
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/elearning/v1/assignments/ASG-2026-0312/start');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RDC_TOKEN'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => $body,
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl); C#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/elearning/v1/assignments/ASG-2026-0312/start");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "4e08713a-ec34-4a5a-92d3-81fd42564004",
"expectedRevision": 1
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"operationId": "4e08713a-ec34-4a5a-92d3-81fd42564004",
"status": "accepted",
"aggregateRevision": null
} curl
curl -X POST "$RDC_BASE_URL/elearning/v1/assignments/ASG-2026-0312/lessons" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "4e08713a-ec34-4a5a-92d3-81fd42564005",
"expectedRevision": 2,
"lessonId": "receiving-reading"
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/elearning/v1/assignments/ASG-2026-0312/lessons`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "4e08713a-ec34-4a5a-92d3-81fd42564005",
"expectedRevision": 2,
"lessonId": "receiving-reading"
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/elearning/v1/assignments/ASG-2026-0312/lessons',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': '4e08713a-ec34-4a5a-92d3-81fd42564005',
'expectedRevision': 2,
'lessonId': 'receiving-reading',
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "4e08713a-ec34-4a5a-92d3-81fd42564005",
"expectedRevision": 2,
"lessonId": "receiving-reading"
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/elearning/v1/assignments/ASG-2026-0312/lessons');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RDC_TOKEN'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => $body,
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl); C#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/elearning/v1/assignments/ASG-2026-0312/lessons");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "4e08713a-ec34-4a5a-92d3-81fd42564005",
"expectedRevision": 2,
"lessonId": "receiving-reading"
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"operationId": "4e08713a-ec34-4a5a-92d3-81fd42564005",
"status": "accepted",
"aggregateRevision": null
} curl
curl -X POST "$RDC_BASE_URL/elearning/v1/assignments/ASG-2026-0312/attempts" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "4e08713a-ec34-4a5a-92d3-81fd42564006",
"expectedRevision": 4,
"answers": [
0,
1,
0
]
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/elearning/v1/assignments/ASG-2026-0312/attempts`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "4e08713a-ec34-4a5a-92d3-81fd42564006",
"expectedRevision": 4,
"answers": [
0,
1,
0
]
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/elearning/v1/assignments/ASG-2026-0312/attempts',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': '4e08713a-ec34-4a5a-92d3-81fd42564006',
'expectedRevision': 4,
'answers': [
0,
1,
0,
],
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "4e08713a-ec34-4a5a-92d3-81fd42564006",
"expectedRevision": 4,
"answers": [
0,
1,
0
]
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/elearning/v1/assignments/ASG-2026-0312/attempts');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RDC_TOKEN'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => $body,
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl); C#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/elearning/v1/assignments/ASG-2026-0312/attempts");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "4e08713a-ec34-4a5a-92d3-81fd42564006",
"expectedRevision": 4,
"answers": [
0,
1,
0
]
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"operationId": "4e08713a-ec34-4a5a-92d3-81fd42564006",
"status": "accepted",
"aggregateRevision": null
} curl
curl "$RDC_BASE_URL/elearning/v1/assignments/ASG-2025-0214/progress" \
-H "Authorization: Bearer $RDC_TOKEN" JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/elearning/v1/assignments/ASG-2025-0214/progress`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
},
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'GET',
f'{os.environ["RDC_BASE_URL"]}/elearning/v1/assignments/ASG-2025-0214/progress',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
)
result = response.json() PHP
<?php
$curl = curl_init(getenv('RDC_BASE_URL') . '/elearning/v1/assignments/ASG-2025-0214/progress');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RDC_TOKEN'),
],
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl); C#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/elearning/v1/assignments/ASG-2025-0214/progress");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"assignmentId": "ASG-2025-0214",
"lessonsDone": 3,
"lessonsTotal": 3,
"percent": 100,
"score": 100,
"attemptsLeft": 2,
"passMark": 67
} A valid submission that fails the quiz still consumes an attempt. Read score and attemptsLeft before offering another try. Reconcile a learner’s record with the completion report using the same course filter.
curl
curl "$RDC_BASE_URL/elearning/v1/reports/completion" \
-H "Authorization: Bearer $RDC_TOKEN" JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/elearning/v1/reports/completion`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
},
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'GET',
f'{os.environ["RDC_BASE_URL"]}/elearning/v1/reports/completion',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
)
result = response.json() PHP
<?php
$curl = curl_init(getenv('RDC_BASE_URL') . '/elearning/v1/reports/completion');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RDC_TOKEN'),
],
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl); C#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/elearning/v1/reports/completion");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"asOf": "2026-11-23",
"total": 8,
"completed": 4,
"completionPercent": 50,
"overdue": 2,
"expiring": 1
}