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.
https://app.prefect.cloud/api/docs?deviceId=e88f7108-4f0b-4780-80e6-f531d41dd2b5#tag/Flow-Runs

Is there a work around for this?