---
title: "Cancel Flink Job"
method: POST
path: "/flink_jobs/{job_id}/cancel"
tags: ["Flink Jobs"]
---

# Cancel Flink Job

`POST /flink_jobs/{job_id}/cancel`

## Request

- Base URL: `https://api.streamkap.com`
- URL: `https://api.streamkap.com/flink_jobs/{job_id}/cancel`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/streamkap/apis/streamkap-rest-api/docs/flink_jobs/:job_id/cancel/post.ts> (a function with typed inputs; its response is checked against the schema)

Cancel a running Flink job.

## Path parameters

- `job_id` string, required

## Response `200`

Successful Response

- AppModelsApiFlinkJobsApiModelsFlinkJobResponse
  - `_id` string, required
  - `name` string, required
  - `job_type` 'pyflink' | 'jar', required
  - `status` 'CREATED' | 'DEPLOYING' | 'RUNNING' | 'CANCELLING' | 'CANCELLED' | 'FAILED' | 'FINISHED', required
  - `flink_job_name` string, required
  - `flink_job_id` string, nullable
  - `parallelism` integer
  - `created_by` string, nullable
  - `created_timestamp` string, date-time, nullable
  - `updated_timestamp` string, date-time, nullable

## Other responses

- `422`: Validation Error

## Changes

- **2026-08-04** `2a3df099f4a9`: 1 warning
  - added the new `CANCELLING` enum value to the `status` response property for the response status `200`

[Operation history](https://skmtc.dev/streamkap/apis/streamkap-rest-api/changes/flink_jobs/:job_id/cancel/post.md)

---

[API](https://skmtc.dev/streamkap/apis/streamkap-rest-api.md) - [All operations](https://skmtc.dev/streamkap/apis/streamkap-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/streamkap/apis/streamkap-rest-api/revisions/56dda39bb53c?raw)
