Start/Stop a NiFi Processor via REST API: Desired State is not set
Hi everyone,
I'm trying to use NiFis Rest API to start and stop a Processor, but evertime I get the response
The desired state is not set
Here is my curl-Command which I use:
curl -k --header "Authorization: Bearer $token" -i -H 'Content-Type: application/json' -XPUT -d'{ "revision": { "version": 18, "clientId": "01891026-da00-199f-9dc9-ae3a37dce067" }, "status": { "runStatus": "RUNNING" }, "component": { "id": "0189100e-1e29-115c-ec96-b857cd155f4a", "state": "RUNNING" }, "id": "0189100e-1e29-115c-ec96-b857cd155f4a" }' https://localhost:8443/nifi-api/processors/0189100e-1e29-115c-ec96-b857cd155f4a/run-status
Has anyone an idea what's the problem?
Best regards
Maik

