Support Questions
Find answers, ask questions, and share your expertise

Import NIFI versioned process group from registry

New Contributor

Hi,

Im trying to import a versioned group from registry.

 

the request does not accept my JSON file and i couldn't understand the documentation about importing.

 

This is my request.

 

METHOD=http://
HOST=localhost:
PORT=8882/nifi-api
API=process-groups
 
curl -i -X POST \
--data "@./revisionDTO.json" \
-H "Content-Type: application/json" \
${METHOD}${HOST}${PORT}/${API}/${GUID}/${API}/import
 
This is the JSON file
 
{
"revision": {
"clientId": "626255e7-017e-1000-fb7b-f94a582fb0f4",
"version": 1
},
"id": "",
"name": "First",
"position": {
"x": 400,
"y": 300
},
"permissions": {
"canRead": true,
"canWrite": true
},
"component": {
"id": "",
"versionedComponentId": "",
"parentGroupId": "",
"position": {
"x": 400,
"y": 300
},
"name": "value",
"comments": "value",
"variables": {
"name": "value"
}
},
"versionedFlow": {
"registryId": "5309189f-017e-1000-2e30-e775bd937e32",
"bucketId": "1a4e4b81-5b31-41a1-929a-d719806f6c3e",
"flowId": "dd1950ec-99b1-42b6-b6d2-469f44c40111",
"flowName": "Second Of Forth",
"description": "value",
"comments": "value",
"action": "COMMIT"
},
"disconnectedNodeAcknowledged": true
}
0 REPLIES 0
; ;