Get Branch Protection information

Gitea: 1.21.4

I am attempting to use the /repos/{owner}/{repo}/branch_protections API.
I have tried every combination of owner and repo that I can think of, but it is still not working.

Passing user id for {owner} yields this response, so passing in the username makes sense for {owner}.
{“errors”:[“user redirect does not exist [name: 1]”],“message”:“GetUserByName”,“url”:“https://127.0.0.1:3000/api/swagger”}

But passing in for {repo};
The repo ID
The repo name
The organization and repo name with %2F in the middle

all yield the same response of:
{“errors”:null,“message”:“The target couldn’t be found.”,“url”:“https://127.0.0.1:3000/api/swagger”}

What is the format of {repo} supposed to be?

Solved.

{owner} is actually the name of the organization the repo is under, not a user who is in the Owners team.