Gitlab Trigger Api - trigger a tagged pipeline


I’m wanting to make a API call to trigger a pipeline for a repo. In the documentation it shows the variable REF_NAME , where you can use the ‘master’ or whatever branch you want to run via the API Call.

Problem is this, I want to trigger a pipeline for a tag. Ie, I’ve tagged the branch as v0.2.1 and I want to be able to call that specific pipeline via api call in the future.

When I update the REF_NAME to v0.2.1 and make the request, the response comes back with 400.

Can you even run a tagged pipeline via api call?