Error while creating line items

npastor
Community Member

Hi there, I've been trying to send some assignments to the canvas through lti 1.3 but I'm getting an error 422. 
After reading the Documentation i made this approach but I'm not sure what i'm doing wrong. 
I would appreciate if you could correct me, or redirect me to the correct documentation. 

MY REQUEST

Method: post

url:'https://wwnorton.instructure.com/api/lti/courses/:CourseId/line_items'

headers

Authorization: `Bearer ${a}`,
Accept: 'application/json',
'Content-Type': 'application/json',
 
 
 
 
Body (This body is going signed as JWT )
i tried couple of differents formats that I found on canvas doc, but without success, and then i formatted as IMS standard. 
canvasObj.png

 
 
 
0 Likes