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

Either upload a Python file as multipart OR provide inline python_code as a form field.
Form fields: name, parallelism (default 1), job_args (JSON string), python_code (alternative to file).

`POST /flink_jobs/pyflink`

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

- `python_file` (string | null)

Request body example:

```json
{
  "python_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"
}
```
