POST request with multiple parameters

Hello,

I try to make a post request with the HTTP node, and I would like to post data into body looking like:

{
    "data": {
        "mainInvoicingAddressStr": "Test API",
        "statusSelect": 1,
        "company": {
                "id": 1
            },
        "salemanUser": {
            "id": 2
        },
    }
}

If I create one parameter for each line (so one parameter mainInvoicingAdressStr, one statusSelect etc) I have an error.
I think it is because body don’t start with “data”:{
And because of cascading parameter (sorry, I don’t know he english word) like:

"salemanUser": {
                "id": 2
            },

If I understand correctly, you’re looking to reference the whole data object in the value of Body Parameters. n8n uses expressions to reference information from other nodes. Here is a mockup with the Function node.

{
  "name": "",
  "nodes": [
    {
      "parameters": {},
      "name": "Start",
      "type": "n8n-nodes-base.start",
      "typeVersion": 1,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "requestMethod": "POST",
        "url": "https://example.com",
        "options": {},
        "bodyParametersUi": {
          "parameter": [
            {
              "name": "data",
              "value": "={{$node[\"Function\"].json[\"data\"]}}"
            }
          ]
        }
      },
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
        780,
        190
      ]
    },
    {
      "parameters": {
        "functionCode": "items[0].json.data = {\n  \"mainInvoicingAddressStr\": \"Test API\",\n  \"statusSelect\": 1,\n  \"company\": { \"id\": 1 },  \n  \"salemanUser\": { \"id\": 2 },\n};\nreturn items;"
      },
      "name": "Function",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        570,
        200
      ]
    }
  ],
  "connections": {
    "Function": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {},
  "id": "58"
}

ok, understood.
its works, thanks a lot.