Skip to main content
POST
/
flink_jobs
/
pyflink
Deploy Pyflink Job
curl --request POST \
  --url https://api.streamkap.com/flink_jobs/pyflink \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'python_file=<string>'
{
  "_id": "<string>",
  "name": "<string>",
  "job_type": "pyflink",
  "status": "CREATED",
  "flink_job_name": "<string>",
  "flink_job_id": "<string>",
  "parallelism": 1,
  "created_by": "<string>",
  "created_timestamp": "2023-11-07T05:31:56Z",
  "updated_timestamp": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
python_file
string | null

Response

Successful Response

_id
string
required
name
string
required
job_type
enum<string>
required
Available options:
pyflink,
jar
status
enum<string>
required
Available options:
CREATED,
DEPLOYING,
RUNNING,
FAILED,
CANCELLED,
FINISHED
parallelism
integer
default:1
created_by
string | null
created_timestamp
string<date-time> | null
updated_timestamp
string<date-time> | null