π¦ Bulk Upload Activity
The bulkUploadActivity mutation starts an asynchronous bulk import of student activities β grades, feedback, submissions, and content consumption β from a single file. It returns a jobId and a signed uploadUrl; you upload an NDJSON file to that URL and Woolf processes it in the background.
Input Parameters
This mutation does not require any parameters.
Response Fields
Returns a Json object with the following fields:
Field | Type | Description |
|---|---|---|
| String | ID of the import job. Store it β you need it to check results with |
| String | Signed URL to upload your NDJSON file to. |
| Json | Headers to include when uploading the file to |
How It Works
Call
bulkUploadActivityand store the returnedjobId.Upload an NDJSON file (max 20 MB, one activity record per line, no enclosing array) to
uploadUrl, sending the returnedheaders. Each line has amutationType(Grade,Feedback,Submission,Consumption) and apayloadwith the activity details β for grades, feedback, and submissions, the same fields as theaddGrade,addFeedback, andaddSubmissioninputs.Check progress with Get Job Details, or subscribe to the
ACTIVITY_UPLOAD_FINISHEDwebhook event to be notified when processing finishes.