Matt Burgess wrote
> It's part of the "Update Processor" API, check out this thread from
> the NiFi dev list archive:
> 
> http://apache-nifi-developer-list.39713.n7.nabble.com/Reg-starting-and-Stopping-processor-tp7930p7949.html
> 
> Regards,
> Matt

Nice, so I was able to change the status and the properties of a processor,
thanks to your help. I have a follow up question:
/Would you be able to start a whole process group through a rest api?/

I have tried using the "Update Process Group" API with partial success. I
can't seem to provide the correct JSON attribute when it asks for the parent
group:


HTTP Request/Response wrote
> curl -i -X PUT -H 'Content-Type:application/json' -d '
> {"revision":
>   {"clientId":"test-api-1",
>    "version":37},
>  "processGroup": {
>    "id":"[PROCESS_GROUP_ID]",
>    "running":"true",
>    "parentGroupId":"[PARENT_GROUP_ID]"
>   }
> }'
> http://localhost:8181/nifi-api/controller/process-groups/[PROCESS_GROUP_ID]
> HTTP/1.1 400 Bad Request
> Date: Mon, 25 Apr 2016 20:22:05 GMT
> Server: Jetty(9.2.11.v20150529)
> Date: Mon, 25 Apr 2016 20:22:05 GMT
> Content-Type: text/plain
> Content-Length: 86
> 
> Unable to create the specified process group since the parent group was
> not specified.





--
View this message in context: 
http://apache-nifi-developer-list.39713.n7.nabble.com/NiFi-Rest-API-Start-tp9598p9601.html
Sent from the Apache NiFi Developer List mailing list archive at Nabble.com.

Reply via email to