Rest Object to send to write node

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,

 

 

Best reply by LuSchuerz

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.

 

View original
1 reply