Using the API to save integration_data for an assignment group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2018
06:13 PM
Thanks to a previous question I was able to update an assignments integration_data using :
assignment[integration_data]={"id":1XXXX,"heading":"My Heading"}
Now I need to do the same for an assignment group but none of the following variations have worked :
assignment_group[integration_data]={"id":1XXXX,"heading":"My Heading"}
assignment_groups[integration_data]={"id":1XXXX,"heading":"My Heading"}
integration_data={"id":1XXXX,"heading":"My Heading"}
I'm hoping someone here can point me in the right direction.
Solved! Go to Solution.
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2018
05:30 PM
If its as parameters, break the data bit out into the parameters.
This worked for me:
curl -k $server/api/v1/courses/$course_id/assignment_groups/$assgrp_id \
-X PUT \
-F "integration_data[id]=123" \
-F "integration_data[heading]=Some Heading" \
-H "Authorization: Bearer $token"