The endpoint to create the snippet requires the parent process group where the specified components are located. So in your case, the parent process group is the root process group and the request would include the desired components. You could update your flow to utilize more process groups which may organize the various parts while reducing the number of components in the root group. This would limit the number of items you need to pass to the snippet endpoint.
Alternatively, if this is being done in an external program or script, you would just need to iterate through each of the components and ensure they are added to the request. Thanks Matt On Wed, Jan 4, 2017 at 11:08 PM, prabhu Mahendran <[email protected]> wrote: > Thanks for you reply, > > I wants answer for this question."How to create snippetID for root > processgroup?". > > I need rest api which create template for entire ui elements. > > On Tue, Jan 3, 2017 at 9:30 PM, Matt Gilman <[email protected]> > wrote: > >> I think you would need to specify every component that is on the canvas. >> If all of the components were in a nested Process Group, then you would >> just need to specify that Process Group. >> >> What is the behavior you're seeing? >> >> Thanks >> >> Matt >> >> On Mon, Dec 26, 2016 at 10:52 PM, prabhu Mahendran < >> [email protected]> wrote: >> >>> >>> >>> down votefavorite >>> <http://stackoverflow.com/questions/41297873/how-to-save-all-entities-in-nifi-ui-into-template-using-rest-api#> >>> >>> i having lot of process groups and processors in Nifi UI-0.6.1.Now i >>> need to save all entities as templates using rest api. >>> >>> In generally snippet ID is needed for create template. >>> >>> If i have tried snippet ID creation for single process group in below >>> json Contents. >>> >>> { >>> "revision": { >>> "version": 109 >>> }, >>> "snippet": { >>> "parentGroupId": "root", >>> "processGroups":["d3ea576e-d474-4edd-8b11-43071bcaf252"] >>> >>> } >>> } >>> >>> i could be able created the snippet ID and Template for single process >>> group. >>> >>> *But i need to all entities(ProcessGroups,Processors) in UI to be save >>> as template.* >>> >>> How to create snippetID for all entities in UI? >>> >> >> >
