How do I specify in the API that I want a mirrored repo to be created inside a local copy of the organisation in which the repo is remotely?
I looked through the API docs and don’t think there’s a way to create a mirror via the API. You could look into the ‘private’ API which is what the UI uses to create mirrors or manually crafting SQL queries, but it’s liable to change between versions.
I couldn’t find a specific feature request for your use case, so feel free to create one on GitHub.
Slightly related feature request: Update "Clone From URL" mirror_address via API · Issue #16005 · go-gitea/gitea · GitHub
Slightly related forum post: How to deactivate the mirroring of a repository with the api (same answer as above unfortunately)
Thanks for youre response.
I’ve submitted an NFR: