404 Not found using gitlab API for project paths

Ok. It seems I’ve gotten some stuff working, but I’ve ran into some other issues it seems.

192.168.2.20 - - [19/Aug/2025:15:47:54 +0300] "GET /api/v4/user HTTP/1.1" 200 980 "-" "python-gitlab/6.2.0" "-"
192.168.2.20 - - [19/Aug/2025:15:47:55 +0300] "GET /api/v4/projects/group1%2Fexample-project HTTP/1.1" 200 4438 "-" "python-gitlab/6.2.0" "-"
192.168.2.20 - - [19/Aug/2025:15:47:55 +0300] "GET /api/v4/projects/381/variables?per_page=100 HTTP/1.1" 200 2 "-" "python-gitlab/6.2.0" "-"
192.168.2.20 - - [19/Aug/2025:15:47:55 +0300] "GET /api/v4/projects/381/variables?per_page=100 HTTP/1.1" 200 2 "-" "python-gitlab/6.2.0" "-"
192.168.2.20 - - [19/Aug/2025:15:47:55 +0300] "POST /api/v4/projects/381/variables HTTP/1.1" 400 36 "-" "python-gitlab/6.2.0" "-"
192.168.2.20 - - [19/Aug/2025:15:47:55 +0300] "DELETE /api/v4/projects/381/variables/test?filter%5Benvironment_scope%5D=%2A HTTP/1.1" 404 36 "-" "python-gitlab/6.2.0" "-"

It seems there is somekind of an issue maybe with the library? It gets a 400 error when creating a variable with a name already present. And then it deletes it, even though i have purge: false on the ansible module.