You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Retrieves course grading configuration for a specific course ID. Returns JSON including graders (types, weights, minimum and drop counts), grade cutoffs, grace periods, minimum grade credit, course assignment lists, default grade designations, credit eligibility, and proctored exam settings URL. Path parameter course_id is required. Supports AI tools or external systems in calculating grades, monitoring credit eligibility, or integrating grading rules into analytics pipelines.
Course Grading
v1
/contentstore/v1/course_grading/{course_id}
POST
Updates the grading configuration for a given course. Accepts JSON body with graders, grade cutoffs, grace periods, minimum grade credit, and credit course flag. Returns updated grading configuration. Path parameter course_id is required. Useful for AI or external tools automating course grading rules, bulk updates, or synchronizing grading policies across multiple courses.
PR:#39227 — feat: read and partially update course grading through authoring v3 State: open
What this does
This PR standardizes the Course Grading functional area (#39065, umbrella #38137) on the existing authoring v3 grading resource, /api/authoring/v3/courses/{course_key}/grading/, following the API standardization ADRs docs/decisions/0025 to 0038 and OEP-69.
ADRs applied
10 of 16 decisions applied on this pass; every one left open carries its reason.
0025 serializers
0026 permissions
0027 schema / docs
0028 viewsets
0030 GET idempotence
0034 authentication
0036 nested JSON
0037 versioning
0038 URL structure
OEP-69 conventions
0029 errors — envelope on every 400/401/403/404 this view raises. Open, unchanged from master and pinned by tests to flip when fixed: (1) DRF's malformed-JSON 400, 405, 406 and 415 come back typed internal because edx-drf-extensions does not catalogue them; (2) a malformed course key gets the routing-level HTML 404 on the conforming address, and on the legacy address for keys with no separator. No catch-all exists for authoring v3 yet.
0031 merged endpoints — n/a: no action family; the three writes are versions of one operation, which 0037 governs
0032 pagination — n/a: singleton resource, no list
0033 filtering — n/a: no list; the one view parameter is serializer-validated and documented
OEP-66 queryset scoping — n/a: not a list endpoint
The evidence for each tick is the compliance matrix in the PR body; nothing is ticked without a named test or gate line.
Backward compatibility
Versions gate: PASS. v1 and v0 differ from master only in docstrings. Protected: the grading model, the legacy Studio handler, utils.py, cms/urls.py, the authz app, view_utils.py, views/permissions.py.
URLs gate: PASS. No address or URL name changed. The gate does not see HTTP methods, so the added GET was probed by request: the legacy .json suffix address now answers GET and PATCH like the plain address, where master answered 405 and 500.
v1, v0 and course-settings tests untouched and green.
PATCH replay against master. 520 distinct bodies were each sent to master and to this branch, on both v3 addresses and both sides of MATERIAL_RECOMPUTE_ONLY:
215 bodies master accepted gave identical response bytes, stored policy, signals, events and credit task;
294 bodies that made master return 500 now return a 400 validation envelope with nothing written;
11 partial bodies that made master return 500 now succeed and change only the fields sent;
v1 GET/POST /api/contentstore/v1/course_grading/{course_id} and v0 POST /api/contentstore/v0/grading/{course_id} are deprecated: true in the CMS schema, and their docstrings name the v3 successor. No runtime header (frozen routes). The DEPR record is an entry on #39128, whose body says further areas are appended there; the entry is this comment. Window, per #39128: the marking ships in the next named release after Verawood, and v1 and v0 stay mounted until one named release after that.
Follow-ups
frontend-app-authoring: read v3 ?view=full instead of v1 GET, and write to the conforming v3 address.
Grader weights are truncated on output in v0, v1 and v3: 0.29 is shown as 28, so an MFE save stores 0.28.
v0 and v1: an integer wider than 8 bytes in a grading body returns 500 and leaves the course unreadable until the process restarts. v3 now refuses these with 400.
edx-drf-extensions:
catalogue ParseError, MethodNotAllowed, NotAcceptable and UnsupportedMediaType;
flatten_detail puts a Python repr into detail for every field-keyed 400.
openedx-authz: the first permission check on a fresh database writes the policy-version row, including during reads.
Authoring v3: a JSON catch-all for unmatched keys (the HTML 404 above).
Activity
taimoor-ahmed-1 commentedon Oct 13, 2026
Standardization PR open: #39227
PR: #39227 — feat: read and partially update course grading through authoring v3
State: open
What this does
This PR standardizes the Course Grading functional area (#39065, umbrella #38137) on the existing authoring v3 grading resource,
/api/authoring/v3/courses/{course_key}/grading/, following the API standardization ADRsdocs/decisions/0025to0038and OEP-69.ADRs applied
10 of 16 decisions applied on this pass; every one left open carries its reason.
internalbecause edx-drf-extensions does not catalogue them; (2) a malformed course key gets the routing-level HTML 404 on the conforming address, and on the legacy address for keys with no separator. No catch-all exists for authoring v3 yet.viewparameter is serializer-validated and documentedThe evidence for each tick is the compliance matrix in the PR body; nothing is ticked without a named test or gate line.
Backward compatibility
utils.py,cms/urls.py, the authz app,view_utils.py,views/permissions.py..jsonsuffix address now answers GET and PATCH like the plain address, where master answered 405 and 500.MATERIAL_RECOMPUTE_ONLY:Gates
Deprecations
v1
GET/POST /api/contentstore/v1/course_grading/{course_id}and v0POST /api/contentstore/v0/grading/{course_id}aredeprecated: truein the CMS schema, and their docstrings name the v3 successor. No runtime header (frozen routes). The DEPR record is an entry on #39128, whose body says further areas are appended there; the entry is this comment. Window, per #39128: the marking ships in the next named release after Verawood, and v1 and v0 stay mounted until one named release after that.Follow-ups
?view=fullinstead of v1 GET, and write to the conforming v3 address.ParseError,MethodNotAllowed,NotAcceptableandUnsupportedMediaType;flatten_detailputs a Python repr intodetailfor every field-keyed 400.🤖 Generated with Claude Code
Review on the PR, please — this issue stays open until it merges.