Databricks · Arazzo Workflow

Databricks Stage Notebook Then Create and Run a Job

Version 1.0.0

Import a notebook, create a job that runs it, then trigger the first run.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub Artificial IntelligenceAnalyticsApache SparkBig DataCleanroomsCloud ComputingDataData AnalyticsData EngineeringData GovernanceDelta LakeDelta SharingETLIdentity ManagementLakehouseMachine-LearningMLflowModel ServingSecuritySQLUnity CatalogVector SearchVisualizeArazzoWorkflows

Provider

databricks

Workflows

stage-notebook-and-create-job
Import a notebook, wire a job to it, and run it.
Imports the notebook to the target path, creates a job whose notebook task references that path on an existing cluster, then triggers the first run.
3 steps inputs: content, existing_cluster_id, job_name, language, notebook_path, task_key outputs: jobId, notebookPath, runId
1
importNotebook
Import the base64-encoded notebook into the target path, overwriting any existing object.
2
createJob
Create a job whose notebook task runs the freshly imported notebook on the supplied existing cluster.
3
triggerFirstRun
Trigger the first run of the newly created job and capture the run_id.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Databricks Stage Notebook Then Create and Run a Job
  summary: Import a notebook, create a job that runs it, then trigger the first run.
  description: >-
    Ships a new notebook into a Databricks workspace and immediately operationalizes
    it: the base64-encoded notebook is imported to a target path, a job is created
    with a notebook task pointing at that path, and the job is triggered for its
    first run. The imported notebook path flows into the job's task definition and
    the created job_id feeds the run-now request. Every step spells out its request
    inline so the flow can be read and executed without opening the underlying
    OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: jobsApi
  url: ../openapi/databricks-jobs-api-openapi.yml
  type: openapi
- name: workspaceApi
  url: ../openapi/databricks-workspace-api-openapi.yml
  type: openapi
workflows:
- workflowId: stage-notebook-and-create-job
  summary: Import a notebook, wire a job to it, and run it.
  description: >-
    Imports the notebook to the target path, creates a job whose notebook task
    references that path on an existing cluster, then triggers the first run.
  inputs:
    type: object
    required:
    - notebook_path
    - content
    - language
    - existing_cluster_id
    - job_name
    - task_key
    properties:
      notebook_path:
        type: string
        description: The absolute path to import the notebook to and run.
      content:
        type: string
        description: The base64-encoded notebook content.
      language:
        type: string
        description: The notebook language (SCALA, PYTHON, SQL, or R).
      existing_cluster_id:
        type: string
        description: The cluster the job task should run on.
      job_name:
        type: string
        description: The name for the new job.
      task_key:
        type: string
        description: The unique task key within the job.
  steps:
  - stepId: importNotebook
    description: >-
      Import the base64-encoded notebook into the target path, overwriting any
      existing object.
    operationId: importWorkspaceObject
    requestBody:
      contentType: application/json
      payload:
        path: $inputs.notebook_path
        format: SOURCE
        language: $inputs.language
        content: $inputs.content
        overwrite: true
    successCriteria:
    - condition: $statusCode == 200
  - stepId: createJob
    description: >-
      Create a job whose notebook task runs the freshly imported notebook on the
      supplied existing cluster.
    operationId: createJob
    requestBody:
      contentType: application/json
      payload:
        name: $inputs.job_name
        tasks:
        - task_key: $inputs.task_key
          existing_cluster_id: $inputs.existing_cluster_id
          notebook_task:
            notebook_path: $inputs.notebook_path
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      jobId: $response.body#/job_id
  - stepId: triggerFirstRun
    description: >-
      Trigger the first run of the newly created job and capture the run_id.
    operationId: runJobNow
    requestBody:
      contentType: application/json
      payload:
        job_id: $steps.createJob.outputs.jobId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      runId: $response.body#/run_id
  outputs:
    notebookPath: $inputs.notebook_path
    jobId: $steps.createJob.outputs.jobId
    runId: $steps.triggerFirstRun.outputs.runId

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/databricks-stage-notebook-and-create-job-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.