Skip to main content
POST
/
jobs
/
{jobId}
/
executions
Create job execution
curl --request POST \
  --url https://api.blaxel.ai/v0/jobs/{jobId}/executions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "executionId": "<string>",
  "id": "<string>",
  "jobId": "<string>",
  "tasks": [
    {}
  ],
  "workspaceId": "<string>"
}'
{
  "metadata": {
    "cluster": "<string>",
    "completedAt": "<string>",
    "createdAt": "<string>",
    "deletedAt": "<string>",
    "expiredAt": "<string>",
    "id": "<string>",
    "job": "<string>",
    "startedAt": "<string>",
    "updatedAt": "<string>",
    "workspace": "<string>"
  },
  "spec": {
    "parallelism": 123,
    "tasks": [
      {
        "conditions": [
          {
            "executionReason": "<string>",
            "message": "<string>",
            "reason": "<string>",
            "severity": "<string>",
            "state": "<string>",
            "type": "<string>"
          }
        ],
        "metadata": {
          "completedAt": "<string>",
          "createdAt": "<string>",
          "name": "<string>",
          "scheduledAt": "<string>",
          "startedAt": "<string>",
          "updatedAt": "<string>"
        },
        "spec": {
          "maxRetries": 123,
          "timeout": "<string>"
        },
        "status": "<string>"
      }
    ],
    "timeout": 123
  },
  "stats": {
    "cancelled": 123,
    "failure": 123,
    "retried": 123,
    "running": 123,
    "success": 123,
    "total": 123
  },
  "status": "<string>",
  "tasks": [
    {
      "conditions": [
        {
          "executionReason": "<string>",
          "message": "<string>",
          "reason": "<string>",
          "severity": "<string>",
          "state": "<string>",
          "type": "<string>"
        }
      ],
      "metadata": {
        "completedAt": "<string>",
        "createdAt": "<string>",
        "name": "<string>",
        "scheduledAt": "<string>",
        "startedAt": "<string>",
        "updatedAt": "<string>"
      },
      "spec": {
        "maxRetries": 123,
        "timeout": "<string>"
      },
      "status": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

jobId
string
required

Name of the job

Body

application/json

Request to create a job execution

executionId
string

Execution ID (optional, will be generated if not provided)

id
string

Unique message ID

jobId
string

Job ID

tasks
object[]

Array of task parameters for parallel execution

workspaceId
string

Workspace ID

Response

successful operation

Job execution

metadata
object

Job execution metadata

spec
object

Job execution specification

stats
object

Job execution statistics

status
string

Execution status

tasks
object[]

List of execution tasks