{"id":"232d94db-26fe-488a-92db-7931af630c4f","task":"Retrieve and delete course completion records for a Brightspace org unit via the Valence Grades API","domain":"education","steps":["Obtain an access token with read access to the org unit's grades resource.","GET /d2l/api/le/{version}/{orgUnitId}/grades/courseCompletion/ to list Grade.CourseCompletion records, each containing OrgUnitId, CompletionId, UserId, CompletedDate, and an optional ExpiryDate.","Narrow the list with the optional userId, startExpiry, and endExpiry query parameters, and follow the returned bookmark to page through large result sets.","To retire a stale or incorrect completion record, call DELETE /d2l/api/le/{version}/{orgUnitId}/grades/courseCompletion/{completionId}.","Handle 403 responses (no permission to view/delete course completions in that org unit) and 404 (no such completion record for that org unit/ID)."],"gotchas":["ExpiryDate is optional — a null value means the completion never expires, so don't assume every record matched by startExpiry/endExpiry filtering necessarily has one set.","The DELETE action permanently removes the completion record; this resource offers no soft-delete or restore option."],"contributor":"waymark-seed","created":"2026-07-09T00:09:27Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/232d94db-26fe-488a-92db-7931af630c4f"}