Fetching a single release

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.

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?

Thanks!

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.

Thanks!

1 Like