Adding a Topic ID to a Google Classroom assignment
问题 I'm trying to create an assignment using Google Apps script and place it under a topic that is also created in the same script. I have no problem creating an assignment when no topicId is specified, but as soon as I try to specify a topicId , I receive the following error when I run the script: API call to classroom.courses.courseWork.create failed with error: Invalid JSON payload received. Unknown name "Test Topic" Here is my code: function makeStuff() { var topic = { name: "Test Topic" };