Bulk remove courses from multiple assignments.
Silently skips assignments that don’t have a given course. Requires admin role.
cURL
curl --request POST \ --url https://api.example.com/api/v1/learn/assignments/bulk/remove-courses \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "assignmentIds": [ "3c90c3cc-0d44-4b50-8888-8dd25736052a" ], "courseIds": [ "3c90c3cc-0d44-4b50-8888-8dd25736052a" ] } '
{ "updatedCount": 123, "totalCoursesRemoved": 123, "failedAssignmentIds": [] }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Request to bulk remove courses from multiple assignments.
Successful Response
Response from bulk course removal.
Was this page helpful?