API for cancelling a flow run

I’ve read the api docs and can’t seem to find a way to cancel a run using the API.
I’d ideally like to be able to cancel just like using the cancel button in Prefect Flow Run Page on the top right, but with the API.

Is there a work around for this?