Want to LIST REPOSITORY COMMITS, restricted to a directory

I’m working in a monorepo, with many projects in directories. Using the REST API (via the python gitlab library) I want to generate release notes restricted to changes in one or more directories.

I can successfully get the commits between two two dates, but when I try to use the path attribute, it makes no difference. There’s no documentation about what path does - this was a shot in the dark.

I can do this locally, using git log path/to/directory, but of course that’s using local repo information. Ideally, I’d like to do this in CI, possibly querying other repositories (yeah, kind of weird), so using the CLI is less than attractive.

Thanks in advance!