Open
Description
What's the problem this feature will solve?
We've had several requests for an API that would let users perform various maintainer actions only possible via the web UI right now:
- Deleting releases/files (JSON API for deleting releases/files #12934)
- Yanking releases
- Generating API tokens (API feature to request new project-scoped upload API token #6396)
- Regenerating/invalidating API tokens (Mechanism to regenerate an API token #12765)
- Configuring trusted publishers (https://github.com/pypi/pypi-oidc-private-beta-community/issues/34) (Allow configuring of trusted publisher through an API (or other bulk mechanism) #14456)
Describe the solution you'd like
Before attempting to implement any of them, we should figure out how we would generally want to expose these types of APIs to maintainers, the API format, authentication mechanism, etc.