Skip to main content
POST
/
api
/
v1
/
assignment-grader
/
rubric-templates
Create a new rubric template
const options = {
  method: 'POST',
  headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
  body: JSON.stringify({
    name: '<string>',
    criteria: [{title: '<string>', pointsPossible: 123, description: '<string>'}],
    description: '<string>'
  })
};

fetch('https://studyfetchapi.com/api/v1/assignment-grader/rubric-templates', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "_id": "<string>",
  "name": "<string>",
  "criteria": [
    {
      "title": "<string>",
      "pointsPossible": 123,
      "description": "<string>"
    }
  ],
  "organizationId": "<string>",
  "createdBy": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "description": "<string>"
}

Authorizations

x-api-key
string
header
required

API Key for authentication

Body

application/json
name
string
required

Name of the rubric template

criteria
object[]
required

Grading criteria

description
string

Description of the rubric template

Response

201 - application/json

Rubric template created

_id
string
required

Template ID

name
string
required

Template name

criteria
object[]
required

Grading criteria

organizationId
string
required

Organization ID

createdBy
string
required

Created by user ID

createdAt
string<date-time>
required

Creation timestamp

updatedAt
string<date-time>
required

Update timestamp

description
string

Template description