mirror of
https://github.com/n8n-io/n8n-docs.git
synced 2025-11-20 17:48:34 +00:00
Merge branch 'update/webhook'
This commit is contained in:
commit
823a998d9f
@ -195,6 +195,21 @@ curl --request GET https://your-n8n.url/webhook/path --from 'key=@/path/to/file'
|
|||||||
```
|
```
|
||||||
Replace `/path/to/file` with the path of the file you want to send.
|
Replace `/path/to/file` with the path of the file you want to send.
|
||||||
|
|
||||||
|
### How to send a response of type `string`?
|
||||||
|
To send a response of type string, follow the steps mentioned below.
|
||||||
|
1. Select 'Last Node' from the ***Response Mode*** dropdown list.
|
||||||
|
2. Select 'First Entry JSON' from the ***Response Data*** dropdown list.
|
||||||
|
3. Click on 'Add Option' and select 'Property Name' from the dropdown list.
|
||||||
|
4. Enter the name of the property that contains the response.
|
||||||
|
5. Connect a Set node to the Webhook node.
|
||||||
|
6. In the Set node, click on 'Add Value' and select 'String'.
|
||||||
|
7. Enter the name of the property in the ***Name*** field. The name should match the property name from step 4.
|
||||||
|
8. Enter the string value in the ***Value*** field.
|
||||||
|
9. Toggle ***Keep Only Set*** to `true`.
|
||||||
|
|
||||||
|
When the Webhook gets called, it will send the string response that was set in the Set node.
|
||||||
|
|
||||||
|
|
||||||
## Further Reading
|
## Further Reading
|
||||||
|
|
||||||
- [Webhook Node — The Versatile Toolbox 🧰](https://medium.com/n8n-io/webhook-node-the-versatile-toolbox-21cb17cee862)
|
- [Webhook Node — The Versatile Toolbox 🧰](https://medium.com/n8n-io/webhook-node-the-versatile-toolbox-21cb17cee862)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user