Killing long running endpoint

Hiiii
is there a way to kill a long running endpoint ? (restful api)

Ok so apparently i can get the right runspace name by exploring Dashboardservice.endpointservice.restendpoints and fetch the name property …
if i hit my pseudo long running rout (actually it’s juste a start-sleep 120 … ) and do a get-runspace i see there is a new runspace with the name of the runspace … but i launch the route twice, i get 2 runspaces wit the same name so, i dont know wich one is wich …

Maybe what i’m trying to do is a bad idea … dunno …
context: i created a route with a long running task … with a mecanism where you can get the status of the “job” if you call a /status route … i wanted to create a /cancel route …