FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
03-24-2023 05:11 PM - edited 03-24-2023 06:49 PM
Hi,
I would like to write the node:
writing the object as shown directly on the datalayer works fine.
I would now like to do the same with a put command from a REST API. However sending the same Object gives an error as shown:
I am guessing I need to change the Object I send in some way. However, I don't know how do I have to adjust this object?
The Type of the Object is as follows:
{
"$schema": "https://json-schema.org/draft/2019-09/schema",
"definitions": {
"sfk_fbtypes_SfkCmdMoveData": {
"type": "object",
"properties": {
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"z": {
"type": "number"
},
"vel": {
"type": "number"
},
"acc": {
"type": "number"
}
},
"additionalProperties": false
}
},
"$ref": "#/definitions/sfk_fbtypes_SfkCmdMoveData"
}
Thank you,
Solved! Go to Solution.
03-24-2023 07:00 PM
I figured it out by listening to the actual put request when pressing the write button:
the actual request body to send is as follows:
{"type":"object","value":{ "x":50,"y":10,"z":0,"vel":50,"acc":500}}
Thank you.