---
title: "Cancel Experiment"
method: POST
path: "/api/v1/experiments/{xid}/cancel"
tags: ["krun"]
---

# Cancel Experiment

`POST /api/v1/experiments/{xid}/cancel`

## Path parameters

- `xid` string, required

## Response `200`

Successful Response

- CancelExperimentResponse
  - `success` boolean, required
  - `message` string, required
  - `xid` string, required
  - `killed` string[], required
  - `errors` CancelJobError[], nullable
    - `job` string, required
    - `error` string, required

## Changes

- **2026-09-24** `4087cc7a74aa` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/trajectory/apis/trajectory-api/changes/api/v1/experiments/:xid/cancel/post.md)

---

[API](https://skmtc.dev/trajectory/apis/trajectory-api.md) · [All operations](https://skmtc.dev/trajectory/apis/trajectory-api/llms.txt) · [OpenAPI document](https://skmtc.dev/trajectory/apis/trajectory-api/revisions/8331f8435ce8?raw)
