Hi, I had a question about the API and if it curre...
# prefect-cloud
m
Hi, I had a question about the API and if it currently allows flow cancellations? I don't see anything in the documentation about this
c
The API does support run cancellation, it's just not exposed explicitly. The short version is that to cancel a flow run you need to set the flow run to a
Cancelling
state; this can be done via the
/set_state
API route. A few other options are listed here: https://docs.prefect.io/latest/concepts/flows/#canceling-a-flow-run
thank you 1
m
Thank you!
🫡 1