Skip to main content
POST
/
api
/
v1
/
assignments
/
bulk
/
courses
Bulk Assign Courses
curl --request POST \
  --url https://api.seamind.xyz/api/v1/assignments/bulk/courses \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "assignmentIds": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "courseIds": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "curriculumId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "updatedCount": 123,
  "totalCoursesAssigned": 123,
  "failedAssignmentIds": []
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Request to bulk assign courses to multiple assignments.

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

Response

Successful Response

Response from bulk course assignment.

updatedCount
integer
required
totalCoursesAssigned
integer
required
failedAssignmentIds
string<uuid>[]