Do we have APIs to create new rubric and add rubric to assignment?

Dennis.D.1339
Dennis.D.1339 Posts: 4 🌱
edited February 5 in Development

I did not find the api to create new rubric at https://docs.valence.desire2learn.com/res/assessment.html

Tagged:

Best Answer

  • Janet.W.813
    Janet.W.813 Posts: 79
    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:

    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:

    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