FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
03-07-2024 01:44 PM
Hi, I’m trying to create and apply setups via REST API.
Using the integrated API reference there is no problem.
Trying it with Node-Red I get response code 405.
Is this issue related to my code or to the permissions of Node-Red?
Thanks,
Venzi
Solved! Go to Solution.
03-07-2024 05:35 PM
Hi @Venzi_ ,
Status code 405 indicates an unsupported request method. Are you sending a POST request as in the API reference? It looks like your Node-RED request node is named "PUT GVL_OPC/start".
03-08-2024 01:27 PM
Thanks a lot, @Sgilk! I used in fact PUT instead of POST causing the problem.
My next problem is how to form the header and the multipart/form-data request body for sending /apply POST in my function node.
I guess, the POST node has to be set to UTF-8 as well?
03-08-2024 05:48 PM - edited 03-08-2024 05:49 PM