---
search:
  tags:
    - Flink Jobs
    - POST
seo:
  description: >-
    Deploy a JAR-based Flink job. Reference for the POST /flink_jobs/jar
    endpoint in the Streamkap REST API.
sidebar:
  label: Deploy Jar Job
  badge: POST
title: Deploy Jar Job
type: openapi-operation
---
Deploy a JAR-based Flink job.

Upload a JAR file as multipart and specify main_class + optional args.
Form fields: name, main_class, parallelism (default 1), job_args (JSON string).

`POST /flink_jobs/jar`

**Request body** (`multipart/form-data`, required)

- `jar_file` (string, required)

Request body example:

```json
{
  "jar_file": "string"
}
```

**Responses**

- `200` — Successful Response
- `422` — Validation Error

Response example, 200:

```json
{
  "_id": "string",
  "name": "string",
  "job_type": "pyflink",
  "status": "CREATED",
  "flink_job_name": "string",
  "flink_job_id": "string",
  "parallelism": 1,
  "created_by": "string",
  "created_timestamp": "2019-08-24T14:15:22Z",
  "updated_timestamp": "2019-08-24T14:15:22Z"
}
```
