<?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: Use of clientId parameter in REST API calls in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Use-of-clientId-parameter-in-REST-API-calls/m-p/367264#M10133</link>
    <description>&lt;P&gt;Where can i get the client id?&lt;/P&gt;</description>
    <pubDate>Thu, 30 Mar 2023 07:37:40 GMT</pubDate>
    <dc:creator>AjoyJones</dc:creator>
    <dc:date>2023-03-30T07:37:40Z</dc:date>
    <item>
      <title>Use of clientId parameter in REST API calls</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Use-of-clientId-parameter-in-REST-API-calls/m-p/96591#M10128</link>
      <description>&lt;P&gt;Just about any operation on &lt;A target="_blank" href="https://nifi.apache.org/docs/nifi-docs/rest-api/index.html"&gt;https://nifi.apache.org/docs/nifi-docs/rest-api/index.html&lt;/A&gt; has a &lt;STRONG&gt;clientId&lt;/STRONG&gt; parameter. What is its purpose and benefits? Is it more like maintaining a session? Is there physically a server-side session created for a REST client?&lt;/P&gt;&lt;P&gt;If I don't specify a clientId, do I just keep creating more sessions (as it's auto-generated if not provided)?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 12:34:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Use-of-clientId-parameter-in-REST-API-calls/m-p/96591#M10128</guid>
      <dc:creator>andrewg</dc:creator>
      <dc:date>2026-04-21T12:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Use of clientId parameter in REST API calls</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Use-of-clientId-parameter-in-REST-API-calls/m-p/96592#M10129</link>
      <description>&lt;P&gt;Requests to NiFi's REST API to change the data flow (mutable requests) require a revision to be included. Since multiple users may be working with the same NiFi instance at the same time, this is used as a simple check to verify the user who submitted the request acknowledges they have the most current version of the data flow before applying their change.&lt;/P&gt;&lt;P&gt;The revision is comprised of two pieces. The first is the version. The version is a one-up number that is updated by NiFi during a mutable request and is included in the response. The next mutable request should include that updated version. This works well until a user wants to submit multiple requests concurrently. To support this case the revision also includes a clientId. If the clientId in the revision of the current request matches the clientId of the last successful mutable request, the version does not need to match.&lt;/P&gt;&lt;P&gt;It is up to the client to manage the revision version and check with &lt;/P&gt;&lt;P&gt;&lt;A href="http://{host}:{port}/nifi-api/controller/revision" target="_blank"&gt;http://{host}:{port}/nifi-api/controller/revision&lt;/A&gt;&lt;/P&gt;&lt;P&gt;in order to see if another client has updated the flow.&lt;/P&gt;&lt;P&gt;The clientId can be any string. It's accepted in most endpoints so it could be added to requests in $.ajaxSetup for instance. If the clientId is not specified one will be generated. There is no session, it's simply generates a UUID. You could use any string you may want to represent your client. In the NiFi UI, we GET the flow&lt;/P&gt;&lt;P&gt;&lt;A href="http://{host}:{port}/nifi-api/controller/process-groups/root?verbose=true" target="_blank"&gt;http://{host}:{port}/nifi-api/controller/process-groups/root?verbose=true&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and use the clientId that it generates for all subsequent requests.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2015 01:54:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Use-of-clientId-parameter-in-REST-API-calls/m-p/96592#M10129</guid>
      <dc:creator>mgilman</dc:creator>
      <dc:date>2015-11-06T01:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Use of clientId parameter in REST API calls</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Use-of-clientId-parameter-in-REST-API-calls/m-p/96593#M10130</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/362/mgilman.html" nodeid="362"&gt;@mgilman&lt;/A&gt; for the information. Can you also provide more info on how can we set the ClientID for user group and list the processors for that user group ? ex: &lt;STRONG&gt;hanu &lt;/STRONG&gt;is the user group.. i want to set the clientID and list all the processors and the process groups along with the parentIDs. How can we achieve this?&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 23:53:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Use-of-clientId-parameter-in-REST-API-calls/m-p/96593#M10130</guid>
      <dc:creator>2hanu_valluri</dc:creator>
      <dc:date>2016-08-03T23:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Use of clientId parameter in REST API calls</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Use-of-clientId-parameter-in-REST-API-calls/m-p/290432#M10131</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/36130"&gt;@mgilman&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35458"&gt;@andrewg&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/56161"&gt;@2hanu_valluri&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I&amp;nbsp;am&amp;nbsp;also&amp;nbsp;trying&amp;nbsp;to&amp;nbsp;create&amp;nbsp;a&amp;nbsp;NiFi&amp;nbsp;workflow&amp;nbsp;through&amp;nbsp;RestAPI&amp;nbsp;but&amp;nbsp;I&amp;nbsp;have&amp;nbsp;one&amp;nbsp;doubt&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;where&amp;nbsp;I&amp;nbsp;will&amp;nbsp;get&amp;nbsp;the&amp;nbsp;clientId,&amp;nbsp;I&amp;nbsp;can&amp;nbsp;see&amp;nbsp;when&amp;nbsp;I&amp;nbsp;am&amp;nbsp;creating&amp;nbsp;a&amp;nbsp;processor&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;in&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;request&amp;nbsp;payload&amp;nbsp;there&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;is&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;a&amp;nbsp;revision&amp;nbsp;inside&amp;nbsp;that&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;object&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;clientId&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;is&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;there&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;as&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;parameters.&amp;nbsp;I&amp;nbsp;am&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;not&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;able&amp;nbsp;to&amp;nbsp;understand&amp;nbsp;where&amp;nbsp;I&amp;nbsp;will&amp;nbsp;get&amp;nbsp;that&amp;nbsp;clientId.&amp;nbsp;Any&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;help&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;will&amp;nbsp;be&amp;nbsp;great.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Feb 2020 11:35:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Use-of-clientId-parameter-in-REST-API-calls/m-p/290432#M10131</guid>
      <dc:creator>vineet_harkut</dc:creator>
      <dc:date>2020-02-25T11:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Use of clientId parameter in REST API calls</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Use-of-clientId-parameter-in-REST-API-calls/m-p/290457#M10132</link>
      <description>&lt;P&gt;The clientId can be any string that is unique to your client. You can generate one. If one is not specified the endpoints will generate one and return it for you. Please open your web browsers developer tools and watch some of the requests in action.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 18:43:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Use-of-clientId-parameter-in-REST-API-calls/m-p/290457#M10132</guid>
      <dc:creator>mgilman</dc:creator>
      <dc:date>2020-02-25T18:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Use of clientId parameter in REST API calls</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Use-of-clientId-parameter-in-REST-API-calls/m-p/367264#M10133</link>
      <description>&lt;P&gt;Where can i get the client id?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 07:37:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Use-of-clientId-parameter-in-REST-API-calls/m-p/367264#M10133</guid>
      <dc:creator>AjoyJones</dc:creator>
      <dc:date>2023-03-30T07:37:40Z</dc:date>
    </item>
  </channel>
</rss>

