<?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>question Re: Import Json Definition to a target nifi system using Rest API of NiFi 2.0.0-M4 in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Import-Json-Definition-to-a-target-nifi-system-using-Rest/m-p/403491#M252088</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/124525"&gt;@AllIsWell&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Welcome to the community.&lt;BR /&gt;&lt;BR /&gt;NiFi templates where deprecated long ago in the Apache NiFi 1.x version as well.&lt;BR /&gt;They were officially completely removed from the product in Apache NiFi 2.x.&lt;BR /&gt;&lt;BR /&gt;Flow Definitions which are in json format can be downloaded and uploaded to both newer version of Apache NiFi 1.x and all versions of Apache NiFi 2.x.&lt;BR /&gt;&lt;BR /&gt;The rest-api docs cover upload of a flow defintion here:&lt;BR /&gt;&lt;A href="https://nifi.apache.org/nifi-docs/rest-api.html#uploadProcessGroup" target="_blank"&gt;https://nifi.apache.org/nifi-docs/rest-api.html#uploadProcessGroup&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;There are 6 form fields:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_0-1741098355694.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/44171iFC9DF6C60D03D3C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MattWho_0-1741098355694.png" alt="MattWho_0-1741098355694.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;An example rest-api call would look something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl 'https://&amp;lt;nifi-hostname&amp;gt;:&amp;lt;nifi-port&amp;gt;/nifi-api/process-groups/&amp;lt;uuid of Process group in which flow definition will be uploaded&amp;gt;/process-groups/upload' \
  -H 'accept: application/json, text/plain, */*' \
  -H 'content-type: multipart/form-data' \
  -H 'Authorization: Bearer &amp;lt;TOKEN&amp;gt;' \
  --form 'clientId="&amp;lt;uuid of Process group in which flow json will be uploaded&amp;gt;"' \
  --form 'disconnectedNodeAcknowledged="false"' \
  --form 'file=@"/&amp;lt;path to&amp;gt;/&amp;lt;flow-defintion.json filename&amp;gt;"' \
  --form 'groupName="handleHTTPRequestFlow2c"' \
  --form 'positionX="361"' \
  --form 'positionY="229.5"' \
  --insecure&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I use ldap to authenticate in to my NiFi, so i use the bearer token issues for my user on authentication in the above rest-api call.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please help our community grow and thrive. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Mar 2025 14:28:31 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2025-03-04T14:28:31Z</dc:date>
    <item>
      <title>Import Json Definition to a target nifi system using Rest API of NiFi 2.0.0-M4</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Import-Json-Definition-to-a-target-nifi-system-using-Rest/m-p/403471#M252076</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;I have created my processor group in a local instance of NiFi 2.0.0-M4 and I have downloaded the json definition file and also I can able to import that json manually to a target nifi system (production), but my ultimate goal is to deploy this json using NiFi RestAPI and I have accomplished the following tasks&lt;BR /&gt;1. Generate the NiFi Token&lt;BR /&gt;2. Create a ProcessorGroup to the target NiFi system&lt;BR /&gt;&lt;BR /&gt;But I could not find a way to import the json definition file through REST API and when I search on the apache NiFi documentation of API and in could not find any proper api call for NiFi version 2.0.0-M4 but there is only for version 1.28 supported Api endpoints for template concepts but as of NiFi version 2.0.0-M4 it was changed from xml template into json definition concept. Now how do I import the json file to the target system processGroup which i created through rest api.&lt;BR /&gt;&lt;BR /&gt;Please anyone can give your suggestion asap.&lt;BR /&gt;Thanks&lt;BR /&gt;Vijay.AX&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 07:08:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Import-Json-Definition-to-a-target-nifi-system-using-Rest/m-p/403471#M252076</guid>
      <dc:creator>AllIsWell</dc:creator>
      <dc:date>2025-03-04T07:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Import Json Definition to a target nifi system using Rest API of NiFi 2.0.0-M4</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Import-Json-Definition-to-a-target-nifi-system-using-Rest/m-p/403491#M252088</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/124525"&gt;@AllIsWell&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Welcome to the community.&lt;BR /&gt;&lt;BR /&gt;NiFi templates where deprecated long ago in the Apache NiFi 1.x version as well.&lt;BR /&gt;They were officially completely removed from the product in Apache NiFi 2.x.&lt;BR /&gt;&lt;BR /&gt;Flow Definitions which are in json format can be downloaded and uploaded to both newer version of Apache NiFi 1.x and all versions of Apache NiFi 2.x.&lt;BR /&gt;&lt;BR /&gt;The rest-api docs cover upload of a flow defintion here:&lt;BR /&gt;&lt;A href="https://nifi.apache.org/nifi-docs/rest-api.html#uploadProcessGroup" target="_blank"&gt;https://nifi.apache.org/nifi-docs/rest-api.html#uploadProcessGroup&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;There are 6 form fields:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_0-1741098355694.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/44171iFC9DF6C60D03D3C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MattWho_0-1741098355694.png" alt="MattWho_0-1741098355694.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;An example rest-api call would look something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl 'https://&amp;lt;nifi-hostname&amp;gt;:&amp;lt;nifi-port&amp;gt;/nifi-api/process-groups/&amp;lt;uuid of Process group in which flow definition will be uploaded&amp;gt;/process-groups/upload' \
  -H 'accept: application/json, text/plain, */*' \
  -H 'content-type: multipart/form-data' \
  -H 'Authorization: Bearer &amp;lt;TOKEN&amp;gt;' \
  --form 'clientId="&amp;lt;uuid of Process group in which flow json will be uploaded&amp;gt;"' \
  --form 'disconnectedNodeAcknowledged="false"' \
  --form 'file=@"/&amp;lt;path to&amp;gt;/&amp;lt;flow-defintion.json filename&amp;gt;"' \
  --form 'groupName="handleHTTPRequestFlow2c"' \
  --form 'positionX="361"' \
  --form 'positionY="229.5"' \
  --insecure&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I use ldap to authenticate in to my NiFi, so i use the bearer token issues for my user on authentication in the above rest-api call.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please help our community grow and thrive. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 14:28:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Import-Json-Definition-to-a-target-nifi-system-using-Rest/m-p/403491#M252088</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2025-03-04T14:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Import Json Definition to a target nifi system using Rest API of NiFi 2.0.0-M4</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Import-Json-Definition-to-a-target-nifi-system-using-Rest/m-p/403544#M252096</link>
      <description>&lt;P&gt;Hi Matt,&lt;BR /&gt;Thank you so much for the solution you provided and&amp;nbsp; you saved my day. It is working fine.&lt;BR /&gt;Thanks&lt;BR /&gt;Vijay&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 04:02:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Import-Json-Definition-to-a-target-nifi-system-using-Rest/m-p/403544#M252096</guid>
      <dc:creator>AllIsWell</dc:creator>
      <dc:date>2025-03-05T04:02:03Z</dc:date>
    </item>
  </channel>
</rss>

