Do we have APIs to create new rubric and add rubric to assignment?
I did not find the api to create new rubric at https://docs.valence.desire2learn.com/res/assessment.html
Best Answer
-
Hi @Dennis.D.1339,
Based on what I'm seeing in our API Documentation (which you referenced), I don't think it's possible to create a Rubric via the API. I believe it's only possible to retrieve and update assessments. Below is the only PUT command available for rubric assessment:
PUT /d2l/api/le/(version)/(orgUnitId)/assessment
Update an assessment in an org unit.
Parameters:
- version (D2LVERSION) – API version.
- orgUnitId (D2LID) – Org unit ID.
Query Parameters:
- assessmentType (ASSESSMENT_T) – Assessment type.
- objectType (EVAL_T) – Type name for object associated with the assessment.
- objectId (D2LID) – Object ID.
- userId (D2LID) – User for whom the assessment applies.
Status Codes:
- 200 OK – Action successful.
- 403 Forbidden – Not permitted to view matched rubric.
- 404 Not Found – No matching rubrics found.
- 429 Too Many Requests – API call-rate limit exceeded.
API Versions:
- unstable – Route first appears in LE v10.5.2.
Input. You must provide a query parameter value for: a particular object type name (for example, Discussion); the identifier for that object; an assessment type; and the user ID for the user in question. You must also provide a
RubricAssessment
for the new assessment for the user.Return. This action returns the updated value of the assessment in a
RubricAssessment
JSON structure.Hope that helps!
Janet