Using the API to save integration_data for an assignment group

Jump to solution
Community Participant

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.

Labels (1)
1 Solution
Community Champion

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"

View solution in original post