curl --request PUT \
--url https://api.alpha-1edtech.ai/edubridge/subject-track/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"subject": "Reading",
"grade": "3",
"courseId": "<string>",
"orgSourcedId": "<string>"
}
'{
"subjectTrack": {
"id": "<string>",
"grade": "3",
"subject": "Reading",
"course": {
"status": "active",
"title": "<string>",
"org": {
"sourcedId": "<string>"
},
"sourcedId": "<string>",
"dateLastModified": "2023-11-07T05:31:56Z",
"metadata": {},
"courseCode": "<string>",
"grades": [
"3"
],
"subjects": [
"Reading"
],
"subjectCodes": [
"<string>"
],
"level": "<string>"
},
"org": {
"sourcedId": "<string>",
"status": "active",
"name": "<string>",
"type": "department",
"identifier": "<string>",
"children": [],
"dateLastModified": "2023-11-07T05:31:56Z",
"metadata": {},
"parent": {
"href": "<string>",
"sourcedId": "<string>",
"type": "<string>"
}
}
}
}Creates a new subject track or updates an existing one for the given organization, subject and grade with upsert behavior. If orgSourcedId is provided, creates an organization-specific track. If omitted, creates a global track that applies to all organizations. There can be only one target course per organization, subject and grade level combination.
curl --request PUT \
--url https://api.alpha-1edtech.ai/edubridge/subject-track/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"subject": "Reading",
"grade": "3",
"courseId": "<string>",
"orgSourcedId": "<string>"
}
'{
"subjectTrack": {
"id": "<string>",
"grade": "3",
"subject": "Reading",
"course": {
"status": "active",
"title": "<string>",
"org": {
"sourcedId": "<string>"
},
"sourcedId": "<string>",
"dateLastModified": "2023-11-07T05:31:56Z",
"metadata": {},
"courseCode": "<string>",
"grades": [
"3"
],
"subjects": [
"Reading"
],
"subjectCodes": [
"<string>"
],
"level": "<string>"
},
"org": {
"sourcedId": "<string>",
"status": "active",
"name": "<string>",
"type": "department",
"identifier": "<string>",
"children": [],
"dateLastModified": "2023-11-07T05:31:56Z",
"metadata": {},
"parent": {
"href": "<string>",
"sourcedId": "<string>",
"type": "<string>"
}
}
}
}The access token received from the authorization server in the OAuth 2.0 flow.
The subject for the track (required)
Reading, Language, Vocabulary, Social Studies, Writing, Science, FastMath, Math, None, Other The grade level for the track (required)
-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 "3"
The course ID to associate with this track (required)
1Optional organization/school ID. If not provided, creates a global track that applies to all organizations
Successful response
Show child attributes