const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
materialId: '<string>',
textToGrade: '<string>',
userId: '<string>',
model: '<string>',
rubric: {criteria: [{title: '<string>', pointsPossible: 123, description: '<string>'}]},
rubricTemplateId: '<string>',
assignmentId: '<string>',
studentIdentifier: '<string>'
})
};
fetch('https://studyfetchapi.com/api/v1/assignment-grader/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));