Getting exception while adding assignments

ghanshyamkulkar
Community Member

I'm trying to add the assignment using the API but getting below error,

URL:  POST https://xxx.instructure.com/api/v1/courses/891/assignments/1515/submissions

Invalid submission[submission_type] given. I used the below body,
submission[submission_type]:'online_text_entry'
submission[user_id]:311
submission[body]: "",
 
I'm passing the lifetime access token to this URL, Could you please help me here? GET API is Woking fine.
0 Likes