Gitlab API Project Search Exact Match

I am using the gitlab API to bulk create projects and add ldap users to those projects. Before creating a new project I check to see if it already exists, so I do a search for project:
e.g. /api/v3/projects/?search=foobar-13
If I get no results back I create the new project foobar-13 and if I do get a result back I use the ID of the found project to add the user to that project.
However searching for foobar-13 also returns projects foobar-131, foobar-130 etc
So I end up adding users to the project foobar-131 rather than foobar-13 - a bad thing.
So my question is about whether it is possible to search via the API for an exact match rather than a fuzzy search?
Thanks in advance,
jonny

1 Like

Same problem, any answers ?

This is a handy feature to have. I’m surprised it has been 6 years since this was raised and we still don’t have it :slight_smile:

1 Like