Hi Ross,
I tried this again and it's working, however, most of the materials and assignments aren't copying. Below is the command I'm running
gam create course alias NEW name "NEWTEST" teacher [tea...@email.com] status ACTIVE copyfrom 618617423311 copytopics true materialstates all markpublishedasdraft true workstates all individualstudentassignments maptoall markpublishedasdraft true removeduedate true copymaterialsfiles true announcementstates all members all
Below is the output I receive
Getting all Course Announcement IDs that match query (Course Announcement States: DRAFT,PUBLISHED,DELETED) for Course: 618617423311
Got 1 Course Announcement ID that matched query (Course Announcement States: DRAFT,PUBLISHED,DELETED) for Course: 618617423311...
Getting all Course Material IDs that match query (Course Material States: DRAFT,PUBLISHED,DELETED) for Course: 618617423311
Got 94 Course Material IDs that matched query (Course Material States: DRAFT,PUBLISHED,DELETED) for Course: 618617423311...
Course: 618617423311, Course Material ID: 683783137659, Course Material Form: Kickball Ability, Not Copied: Not Copyable
Getting all Course Work IDs that match query (Course Work States: DRAFT,PUBLISHED,DELETED) for Course: 618617423311
Got 390 Course Work IDs that matched query (Course Work States: DRAFT,PUBLISHED,DELETED) for Course: 618617423311...
Course: 618617423311, Course Work ID: 618625918687, Course Material Form: 13 Colonies Test, Not Copied: Not Copyable
Course: 618617423311, Course Work ID: 618625918739, Course Material Form: Biology: Multicellular Organisms/Living Systems, Not Copied: Not Copyable
Course: 618617423311, Course Work ID: 618625918624, Course Material Form: First Colonies Test, Not Copied: Not Copyable
Course: 618617423311, Course Work ID: 618625918660, Course Material Form: Mixtures and Solutions Test, Not Copied: Not Copyable
Course: 618617423311, Course Work ID: 628877073165, Course Material Form: European Explorers Test, Not Copied: Not Copyable
Course: 618617423311, Course Work ID: 657219728896, Course Material Form: Water and Weather Test, Not Copied: Not Copyable
Course: 618617423311, Course Work ID: 656957341529, Course Material Form: Principal's Challenge, Not Copied: Not Copyable
Course: 618617423311, Course Work ID: 650865504841, Course Material Form: Class Job Application, Not Copied: Not Copyable
Course: 618617423311, Course Work ID: 618625918527, Course Material Form: Chapter 2 Test, Not Copied: Not Copyable
Course: 618617423311, Course Work ID: 645263004577, Course Material Form: Figurative Language Test, Not Copied: Not Copyable
Course: 618617423311, Course Work ID: 618625918486, Course Material Form: Chapter 1 Test:, Not Copied: Not Copyable
Course: 618617423311, Course Work ID: 637439294758, Course Material Form: THEME Quiz, Not Copied: Not Copyable
Course: 618617423311, Course Work ID: 634772716193, Course Material Form: Science Test: Solar System, Not Copied: Not Copyable
Course: 618617423311, Course Work ID: 618625918437, Course Material Form: Where the Wild Things Are Quiz, Not Copied: Not Copyable
Course: 618617423311, Course Work ID: 618625918498, Course Material Form: Mystery Picture Multiplication Facts, Not Copied: Not Copyable
Course: 618617423311, Course Work ID: 619565640605, Course Material Form: Class Job Application, Not Copied: Not Copyable
Course: 618617423311, Course Work ID: 618625918309, Course Material Form: Student Interest Form, Not Copied: Not Copyable
Getting all Course Topics for Course: 618617423311
Got 19 Course Topics for Course: 618617423311...
Course Name: NEWTEST, Course: 703818600464, Created
Course: 703818600464, Copy from Course: 618617423311
Course: 703818600464, Add 0 Students
Course: 703818600464, Add 5 Teachers
REDACTED
Course: 703818600464, Course Topic: Music, Added from Course: 618617423311 (1/19)
Course: 703818600464, Course Topic: Science, Added from Course: 618617423311 (2/19)
Course: 703818600464, Course Topic: Community Topics, Added from Course: 618617423311 (3/19)
Course: 703818600464, Course Topic: PE, Added from Course: 618617423311 (4/19)
Course: 703818600464, Course Topic: Digital Citizenship, Added from Course: 618617423311 (5/19)
Course: 703818600464, Course Topic: Computer Science: Coding/Programming, Added from Course: 618617423311 (6/19)
Course: 703818600464, Course Topic: Art, Added from Course: 618617423311 (7/19)
Course: 703818600464, Course Topic: Science, Added from Course: 618617423311 (8/19)
Course: 703818600464, Course Topic: Social Studies, Added from Course: 618617423311 (9/19)
Course: 703818600464, Course Topic: ELA Writing, Added from Course: 618617423311 (10/19)
Course: 703818600464, Course Topic: ELA Newsela/ReadWorks, Added from Course: 618617423311 (11/19)
Course: 703818600464, Course Topic: ELA Guided Reading, Added from Course: 618617423311 (12/19)
Course: 703818600464, Course Topic: ELA Independent Reading, Added from Course: 618617423311 (13/19)
Course: 703818600464, Course Topic: ELA Read Aloud, Added from Course: 618617423311 (14/19)
Course: 703818600464, Course Topic: ELA Digital ELA Journal, Added from Course: 618617423311 (15/19)
Course: 703818600464, Course Topic: Math, Added from Course: 618617423311 (16/19)
Course: 703818600464, Course Topic: Biz Town, Added from Course: 618617423311 (17/19)
Course: 703818600464, Course Topic: Zoom Login, Added from Course: 618617423311 (18/19)
Course: 703818600464, Course Topic: Classwork/Homework, Added from Course: 618617423311 (19/19)
Course: 703818600464, Course Announcement ID: 676399198237, Course Material Drive File: 1QekuQdLhpiNMLqSXxnJUfdoTb4K8g_8k9wb7_R85Ncc, Copied from Course: 618617423311, Course Material Drive File: 1-_GsImKXz6GwgcC_8UHHSfUJu4nRbX_SQ-zaQjk1Vwg
ERROR: 400: invalidArgument - individual_students_options.student_ids: Student ids must be specified if the assignee mode is "INDIVIDUAL_STUDENTS".
It copies about 8 of the materials and none of the assignments. It also doesn't copy the announcements, but that's not really important. I should also mention, the reason I'm trying to use GAM is because the teacher receives a generic error message when trying to copy the class in Google Classroom, so there may be an issue outside of GAM.