Skip to main content
POST
/
api
/
dataframer
/
runs
/
{run_id}
/
cancel
Python
import os
from dataframer import Dataframer

client = Dataframer(
    api_key=os.environ.get("DATAFRAMER_API_KEY"),  # This is the default and can be omitted
)
client.dataframer.runs.cancel(
    "run_id",
)
{
  "error": "Cannot cancel job. Only RUNNING or PENDING jobs can be canceled."
}

Authorizations

Authorization
string
header
required

API Key authentication. Format: "Bearer YOUR_API_KEY"

Path Parameters

run_id
string
required

Unique identifier of the run to cancel

Response

Run canceled successfully. If any samples were already completed, they are preserved.