AnsweredAssumed Answered

Post request Canvas calendar API error

Question asked by mille tarp on Jan 6, 2019
Latest reply on Jan 7, 2019 by mille tarp

Hi, i am trying to create a calender event through postman/curls. 

I keep getting 404 "message": "The specified resource does not exist." error. 

 

The code I am using is: 

 

curl -X POST \
https://ltu.instructure.com/api/v1/calendar_events \
-H 'Authorization: Bearer <token>' \
-H 'Postman-Token: <token>' \
-H 'cache-control: no-cache' \
-H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
-F 'calendar_event[context_code]=test' \
-F 'calendar_event[title]=test' \
-F 'calendar_event[start_at]=2019-01-14' \
-F 'calendar_event[end_at]=2019-01-15'

 

Any thoughts why I might get this? a simple GET and PUT request are working fine, 

 

 BR

Mille

Outcomes