Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 3
Message 1 of 3

Fetching a single release

Solved! Go to Solution.

I am trying to fetch a single release. I can fetch all releases and I can fetch the last one, so in principle I know what to do.


According to the documentation this is what one needs to do:


GET /repos/:owner/:repo/releases/:release_id


The problem is that the term `release_id` is not defined anywhere.


I've tried the tag name, the hash and (desperation) the node_id, and of course a running number as in


GET repos/aplteam/TestRepo/releases/3


I always get a 404.

2 Replies
Community Manager
Message 2 of 3

Re: Fetching a single release

Hi @aplteam,


When you list all releases, one of the properties that should get returned is an id for each release. Out of curiosity, are you able to list all releases to find the id for the release that you want and then use the individual release endpoint to then get that release?



Copilot Lvl 3
Message 3 of 3

Re: Fetching a single release

Hello that-pat,


Yes, that works. I somehow managed to overlook "id".


However, if the documentation would be consistent with the data provided (read using "id" rather "release_id") that I would not have fallen into it.