Cannot use the LTI1.3 Context ID for a names and roles request.

atlig17
Community Novice

Hi everyone

I am creating an LTI 1.3 Tool that calls Canvas's names and roles service, specifically the following endpoint

/api/lti/course/:course_id/names_and_roles

One would assume that :course_id in this endpoint could mean both Canvas's id for the course as well as the LTI 1.3 context_id that is returned in the request.

However when using the LTI1.3 course id, the request simply returns 404 resource not found.

See here the difference:

Calling with ID = 1. (Canvas course ID)

324202_Canvas_canvasid.png

Calling with the LTI1.3 context id

324284_Canvas_ltiid.png

Is this the intended outcome? Is this a bug?

I don't understand why this wouldn't support the context_id since using Canvas's own id just means more overhead for the developers.

Great thanks if any fellow developer can provide any help.

Regards

Atli Gislason

Labels (1)
0 Likes