Sending Data: POST Request Body
When you create or update something, you send data in the request body. The body is usually JSON — structured data with key-value pairs.
Example: You want to create a task in a project management API:
POST https://api.example.com/tasks
Content-Type: application/json
{
"title": "Review Module 4 lessons",
"description": "Read and understand each lesson",
"due_date": "2024-03-15",
"assigned_to": "jane@example.com",
"priority": "high"
}
In your HTTP module, you'd paste the JSON into the Body field. But here's the powerful part: you can use dynamic values from earlier steps. Instead of a static due date, you might use:
{
"title": "Review {{1.outputname}}",
"due_date": "{{dateAdd(now(), 7, 'days')}}"
}
The double curly braces pull data from previous steps or use functions to calculate values. This is how you connect the HTTP response to other parts of your workflow.