API - order_by=id for /groups endpoint doesn't work
Summary
I'm trying to get list of groups ordered by ID. Per GitLab API docs I can do it by adding parameter order_by=id to query. But when used I get error: {"error":"order_by does not have a valid value"}
Steps to reproduce
(How one can reproduce the issue - this is very important)
Example Project
N/A
What is the current bug behavior?
When I run:
curl --include --header 'PRIVATE-TOKEN: ...private_token...' 'https://gitlab.com/api/v4/groups?order_by=id'
I will get this error:
{"error":"order_by does not have a valid value"}
What is the expected correct behavior?
API should return list of groups ordered by theirs IDs.
For order_by=name or order_by=path it works correctly.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com (as well).
Results of GitLab environment info
Results of GitLab application Check
Possible fixes
Edited by Richard Bukovansky