It seems that for GET we need to pass the file/dir in the URL param "file" but when creating a share it's "path".
I suggest to always use "path" for consistency.