course_id,user_id,role,section_id,status
ABC.2015.FALL.123,111,student,ABC.2015.FALL.123,completed
ABC.2015.FALL.123,222,student,ABC.2015.FALL.123,deleted
We want to replace that functionality with REST commands. An example of a command would be:
https://.......instructure...../api/v1/courses/ABC.2015.FALL.123/enrollments?
enrollment[user_id]=111
&enrollment[type]=StudentEnrollment
&enrollment[course_section_id]=ABC.2015.FALL.123
&enrollment[enrollment_state]=active
&access_token=XYZ
However that call (executed in Postman (Chrome) rest client) fails with an error - "The specified resource does not exist."
Is it because of the dots in ABC.2015.FALL.123?
I tried escape character %2E, but to no avail.
What am I doing wrong?
Thank you very much,
--
---
You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Cache-Control →no-cache
Connection →keep-alive
Content-Encoding →gzip
Content-Length →104
Content-Type →application/json; charset=utf-8
Date →Thu, 23 Jun 2016 21:16:57 GMT
P3P →CP="None, see http://www.instructure.com/privacy-policy"
Server →Apache
Status →404 Not Found
Vary →Accept-Encoding
X-Canvas-Meta →q=976;at=50000000166733;dk=170000000000016;a=85852;g=dA6P7n9KxG6piFzFBU9B6tIDyGGaFu2xidZ90AAj;s=5;c=cluster5;z=us-east-1c;b=1195892;m=1195892;u=0.05;y=0.00;d=0.04;
X-Canvas-User-Id →50000003418119
X-Content-Type-Options →nosniff
X-Rate-Limit-Remaining →700.0
X-Request-Context-Id →aa419be2-126b-47cc-9fb2-1b574e212c90
X-Request-Cost →0.09057744500001136
X-Request-Processor →a023dd3
X-Robots-Tag →none
X-Runtime →0.116450
X-Session-Id →78a92b21ba9948791b490c3ba335d784
X-UA-Compatible →IE=Edge,chrome=1
X-XSS-Protection →1; mode=block
When I execute the URL with GET, I get enrolled students, when I execute it wit POST I get "The specified resource does not exist." in the body and status 404 Not Found.
Thanks again for your help.
--
---
You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to a topic in the Google Groups "Canvas LMS Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/canvas-lms-users/O-tgES4IxZk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to canvas-lms-users+unsubscribe@googlegroups.com.
--
---
You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-users+unsubscribe@googlegroups.com.