modrinth / code

The Modrinth monorepo containing all code which powers Modrinth!
https://modrinth.com
Other
984 stars 187 forks source link

An authorized API endpoint to list "unlisted" version as a project author #2903

Open VidTu opened 2 weeks ago

VidTu commented 2 weeks ago

Please confirm the following.

What parts of Modrinth is your feature request related too?

API

Is your suggested feature related to a problem? Please describe.

As a project owner, it is not possible (I haven't found a way) to list all versions, including drafts and unlisted ones.

Describe the solution you'd like

An API endpoint or an additional query parameter to /project/<project_id>/version endpoint for the project owner to list all versions, not only "listed" versions.

Describe alternatives you've considered

  1. A separate endpoint to list only draft/unlisted versions.
  2. Not using non-public versions at all.

Additional context

This should probably require Authorization and access to "Read Versions" scope. That way, "unlisted" versions will be truly unlisted for the public.