Skip to main content
POST
/
api
/
v1
/
assignments
/
{assignment_id}
/
courses
Assign Courses
curl --request POST \
  --url https://api.seamind.xyz/api/v1/assignments/{assignment_id}/courses \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "courseIds": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "curriculumId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "assignmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "courses": [
    {
      "courseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "title": "<string>",
      "assignedAt": "2023-11-07T05:31:56Z",
      "curriculumId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "curriculumTitle": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

assignment_id
string<uuid>
required

Body

application/json

Request to assign courses to an assignment.

courseIds
string<uuid>[] | null
curriculumId
string<uuid> | null

Response

Successful Response

Response for listing courses assigned to an assignment.

assignmentId
string<uuid>
required
courses
AssignmentCourseDetailDTO · object[]
required