AP Readiness
Create an AP readiness goal
Creates an AP readiness goal for a student. Only one active AP readiness goal is allowed per student and AP subject; creating a new one cancels the previous active goal for that student and subject.
POST
/
ap-readiness
/
goals
Create an AP readiness goal
curl --request POST \
--url https://api.alpha-1edtech.ai/ap-readiness/goals \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"studentSourcedId": "<string>",
"courseIds": [
"<string>"
],
"startDate": "<string>",
"endDate": "<string>",
"practiceTestCourseIds": [],
"changeReason": "<string>"
}
'import requests
url = "https://api.alpha-1edtech.ai/ap-readiness/goals"
payload = {
"studentSourcedId": "<string>",
"courseIds": ["<string>"],
"startDate": "<string>",
"endDate": "<string>",
"practiceTestCourseIds": [],
"changeReason": "<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({
studentSourcedId: '<string>',
courseIds: ['<string>'],
startDate: '<string>',
endDate: '<string>',
practiceTestCourseIds: [],
changeReason: '<string>'
})
};
fetch('https://api.alpha-1edtech.ai/ap-readiness/goals', 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.alpha-1edtech.ai/ap-readiness/goals",
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([
'studentSourcedId' => '<string>',
'courseIds' => [
'<string>'
],
'startDate' => '<string>',
'endDate' => '<string>',
'practiceTestCourseIds' => [
],
'changeReason' => '<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://api.alpha-1edtech.ai/ap-readiness/goals"
payload := strings.NewReader("{\n \"studentSourcedId\": \"<string>\",\n \"courseIds\": [\n \"<string>\"\n ],\n \"startDate\": \"<string>\",\n \"endDate\": \"<string>\",\n \"practiceTestCourseIds\": [],\n \"changeReason\": \"<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://api.alpha-1edtech.ai/ap-readiness/goals")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"studentSourcedId\": \"<string>\",\n \"courseIds\": [\n \"<string>\"\n ],\n \"startDate\": \"<string>\",\n \"endDate\": \"<string>\",\n \"practiceTestCourseIds\": [],\n \"changeReason\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.alpha-1edtech.ai/ap-readiness/goals")
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 \"studentSourcedId\": \"<string>\",\n \"courseIds\": [\n \"<string>\"\n ],\n \"startDate\": \"<string>\",\n \"endDate\": \"<string>\",\n \"practiceTestCourseIds\": [],\n \"changeReason\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"goal": {
"sourcedId": "<string>",
"status": "active",
"dateLastModified": "<string>",
"studentSourcedId": "<string>",
"subject": "AP Biology",
"goalType": "ap_readiness",
"targetValue": "<string>",
"targetMetric": "percent",
"paceType": "target_date",
"startDate": "<string>",
"endDate": "<string>",
"goalStatus": "active",
"goalCreatedAt": "<string>",
"courseIds": [
"<string>"
],
"metadata": {
"practice_test_course_ids": [
"<string>"
]
},
"curriculumCourseIds": [
"<string>"
]
}
}{
"imsx_codeMajor": "failure",
"imsx_severity": "error",
"imsx_description": "<string>",
"imsx_CodeMinor": {
"imsx_codeMinorField": [
{
"imsx_codeMinorFieldName": "TargetEndSystem",
"imsx_codeMinorFieldValue": "invaliddata"
}
]
},
"imsx_error_details": [
{}
]
}{
"imsx_codeMajor": "failure",
"imsx_severity": "error",
"imsx_description": "<string>",
"imsx_CodeMinor": {
"imsx_codeMinorField": [
{
"imsx_codeMinorFieldName": "TargetEndSystem",
"imsx_codeMinorFieldValue": "unauthorisedrequest"
}
]
},
"imsx_error_details": [
{}
]
}{
"imsx_codeMajor": "failure",
"imsx_severity": "error",
"imsx_description": "<string>",
"imsx_CodeMinor": {
"imsx_codeMinorField": [
{
"imsx_codeMinorFieldName": "TargetEndSystem",
"imsx_codeMinorFieldValue": "forbidden"
}
]
},
"imsx_error_details": [
{}
]
}{
"imsx_codeMajor": "failure",
"imsx_severity": "error",
"imsx_description": "<string>",
"imsx_CodeMinor": {
"imsx_codeMinorField": [
{
"imsx_codeMinorFieldName": "TargetEndSystem",
"imsx_codeMinorFieldValue": "unknownobject"
}
]
},
"imsx_error_details": [
{}
]
}{
"imsx_codeMajor": "failure",
"imsx_severity": "error",
"imsx_description": "<string>",
"imsx_CodeMinor": {
"imsx_codeMinorField": [
{
"imsx_codeMinorFieldName": "TargetEndSystem",
"imsx_codeMinorFieldValue": "invaliddata"
}
]
},
"imsx_error_details": [
{}
]
}{
"imsx_codeMajor": "failure",
"imsx_severity": "error",
"imsx_description": "<string>",
"imsx_CodeMinor": {
"imsx_codeMinorField": [
{
"imsx_codeMinorFieldName": "TargetEndSystem",
"imsx_codeMinorFieldValue": "server_busy"
}
]
},
"imsx_error_details": [
{}
]
}{
"imsx_codeMajor": "failure",
"imsx_severity": "error",
"imsx_description": "<string>",
"imsx_CodeMinor": {
"imsx_codeMinorField": [
{
"imsx_codeMinorFieldName": "TargetEndSystem",
"imsx_codeMinorFieldValue": "internal_server_error"
}
]
},
"imsx_error_details": [
{}
]
}{
"imsx_codeMajor": "failure",
"imsx_severity": "error",
"imsx_description": "<string>",
"imsx_CodeMinor": {
"imsx_codeMinorField": [
{
"imsx_codeMinorFieldName": "TargetEndSystem",
"imsx_codeMinorFieldValue": "server_busy"
}
]
},
"imsx_error_details": [
{}
]
}Authorizations
Body
application/json
Must be one of the 19 official College Board AP exam names
Available options:
AP Biology, AP Calculus AB, AP Calculus BC, AP Chemistry, AP Computer Science A, AP Computer Science Principles, AP English Language and Composition, AP English Literature and Composition, AP Environmental Science, AP Human Geography, AP Microeconomics, AP Music Theory, AP Physics 1: Algebra-Based, AP Physics 2: Algebra-Based, AP Psychology, AP Statistics, AP US History, AP United States Government and Politics, AP World History: Modern ⌘I
Create an AP readiness goal
curl --request POST \
--url https://api.alpha-1edtech.ai/ap-readiness/goals \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"studentSourcedId": "<string>",
"courseIds": [
"<string>"
],
"startDate": "<string>",
"endDate": "<string>",
"practiceTestCourseIds": [],
"changeReason": "<string>"
}
'import requests
url = "https://api.alpha-1edtech.ai/ap-readiness/goals"
payload = {
"studentSourcedId": "<string>",
"courseIds": ["<string>"],
"startDate": "<string>",
"endDate": "<string>",
"practiceTestCourseIds": [],
"changeReason": "<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({
studentSourcedId: '<string>',
courseIds: ['<string>'],
startDate: '<string>',
endDate: '<string>',
practiceTestCourseIds: [],
changeReason: '<string>'
})
};
fetch('https://api.alpha-1edtech.ai/ap-readiness/goals', 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.alpha-1edtech.ai/ap-readiness/goals",
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([
'studentSourcedId' => '<string>',
'courseIds' => [
'<string>'
],
'startDate' => '<string>',
'endDate' => '<string>',
'practiceTestCourseIds' => [
],
'changeReason' => '<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://api.alpha-1edtech.ai/ap-readiness/goals"
payload := strings.NewReader("{\n \"studentSourcedId\": \"<string>\",\n \"courseIds\": [\n \"<string>\"\n ],\n \"startDate\": \"<string>\",\n \"endDate\": \"<string>\",\n \"practiceTestCourseIds\": [],\n \"changeReason\": \"<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://api.alpha-1edtech.ai/ap-readiness/goals")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"studentSourcedId\": \"<string>\",\n \"courseIds\": [\n \"<string>\"\n ],\n \"startDate\": \"<string>\",\n \"endDate\": \"<string>\",\n \"practiceTestCourseIds\": [],\n \"changeReason\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.alpha-1edtech.ai/ap-readiness/goals")
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 \"studentSourcedId\": \"<string>\",\n \"courseIds\": [\n \"<string>\"\n ],\n \"startDate\": \"<string>\",\n \"endDate\": \"<string>\",\n \"practiceTestCourseIds\": [],\n \"changeReason\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"goal": {
"sourcedId": "<string>",
"status": "active",
"dateLastModified": "<string>",
"studentSourcedId": "<string>",
"subject": "AP Biology",
"goalType": "ap_readiness",
"targetValue": "<string>",
"targetMetric": "percent",
"paceType": "target_date",
"startDate": "<string>",
"endDate": "<string>",
"goalStatus": "active",
"goalCreatedAt": "<string>",
"courseIds": [
"<string>"
],
"metadata": {
"practice_test_course_ids": [
"<string>"
]
},
"curriculumCourseIds": [
"<string>"
]
}
}{
"imsx_codeMajor": "failure",
"imsx_severity": "error",
"imsx_description": "<string>",
"imsx_CodeMinor": {
"imsx_codeMinorField": [
{
"imsx_codeMinorFieldName": "TargetEndSystem",
"imsx_codeMinorFieldValue": "invaliddata"
}
]
},
"imsx_error_details": [
{}
]
}{
"imsx_codeMajor": "failure",
"imsx_severity": "error",
"imsx_description": "<string>",
"imsx_CodeMinor": {
"imsx_codeMinorField": [
{
"imsx_codeMinorFieldName": "TargetEndSystem",
"imsx_codeMinorFieldValue": "unauthorisedrequest"
}
]
},
"imsx_error_details": [
{}
]
}{
"imsx_codeMajor": "failure",
"imsx_severity": "error",
"imsx_description": "<string>",
"imsx_CodeMinor": {
"imsx_codeMinorField": [
{
"imsx_codeMinorFieldName": "TargetEndSystem",
"imsx_codeMinorFieldValue": "forbidden"
}
]
},
"imsx_error_details": [
{}
]
}{
"imsx_codeMajor": "failure",
"imsx_severity": "error",
"imsx_description": "<string>",
"imsx_CodeMinor": {
"imsx_codeMinorField": [
{
"imsx_codeMinorFieldName": "TargetEndSystem",
"imsx_codeMinorFieldValue": "unknownobject"
}
]
},
"imsx_error_details": [
{}
]
}{
"imsx_codeMajor": "failure",
"imsx_severity": "error",
"imsx_description": "<string>",
"imsx_CodeMinor": {
"imsx_codeMinorField": [
{
"imsx_codeMinorFieldName": "TargetEndSystem",
"imsx_codeMinorFieldValue": "invaliddata"
}
]
},
"imsx_error_details": [
{}
]
}{
"imsx_codeMajor": "failure",
"imsx_severity": "error",
"imsx_description": "<string>",
"imsx_CodeMinor": {
"imsx_codeMinorField": [
{
"imsx_codeMinorFieldName": "TargetEndSystem",
"imsx_codeMinorFieldValue": "server_busy"
}
]
},
"imsx_error_details": [
{}
]
}{
"imsx_codeMajor": "failure",
"imsx_severity": "error",
"imsx_description": "<string>",
"imsx_CodeMinor": {
"imsx_codeMinorField": [
{
"imsx_codeMinorFieldName": "TargetEndSystem",
"imsx_codeMinorFieldValue": "internal_server_error"
}
]
},
"imsx_error_details": [
{}
]
}{
"imsx_codeMajor": "failure",
"imsx_severity": "error",
"imsx_description": "<string>",
"imsx_CodeMinor": {
"imsx_codeMinorField": [
{
"imsx_codeMinorFieldName": "TargetEndSystem",
"imsx_codeMinorFieldValue": "server_busy"
}
]
},
"imsx_error_details": [
{}
]
}