How to link an Issue and a Pull Request via the API?

I have seen the Link Relations docs on the PR reference. And I have seen how to manually link them. But I can’t find a way to create them via the API.

Is there a way to do this?