Per Artifact Approve
curl --request POST \
--url https://api.myustadia.com/api/v1/courses/{course_id}/review/approve \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"artifact_type": "<string>",
"module_index": 123,
"scene_index": 123,
"asset_id": 123
}
'import requests
url = "https://api.myustadia.com/api/v1/courses/{course_id}/review/approve"
payload = {
"artifact_type": "<string>",
"module_index": 123,
"scene_index": 123,
"asset_id": 123
}
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({artifact_type: '<string>', module_index: 123, scene_index: 123, asset_id: 123})
};
fetch('https://api.myustadia.com/api/v1/courses/{course_id}/review/approve', 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.myustadia.com/api/v1/courses/{course_id}/review/approve",
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([
'artifact_type' => '<string>',
'module_index' => 123,
'scene_index' => 123,
'asset_id' => 123
]),
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.myustadia.com/api/v1/courses/{course_id}/review/approve"
payload := strings.NewReader("{\n \"artifact_type\": \"<string>\",\n \"module_index\": 123,\n \"scene_index\": 123,\n \"asset_id\": 123\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.myustadia.com/api/v1/courses/{course_id}/review/approve")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"artifact_type\": \"<string>\",\n \"module_index\": 123,\n \"scene_index\": 123,\n \"asset_id\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.myustadia.com/api/v1/courses/{course_id}/review/approve")
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 \"artifact_type\": \"<string>\",\n \"module_index\": 123,\n \"scene_index\": 123,\n \"asset_id\": 123\n}"
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}B2B Courses v2
Per Artifact Approve
POST /courses/{id}/review/approve (S2.1)
Approve a single artifact identified by the ArtifactRef body.
Calls course_reviews.approve, which:
- upserts status='approved'
- when the prior status was 'note': flips note_resolved=TRUE and marks
the matching courses.feedback entry resolved=TRUE (S2.3 resolved marking,
already in S1's approve implementation).
reviewer is stamped as 'human:<client_id>' (QC hook: design section 17 says
the reviewer field is the hook; no separate QC route needed).
Phase 2 / Wave 1: returns {approved, artifact}. NO enqueue.
The trigger-chain (gen_audio, assemble_module, finalize) is Phase 3 (S3).
POST
/
api
/
v1
/
courses
/
{course_id}
/
review
/
approve
Per Artifact Approve
curl --request POST \
--url https://api.myustadia.com/api/v1/courses/{course_id}/review/approve \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"artifact_type": "<string>",
"module_index": 123,
"scene_index": 123,
"asset_id": 123
}
'import requests
url = "https://api.myustadia.com/api/v1/courses/{course_id}/review/approve"
payload = {
"artifact_type": "<string>",
"module_index": 123,
"scene_index": 123,
"asset_id": 123
}
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({artifact_type: '<string>', module_index: 123, scene_index: 123, asset_id: 123})
};
fetch('https://api.myustadia.com/api/v1/courses/{course_id}/review/approve', 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.myustadia.com/api/v1/courses/{course_id}/review/approve",
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([
'artifact_type' => '<string>',
'module_index' => 123,
'scene_index' => 123,
'asset_id' => 123
]),
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.myustadia.com/api/v1/courses/{course_id}/review/approve"
payload := strings.NewReader("{\n \"artifact_type\": \"<string>\",\n \"module_index\": 123,\n \"scene_index\": 123,\n \"asset_id\": 123\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.myustadia.com/api/v1/courses/{course_id}/review/approve")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"artifact_type\": \"<string>\",\n \"module_index\": 123,\n \"scene_index\": 123,\n \"asset_id\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.myustadia.com/api/v1/courses/{course_id}/review/approve")
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 \"artifact_type\": \"<string>\",\n \"module_index\": 123,\n \"scene_index\": 123,\n \"asset_id\": 123\n}"
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
Addressing a single reviewable artifact.
Addressing modes:
- asset_id (int): look up (asset_type, module_index, scene_index) from course_assets and map asset_type to the ledger artifact_type.
- artifact_type + optional module_index + optional scene_index: direct logical addressing (used for outline/notes/quiz_question and for slide/audio when the caller knows the indices).
Either asset_id or artifact_type must be present; if both are given, asset_id takes precedence.
Response
Successful Response