I am currently working to automate few steps in ctrlx PLC engineering App. I am unable to find the specific REST API which I can use to download the application to device.
If anyone knows the exact REST API corresponding to it then please guide me .
I am currently working to automate few steps in ctrlx PLC engineering App. I am unable to find the specific REST API which I can use to download the application to device.
If anyone knows the exact REST API corresponding to it then please guide me .
Hi Avi ,
You use a POST request to the /jobs endpoint and pass the job type in the request body.
To build and generate code ->
curl -X 'POST' \
'http://localhost:9002/plc/engineering/api/v2/jobs' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"jobType": "BuildJob",
"jobParameters": {
"action": "GenerateCode"
}
}'To login with online change ->
curl -X 'POST' \
'http://localhost:9002/plc/engineering/api/v2/jobs' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"jobType": "ApplicationLoginJob",
"jobParameters": {
"nodeUrl": "/devices/Device/PLC Logic/Application",
"loginOption": "LoginWithOnlineChange",
"updateBootApplication": true
}
}'