I want to schedule a job from outside KNIME-Server using POST requests.
From the KNIME documentation I know that this is possible (second entry):
What is my idea: I uploaded a Workflow to the server and the workflow has to 2 configuration nodes, that can be configured in the workflow execution window under Configuration options.
With a respective GET request I can read the default values:
https:…knime/rest/v4/repository/{path}:configuration
giving me:
{
“Titel-803”: {
“label”: “Test1”,
“type”: “string”,
“default”: “Kanal1”
},
“Messeinheit-810”: {
“label”: “Test1”,
“type”: “string”,
“default”: “Messung1”
}
}
So far so good!
Now I want to schedule this workflow, but change the configuration let’s say to:
“Kanal2” and “Messung2”
Since I am not very familiar with GET, POST JSON etc., my idea is to use the GET Body (as JSON), make it a POST and include the new configuration dialogue.
This is (part of) the GET request of my Workflow:
…
…
…
“discardAfterSuccessfulExec”: true,
“discardAfterFailedExec”: false,
“workflowConfiguration”: {}
}
],
“executionRetries”: 0,
“spaceVersion”: null,
“user”: “user_name”,
“configuration”: {}
}
}
},
“scheduledJobs”: [ ],
“@namespaces”: {
“knime”: {
“name”: “Open for Innovation | KNIME”
}
}
}
I highlited the configuration part because I think, that I have to add it here? Can you help me finish this?
Best wishes