nextcloud-API
nextcloud-API copied to clipboard
Documentation on group folders
Hi, I might be stupid but i can create users and groups just fine but I can't do that with group folders. Even using parts of the test file for group folders I still get an AssertionError message (I also tried using the url with "/apps/groupfolders/folders" and got an error event not found ).
I have no clue where to ask for help on this and if I missed a documentation on this or if simply group folders are not working anymore (or if im just dumb).
Thanks in advance and sorry if it is the wrong place ! :)
PS: here is the code that i used from the test file
create new group folder folder_mount_point = "test_group_folders_" res = nxc.create_group_folder(folder_mount_point) assert res.is_ok group_folder_id = res.data['id']
get all group folders and check if just created folder is in the list res = nxc.get_group_folders() assert res.is_ok group_folders = res.data assert str(group_folder_id) in group_folders assert group_folders[str(group_folder_id)]['mount_point'] == folder_mount_point
retrieve single folder res = nxc.get_group_folder(group_folder_id) assert res.is_ok assert str(res.data['id']) == str(group_folder_id) assert res.data['mount_point'] == folder_mount_point
rename group folder new_folder_mount_point = folder_mount_point + '_new' res = nxc.rename_group_folder(group_folder_id, new_folder_mount_point) assert res.is_ok and res.data is True check if name was changed res = nxc.get_group_folder(group_folder_id) assert res.data['mount_point'] == new_folder_mount_point