How I create a JSON with subparameter using graphics interface of N8N? example:
Inside “contact” I have “email”, like this:
What information I must to write to fill the “email” value? I need to generate the JSON above.
How I create a JSON with subparameter using graphics interface of N8N? example:
Inside “contact” I have “email”, like this:
What information I must to write to fill the “email” value? I need to generate the JSON above.
Welcome to the community @adriano.ferreira
The HTTP node does not support dot notation in the body. To achieve that, you need to set an expression in the value. Example: {{ { "email": "[email protected]" } }}
{
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
250,
300
]
},
{
"parameters": {
"requestMethod": "POST",
"options": {},
"bodyParametersUi": {
"parameter": [
{
"name": "tenant_id",
"value": "1"
},
{
"name": "login",
"value": "test"
},
{
"name": "contact",
"value": "={{ { \"email\": \"[email protected]\" } }}"
}
]
}
},
"name": "HTTP Request",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 1,
"position": [
580,
320
]
}
],
"connections": {
"Start": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
}
}
}