NIFI API REST - Upload Json definition flow file
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" \
Response: Process Group name is required
pettition #2:
curl --location "http://localhost:8082/nifi-api/process-groups/{id}/process-groups/upload" \
-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.



