Quantcast
Channel: Web services
Viewing all articles
Browse latest Browse all 2361

Update an assignment using web services API

$
0
0
by Abhishek Malik.  

I am trying to get contents of an assignment, change it and upload it again on the server using web services API.

I got the assignment content using:

"https://mymoodlesite.com/webservice/rest/server.php?wsfunction=mod_assign_get_assignments&wstoken=token&moodlewsrestformat=json"

and edited the contents(to be specific 'intro' field of the assignment).

I need help in uploading my changes to the server. Couldn't find any web-services function for this. Seems like only way is either defining a manual web services function or accessing the database somehow and edit the entry there. Both seem to be very complicated. Any help will be appreciated.



Viewing all articles
Browse latest Browse all 2361

Trending Articles