<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to sending parameters from http request to in job running notebook in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/how-to-sending-parameters-from-http-request-to-in-job-running/m-p/131642#M4009</link>
    <description>&lt;P&gt;I've try to trigger job running via n8n workflow, which can command to make notebook running properly.&lt;/P&gt;&lt;P&gt;BUT another bullet to achieve is I have to send some data to that job to be rub as well, i googled it and can't find solutions anywhere. My setup was&lt;BR /&gt;&lt;BR /&gt;Method : POST&lt;BR /&gt;URL :&amp;nbsp;&lt;A href="https://abcd.databricks.com/api/2.2/jobs/run-now" target="_blank"&gt;https://abcd.databricks.com/api/2.2/jobs/run-now&lt;/A&gt;&lt;BR /&gt;json attached to request :&lt;BR /&gt;{&lt;BR /&gt;"job_id" : "569943055844936",&lt;BR /&gt;"job_parameters": {&lt;BR /&gt;"param1": "string1",&lt;BR /&gt;"param2": "string2"&lt;BR /&gt;},&lt;BR /&gt;"notebook_params": {&lt;BR /&gt;"input_path": "dbfs:/mnt/data/train.csv",&lt;BR /&gt;"num_epochs": "20"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In Python Notebook&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; params &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; dbutils.widgets.&lt;/SPAN&gt;&lt;SPAN&gt;getAll&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;(params)&lt;BR /&gt;&lt;/SPAN&gt;it return nothing&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 11 Sep 2025 11:15:29 GMT</pubDate>
    <dc:creator>AmpolJon</dc:creator>
    <dc:date>2025-09-11T11:15:29Z</dc:date>
    <item>
      <title>How to sending parameters from http request to in job running notebook</title>
      <link>https://community.databricks.com/t5/administration-architecture/how-to-sending-parameters-from-http-request-to-in-job-running/m-p/131642#M4009</link>
      <description>&lt;P&gt;I've try to trigger job running via n8n workflow, which can command to make notebook running properly.&lt;/P&gt;&lt;P&gt;BUT another bullet to achieve is I have to send some data to that job to be rub as well, i googled it and can't find solutions anywhere. My setup was&lt;BR /&gt;&lt;BR /&gt;Method : POST&lt;BR /&gt;URL :&amp;nbsp;&lt;A href="https://abcd.databricks.com/api/2.2/jobs/run-now" target="_blank"&gt;https://abcd.databricks.com/api/2.2/jobs/run-now&lt;/A&gt;&lt;BR /&gt;json attached to request :&lt;BR /&gt;{&lt;BR /&gt;"job_id" : "569943055844936",&lt;BR /&gt;"job_parameters": {&lt;BR /&gt;"param1": "string1",&lt;BR /&gt;"param2": "string2"&lt;BR /&gt;},&lt;BR /&gt;"notebook_params": {&lt;BR /&gt;"input_path": "dbfs:/mnt/data/train.csv",&lt;BR /&gt;"num_epochs": "20"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In Python Notebook&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; params &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; dbutils.widgets.&lt;/SPAN&gt;&lt;SPAN&gt;getAll&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;(params)&lt;BR /&gt;&lt;/SPAN&gt;it return nothing&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 Sep 2025 11:15:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/how-to-sending-parameters-from-http-request-to-in-job-running/m-p/131642#M4009</guid>
      <dc:creator>AmpolJon</dc:creator>
      <dc:date>2025-09-11T11:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to sending parameters from http request to in job running notebook</title>
      <link>https://community.databricks.com/t5/administration-architecture/how-to-sending-parameters-from-http-request-to-in-job-running/m-p/131645#M4010</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/184125"&gt;@AmpolJon&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Passing parameters&amp;nbsp; is not supported by this API. That's why when you're defining notebook_params they'are ignored:&lt;BR /&gt;&lt;A href="https://docs.databricks.com/api/workspace/jobs/runnow" target="_blank"&gt;Trigger a new job run | Jobs API | REST API reference | Databricks on AWS&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can check following workaround though. The user is using update API to set task parameters and then executes the job. Not the most beautiful solution in the world but it should work:&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/a/75607277" target="_blank"&gt;https://stackoverflow.com/a/75607277&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2025 11:56:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/how-to-sending-parameters-from-http-request-to-in-job-running/m-p/131645#M4010</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-09-11T11:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to sending parameters from http request to in job running notebook</title>
      <link>https://community.databricks.com/t5/administration-architecture/how-to-sending-parameters-from-http-request-to-in-job-running/m-p/131646#M4011</link>
      <description>&lt;P&gt;Or you can consider using job parameters instead of task parameter in this case &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2025 11:57:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/how-to-sending-parameters-from-http-request-to-in-job-running/m-p/131646#M4011</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-09-11T11:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to sending parameters from http request to in job running notebook</title>
      <link>https://community.databricks.com/t5/administration-architecture/how-to-sending-parameters-from-http-request-to-in-job-running/m-p/131666#M4012</link>
      <description>&lt;P&gt;To be precise - passing parameters at &lt;STRONG&gt;task level&lt;/STRONG&gt; is not supported by this API.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2025 14:09:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/how-to-sending-parameters-from-http-request-to-in-job-running/m-p/131666#M4012</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-09-11T14:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to sending parameters from http request to in job running notebook</title>
      <link>https://community.databricks.com/t5/administration-architecture/how-to-sending-parameters-from-http-request-to-in-job-running/m-p/131672#M4013</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/184125"&gt;@AmpolJon&lt;/a&gt;&amp;nbsp;the job parameter should do the trick as&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/110502"&gt;@szymon_dybczak&lt;/a&gt;&amp;nbsp;mentions. It's supported in the docs&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BS_THE_ANALYST_0-1757600627169.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19918iDD7DB0A0DE30F7E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BS_THE_ANALYST_0-1757600627169.png" alt="BS_THE_ANALYST_0-1757600627169.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Just be mindful that job parameters take precedence over task parameters. In your case though, task parameters won't work through the API, so configure your solution to leverage the job parameters &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;.&lt;BR /&gt;&lt;BR /&gt;Please feedback how you get on.&lt;BR /&gt;&lt;BR /&gt;All the best,&lt;BR /&gt;BS&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2025 14:25:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/how-to-sending-parameters-from-http-request-to-in-job-running/m-p/131672#M4013</guid>
      <dc:creator>BS_THE_ANALYST</dc:creator>
      <dc:date>2025-09-11T14:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to sending parameters from http request to in job running notebook</title>
      <link>https://community.databricks.com/t5/administration-architecture/how-to-sending-parameters-from-http-request-to-in-job-running/m-p/131725#M4022</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AmpolJon_0-1757646714265.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19929iDB63F84D9E31872E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AmpolJon_0-1757646714265.png" alt="AmpolJon_0-1757646714265.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've try passing the job_parameters as&lt;BR /&gt;&lt;SPAN&gt;"job_parameters": {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "param1": "string1",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "param2": "string2"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and wishing to reach&amp;nbsp;&lt;SPAN&gt;string1 in python using this code&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;param &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; dbutils.widgets.&lt;/SPAN&gt;&lt;SPAN&gt;get&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"param1"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;it return error as picture attached, i just want to assure that I should gave up on this method or I'm about in the right path?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2025 03:16:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/how-to-sending-parameters-from-http-request-to-in-job-running/m-p/131725#M4022</guid>
      <dc:creator>AmpolJon</dc:creator>
      <dc:date>2025-09-12T03:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to sending parameters from http request to in job running notebook</title>
      <link>https://community.databricks.com/t5/administration-architecture/how-to-sending-parameters-from-http-request-to-in-job-running/m-p/131887#M4028</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/184125"&gt;@AmpolJon&lt;/a&gt;&amp;nbsp;I don't think you should be giving up on the method, the API allows you to pass job parameters to it and you can retrieve them from in the Python Notebook. Here's an example.&lt;/P&gt;&lt;P&gt;1. Call on the API,&amp;nbsp;&lt;A href="https://docs.databricks.com/api/workspace/jobs/runnow" target="_blank" rel="noopener"&gt;https://docs.databricks.com/api/workspace/jobs/runnow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BS_THE_ANALYST_0-1757845831113.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19964iD856B8490CC49F83/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BS_THE_ANALYST_0-1757845831113.png" alt="BS_THE_ANALYST_0-1757845831113.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Now, I take a look at the job, and check if the Parameters were passed through. Please note, I didn't set these up as part of the job, this was just through the API call. Also, I forgot to tick "Performance Optimized" in the job config so my job is taking a while longer to run &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BS_THE_ANALYST_1-1757845945322.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19965i5597CCE74885174B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BS_THE_ANALYST_1-1757845945322.png" alt="BS_THE_ANALYST_1-1757845945322.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;3. Here's the run itself, and it errors, just like yours&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/184125"&gt;@AmpolJon&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BS_THE_ANALYST_2-1757846207717.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19966i9E0AC44A9D7825C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BS_THE_ANALYST_2-1757846207717.png" alt="BS_THE_ANALYST_2-1757846207717.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;4. Here's the solution:&lt;BR /&gt;Successful job run:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BS_THE_ANALYST_3-1757846378655.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19967i898E462014F99DB3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BS_THE_ANALYST_3-1757846378655.png" alt="BS_THE_ANALYST_3-1757846378655.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Notebook:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BS_THE_ANALYST_4-1757846396433.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19968iD4296C72917A5058/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BS_THE_ANALYST_4-1757846396433.png" alt="BS_THE_ANALYST_4-1757846396433.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Code (the code comments explain the solution):&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Set a default value to make the widget exist. These will get overwritten anyway! :)
dbutils.widgets.text("param1", "default_value")
dbutils.widgets.text("param2", "default_value")

# Now you can access them (and they'll be overwritten)
p1 = dbutils.widgets.get("param1")
p2 = dbutils.widgets.get("param2")

print(f"param1={p1}, param2={p2}")&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Hopefully that resolves your problem&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/184125"&gt;@AmpolJon&lt;/a&gt;&amp;nbsp;. I'd love to hear more about how you're using N8N and Databricks together as part of your project. If you find the time, it'd be great to share in the Databricks community. I'd love to get some more project-based learning out there.&lt;BR /&gt;&lt;BR /&gt;All the best,&lt;BR /&gt;BS&lt;/P&gt;</description>
      <pubDate>Sun, 14 Sep 2025 10:45:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/how-to-sending-parameters-from-http-request-to-in-job-running/m-p/131887#M4028</guid>
      <dc:creator>BS_THE_ANALYST</dc:creator>
      <dc:date>2025-09-14T10:45:03Z</dc:date>
    </item>
  </channel>
</rss>

