Using milestone_id parameter in project issues

Hello,

I’m having some problems when using milestone_id parameter for querying issues in the API Rest.

https://gitlab.itg.es/api/v4/projects/1234/issues?milestone_id=123

always returns

“error”: “milestone_id does not have a valid value”

On the other hand, if I use

https://gitlab.itg.es/api/v4/projects/1234/issues?milestone=full milestone name

everything works fine.

I have double checked the milestone id and it’s correct.

Any tips?
Thank you very much.

It looks like you are using the wrong url for getting milestone_id, or at least from how I see how the documentation works here: Project milestones API | GitLab

which would suggest your url to be: