api/v1/accounts/1/sis_imports groups

Jump to solution
RobertSeletsky
Community Explorer

Via SIS Import see successfully created new group

CSV File:

group_id,group_category_id,name,status
G987654,GC10,Group1,available

However, when use (or within server URL)

curl https://<canvas>/api/v1/groups/G987654 \
     -H 'Authorization: Bearer <token>'

  Get error: "The specified resource does not exist."

0 Likes
1 Solution
robotcars
Community Champion

I think you need sis_group_id https://canvas.instructure.com/doc/api/file.sis_csv.html

/api/v1/groups/sis_group_id:G987654

As for finding it in the UI, without it being attached to a course, I do not know. The docs state it will be attached to the root_account, which is your instance.

The course identifier from courses.csv, if none is specified the group will be attached to the root account.

https://canvas.instructure.com/doc/api/file.sis_csv.html

Maybe ...instructure.com/groups/sis_group_id:G987654

View solution in original post