Member since
12-02-2023
3
Posts
3
Kudos Received
0
Solutions
12-07-2023
05:32 AM
3 Kudos
Hi @SAMSAL my friend, I just wanted to give you a huge thank you for your superhero-like assistance with the NiFi API on the community platform! Your solution was nothing short of amazing and saved the day in a way only a true superhero could. Your expertise made a world of difference, and I'm incredibly grateful for your support. Thanks a ton! Best regards, have a awesome day
... View more
12-06-2023
09:16 AM
hi everyone ! hoping everybody has an awsome day. I am trying to create a process Group with a flow definition json i downloaded. when i upload a file.json manually and checked the nifi-request.log and the only i see is this pettiotion " http://localhost:8081/process-groups/{id}/process-groups/upload" but i don't see the body in sent request, i want to use the api rest to upload this file but documentation is not clear in this aspect pettition #1: curl --location "http://localhost:8082/nifi-api/process-groups/{id}/process-groups/upload" \ --form "file=@/path/to/my/flowDefinition.json" Response: Process Group name is required pettition #2: curl --location "http://localhost:8082/nifi-api/process-groups/{id}/process-groups/upload" \ --header 'Content-Type: multipart/form-data' \ -F 'id=root' \ -F 'name=QA_FLOW' \ -F 'position[x]=577.0' \ -F 'position[y]=11.0' \ -F 'clientId=27bf6df2-018c-1000-362e-61166913eee4' \ -F 'disconnectNode=true' -F "file=@/path/to/my/flowDefinition.json" Response: Process Group name is required no matter how hard i tried i could not find a way to upload this file or even make the API accepts the name parameter. If someone can help me i would thanks a lot have a nice day.
... View more
Labels:
- Labels:
-
Apache NiFi
12-02-2023
09:26 AM
Hello Sam! i am dealing with same issue as you, i see you made a question a year ago and i wonder, did you find a way to upload a Definition file from API rest ? as you i have been tried and tired to build a process group with the file.json but documentation is not clear and does not offer an example to build the request. i upload a file.json manually and checked the nifi-request.log and the only i see is this pettiotion " http://localhost:8081/process-groups/{id}/process-groups/upload" as "ok" did you find a way to build the body to send this request ? thanks a lot, have a nice day.
... View more