AnsweredAssumed Answered

REST route for retrieving assignments not working 

Question asked by 3PL Lego on Oct 31, 2016
Latest reply on Nov 4, 2016 by Danny Wahl

Hi Canvas Team,@

 

We are receiving following values in LTI launch

LTI Launch Parameter

context_id:"cd91112d77923f3ff1af3504a1fc171bc3b58179"

custom_canvas_course_id:"2040788"

 

When we use the above-mentioned ids to retrieve assignments for the course we experiencing 404 Not found from our REST call. the Request and Response details are below

Request-01

GET https://canvas.instructure.com/api/v1/courses/cd91112d77923f3ff1af3504a1fc171bc3b58179/assignments

Content-Type : application/x-www-form-urlencoded

Authorization : Valid Bearer Token

Response-01

{

  "errors": [

    {

      "message": "The specified resource does not exist."

    }

  ],

  "error_report_id": 73468844

}

 

Request-02

GEThttps://canvas.instructure.com/api/v1/courses/2040788/assignments

Content-Type : application/x-www-form-urlencoded

Authorization : Valid Bearer Token

Response-02

{

  "errors": [

    {

      "message": "The specified resource does not exist."

    }

  ],

  "error_report_id": 73468941

}

 

According to LTI Launch Parameters: LTI from scratch (ruby) context_id is the course id right?

But when we use "10000002040788" as for course id we getting the expected output.

How could we determine the following value from LTI launch?

 

Please help us on this.

 

Kind regards,

Gnanahulath

Outcomes