Skip to main content
PUT
/
edubridge
/
subject-track
Create or update a subject track
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>"
      }
    }
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
subject
enum<string>
required

The subject for the track (required)

Available options:
Reading,
Language,
Vocabulary,
Social Studies,
Writing,
Science,
FastMath,
Math,
None,
Other
grade
enum<string>
required

The grade level for the track (required)

Available options:
-1,
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13
Example:

"3"

courseId
string
required

The course ID to associate with this track (required)

Minimum string length: 1
orgSourcedId
string

Optional organization/school ID. If not provided, creates a global track that applies to all organizations

Response

200 - application/json

Successful response

subjectTrack
object
required