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

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
{
  "_id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "criteria": [
    {
      "title": "<string>",
      "description": "<string>",
      "pointsPossible": 123
    }
  ],
  "organizationId": "<string>",
  "createdBy": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

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