by Jake Dallimore.
Hi Youness,
That most likely comes from the fact that you're missing the relevant OAuth Authorization headers in the request. It could be thrown by this line (hard to say from the limited information however): https://github.com/moodle/moodle/blob/master/mod/lti/service/gradebookservices/classes/local/resources/lineitems.php#L87
That most likely comes from the fact that you're missing the relevant OAuth Authorization headers in the request. It could be thrown by this line (hard to say from the limited information however): https://github.com/moodle/moodle/blob/master/mod/lti/service/gradebookservices/classes/local/resources/lineitems.php#L87
Normally, this is handled by whatever library you're using, but since you're using postman, I'm not sure what you're doing to ensure this is being set/sent properly. I'd recommend making this call from your tool code directly, to guarantee the headers are generated and sent as they would be under normal use.
Cheers,
Jake