Update Node
curl --request PUT \
--url https://app.puffle.ai/api/campaigns/{id}/sequence/nodes/{nodeId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"subject": "<string>",
"body": "<string>",
"body_html": "<string>",
"signature": "<string>",
"from_name": "<string>",
"reply_to": "<string>",
"cc": "<string>",
"bcc": "<string>",
"attachments": [
"<unknown>"
],
"include_message": true,
"is_reply": true,
"delay_days": 4503599627370495,
"delay_hours": 4503599627370495,
"delay_minutes": 4503599627370495,
"ai_node": {
"purpose": "<string>",
"cta": "<string>",
"context": "<string>",
"title": "<string>",
"skeleton": {
"subject": "<string>",
"body": "<string>",
"blocks": [
{
"name": "<string>",
"strategy": "<string>",
"personalization": {
"fields": [
"<string>"
],
"approach": "<string>",
"fallback": "<string>"
},
"suggestion": "<string>"
}
],
"exampleSubject": "<string>",
"exampleBody": "<string>"
}
}
}
'import requests
url = "https://app.puffle.ai/api/campaigns/{id}/sequence/nodes/{nodeId}"
payload = {
"subject": "<string>",
"body": "<string>",
"body_html": "<string>",
"signature": "<string>",
"from_name": "<string>",
"reply_to": "<string>",
"cc": "<string>",
"bcc": "<string>",
"attachments": ["<unknown>"],
"include_message": True,
"is_reply": True,
"delay_days": 4503599627370495,
"delay_hours": 4503599627370495,
"delay_minutes": 4503599627370495,
"ai_node": {
"purpose": "<string>",
"cta": "<string>",
"context": "<string>",
"title": "<string>",
"skeleton": {
"subject": "<string>",
"body": "<string>",
"blocks": [
{
"name": "<string>",
"strategy": "<string>",
"personalization": {
"fields": ["<string>"],
"approach": "<string>",
"fallback": "<string>"
},
"suggestion": "<string>"
}
],
"exampleSubject": "<string>",
"exampleBody": "<string>"
}
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
subject: '<string>',
body: JSON.stringify('<string>'),
body_html: '<string>',
signature: '<string>',
from_name: '<string>',
reply_to: '<string>',
cc: '<string>',
bcc: '<string>',
attachments: ['<unknown>'],
include_message: true,
is_reply: true,
delay_days: 4503599627370495,
delay_hours: 4503599627370495,
delay_minutes: 4503599627370495,
ai_node: {
purpose: '<string>',
cta: '<string>',
context: '<string>',
title: '<string>',
skeleton: {
subject: '<string>',
body: JSON.stringify('<string>'),
blocks: [
{
name: '<string>',
strategy: '<string>',
personalization: {fields: ['<string>'], approach: '<string>', fallback: '<string>'},
suggestion: '<string>'
}
],
exampleSubject: '<string>',
exampleBody: '<string>'
}
}
})
};
fetch('https://app.puffle.ai/api/campaigns/{id}/sequence/nodes/{nodeId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.puffle.ai/api/campaigns/{id}/sequence/nodes/{nodeId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'subject' => '<string>',
'body' => '<string>',
'body_html' => '<string>',
'signature' => '<string>',
'from_name' => '<string>',
'reply_to' => '<string>',
'cc' => '<string>',
'bcc' => '<string>',
'attachments' => [
'<unknown>'
],
'include_message' => true,
'is_reply' => true,
'delay_days' => 4503599627370495,
'delay_hours' => 4503599627370495,
'delay_minutes' => 4503599627370495,
'ai_node' => [
'purpose' => '<string>',
'cta' => '<string>',
'context' => '<string>',
'title' => '<string>',
'skeleton' => [
'subject' => '<string>',
'body' => '<string>',
'blocks' => [
[
'name' => '<string>',
'strategy' => '<string>',
'personalization' => [
'fields' => [
'<string>'
],
'approach' => '<string>',
'fallback' => '<string>'
],
'suggestion' => '<string>'
]
],
'exampleSubject' => '<string>',
'exampleBody' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.puffle.ai/api/campaigns/{id}/sequence/nodes/{nodeId}"
payload := strings.NewReader("{\n \"subject\": \"<string>\",\n \"body\": \"<string>\",\n \"body_html\": \"<string>\",\n \"signature\": \"<string>\",\n \"from_name\": \"<string>\",\n \"reply_to\": \"<string>\",\n \"cc\": \"<string>\",\n \"bcc\": \"<string>\",\n \"attachments\": [\n \"<unknown>\"\n ],\n \"include_message\": true,\n \"is_reply\": true,\n \"delay_days\": 4503599627370495,\n \"delay_hours\": 4503599627370495,\n \"delay_minutes\": 4503599627370495,\n \"ai_node\": {\n \"purpose\": \"<string>\",\n \"cta\": \"<string>\",\n \"context\": \"<string>\",\n \"title\": \"<string>\",\n \"skeleton\": {\n \"subject\": \"<string>\",\n \"body\": \"<string>\",\n \"blocks\": [\n {\n \"name\": \"<string>\",\n \"strategy\": \"<string>\",\n \"personalization\": {\n \"fields\": [\n \"<string>\"\n ],\n \"approach\": \"<string>\",\n \"fallback\": \"<string>\"\n },\n \"suggestion\": \"<string>\"\n }\n ],\n \"exampleSubject\": \"<string>\",\n \"exampleBody\": \"<string>\"\n }\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://app.puffle.ai/api/campaigns/{id}/sequence/nodes/{nodeId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"subject\": \"<string>\",\n \"body\": \"<string>\",\n \"body_html\": \"<string>\",\n \"signature\": \"<string>\",\n \"from_name\": \"<string>\",\n \"reply_to\": \"<string>\",\n \"cc\": \"<string>\",\n \"bcc\": \"<string>\",\n \"attachments\": [\n \"<unknown>\"\n ],\n \"include_message\": true,\n \"is_reply\": true,\n \"delay_days\": 4503599627370495,\n \"delay_hours\": 4503599627370495,\n \"delay_minutes\": 4503599627370495,\n \"ai_node\": {\n \"purpose\": \"<string>\",\n \"cta\": \"<string>\",\n \"context\": \"<string>\",\n \"title\": \"<string>\",\n \"skeleton\": {\n \"subject\": \"<string>\",\n \"body\": \"<string>\",\n \"blocks\": [\n {\n \"name\": \"<string>\",\n \"strategy\": \"<string>\",\n \"personalization\": {\n \"fields\": [\n \"<string>\"\n ],\n \"approach\": \"<string>\",\n \"fallback\": \"<string>\"\n },\n \"suggestion\": \"<string>\"\n }\n ],\n \"exampleSubject\": \"<string>\",\n \"exampleBody\": \"<string>\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.puffle.ai/api/campaigns/{id}/sequence/nodes/{nodeId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"subject\": \"<string>\",\n \"body\": \"<string>\",\n \"body_html\": \"<string>\",\n \"signature\": \"<string>\",\n \"from_name\": \"<string>\",\n \"reply_to\": \"<string>\",\n \"cc\": \"<string>\",\n \"bcc\": \"<string>\",\n \"attachments\": [\n \"<unknown>\"\n ],\n \"include_message\": true,\n \"is_reply\": true,\n \"delay_days\": 4503599627370495,\n \"delay_hours\": 4503599627370495,\n \"delay_minutes\": 4503599627370495,\n \"ai_node\": {\n \"purpose\": \"<string>\",\n \"cta\": \"<string>\",\n \"context\": \"<string>\",\n \"title\": \"<string>\",\n \"skeleton\": {\n \"subject\": \"<string>\",\n \"body\": \"<string>\",\n \"blocks\": [\n {\n \"name\": \"<string>\",\n \"strategy\": \"<string>\",\n \"personalization\": {\n \"fields\": [\n \"<string>\"\n ],\n \"approach\": \"<string>\",\n \"fallback\": \"<string>\"\n },\n \"suggestion\": \"<string>\"\n }\n ],\n \"exampleSubject\": \"<string>\",\n \"exampleBody\": \"<string>\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"node": {
"id": "<string>",
"campaign_id": "<string>",
"position": 4503599627370495,
"subject": "<string>",
"body": "<string>",
"body_html": "<string>",
"signature": "<string>",
"from_name": "<string>",
"reply_to": "<string>",
"cc": "<string>",
"bcc": "<string>",
"attachments": [
"<unknown>"
],
"include_message": true,
"is_reply": true,
"delay_days": 4503599627370495,
"delay_hours": 4503599627370495,
"delay_minutes": 4503599627370495,
"ai_node": {}
}
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Outbound Sequence
Update Node
Patch a single sequence node’s content — subject, body, delays, or AI extension. Draft campaigns only.
PUT
/
api
/
campaigns
/
{id}
/
sequence
/
nodes
/
{nodeId}
Update Node
curl --request PUT \
--url https://app.puffle.ai/api/campaigns/{id}/sequence/nodes/{nodeId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"subject": "<string>",
"body": "<string>",
"body_html": "<string>",
"signature": "<string>",
"from_name": "<string>",
"reply_to": "<string>",
"cc": "<string>",
"bcc": "<string>",
"attachments": [
"<unknown>"
],
"include_message": true,
"is_reply": true,
"delay_days": 4503599627370495,
"delay_hours": 4503599627370495,
"delay_minutes": 4503599627370495,
"ai_node": {
"purpose": "<string>",
"cta": "<string>",
"context": "<string>",
"title": "<string>",
"skeleton": {
"subject": "<string>",
"body": "<string>",
"blocks": [
{
"name": "<string>",
"strategy": "<string>",
"personalization": {
"fields": [
"<string>"
],
"approach": "<string>",
"fallback": "<string>"
},
"suggestion": "<string>"
}
],
"exampleSubject": "<string>",
"exampleBody": "<string>"
}
}
}
'import requests
url = "https://app.puffle.ai/api/campaigns/{id}/sequence/nodes/{nodeId}"
payload = {
"subject": "<string>",
"body": "<string>",
"body_html": "<string>",
"signature": "<string>",
"from_name": "<string>",
"reply_to": "<string>",
"cc": "<string>",
"bcc": "<string>",
"attachments": ["<unknown>"],
"include_message": True,
"is_reply": True,
"delay_days": 4503599627370495,
"delay_hours": 4503599627370495,
"delay_minutes": 4503599627370495,
"ai_node": {
"purpose": "<string>",
"cta": "<string>",
"context": "<string>",
"title": "<string>",
"skeleton": {
"subject": "<string>",
"body": "<string>",
"blocks": [
{
"name": "<string>",
"strategy": "<string>",
"personalization": {
"fields": ["<string>"],
"approach": "<string>",
"fallback": "<string>"
},
"suggestion": "<string>"
}
],
"exampleSubject": "<string>",
"exampleBody": "<string>"
}
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
subject: '<string>',
body: JSON.stringify('<string>'),
body_html: '<string>',
signature: '<string>',
from_name: '<string>',
reply_to: '<string>',
cc: '<string>',
bcc: '<string>',
attachments: ['<unknown>'],
include_message: true,
is_reply: true,
delay_days: 4503599627370495,
delay_hours: 4503599627370495,
delay_minutes: 4503599627370495,
ai_node: {
purpose: '<string>',
cta: '<string>',
context: '<string>',
title: '<string>',
skeleton: {
subject: '<string>',
body: JSON.stringify('<string>'),
blocks: [
{
name: '<string>',
strategy: '<string>',
personalization: {fields: ['<string>'], approach: '<string>', fallback: '<string>'},
suggestion: '<string>'
}
],
exampleSubject: '<string>',
exampleBody: '<string>'
}
}
})
};
fetch('https://app.puffle.ai/api/campaigns/{id}/sequence/nodes/{nodeId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.puffle.ai/api/campaigns/{id}/sequence/nodes/{nodeId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'subject' => '<string>',
'body' => '<string>',
'body_html' => '<string>',
'signature' => '<string>',
'from_name' => '<string>',
'reply_to' => '<string>',
'cc' => '<string>',
'bcc' => '<string>',
'attachments' => [
'<unknown>'
],
'include_message' => true,
'is_reply' => true,
'delay_days' => 4503599627370495,
'delay_hours' => 4503599627370495,
'delay_minutes' => 4503599627370495,
'ai_node' => [
'purpose' => '<string>',
'cta' => '<string>',
'context' => '<string>',
'title' => '<string>',
'skeleton' => [
'subject' => '<string>',
'body' => '<string>',
'blocks' => [
[
'name' => '<string>',
'strategy' => '<string>',
'personalization' => [
'fields' => [
'<string>'
],
'approach' => '<string>',
'fallback' => '<string>'
],
'suggestion' => '<string>'
]
],
'exampleSubject' => '<string>',
'exampleBody' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.puffle.ai/api/campaigns/{id}/sequence/nodes/{nodeId}"
payload := strings.NewReader("{\n \"subject\": \"<string>\",\n \"body\": \"<string>\",\n \"body_html\": \"<string>\",\n \"signature\": \"<string>\",\n \"from_name\": \"<string>\",\n \"reply_to\": \"<string>\",\n \"cc\": \"<string>\",\n \"bcc\": \"<string>\",\n \"attachments\": [\n \"<unknown>\"\n ],\n \"include_message\": true,\n \"is_reply\": true,\n \"delay_days\": 4503599627370495,\n \"delay_hours\": 4503599627370495,\n \"delay_minutes\": 4503599627370495,\n \"ai_node\": {\n \"purpose\": \"<string>\",\n \"cta\": \"<string>\",\n \"context\": \"<string>\",\n \"title\": \"<string>\",\n \"skeleton\": {\n \"subject\": \"<string>\",\n \"body\": \"<string>\",\n \"blocks\": [\n {\n \"name\": \"<string>\",\n \"strategy\": \"<string>\",\n \"personalization\": {\n \"fields\": [\n \"<string>\"\n ],\n \"approach\": \"<string>\",\n \"fallback\": \"<string>\"\n },\n \"suggestion\": \"<string>\"\n }\n ],\n \"exampleSubject\": \"<string>\",\n \"exampleBody\": \"<string>\"\n }\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://app.puffle.ai/api/campaigns/{id}/sequence/nodes/{nodeId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"subject\": \"<string>\",\n \"body\": \"<string>\",\n \"body_html\": \"<string>\",\n \"signature\": \"<string>\",\n \"from_name\": \"<string>\",\n \"reply_to\": \"<string>\",\n \"cc\": \"<string>\",\n \"bcc\": \"<string>\",\n \"attachments\": [\n \"<unknown>\"\n ],\n \"include_message\": true,\n \"is_reply\": true,\n \"delay_days\": 4503599627370495,\n \"delay_hours\": 4503599627370495,\n \"delay_minutes\": 4503599627370495,\n \"ai_node\": {\n \"purpose\": \"<string>\",\n \"cta\": \"<string>\",\n \"context\": \"<string>\",\n \"title\": \"<string>\",\n \"skeleton\": {\n \"subject\": \"<string>\",\n \"body\": \"<string>\",\n \"blocks\": [\n {\n \"name\": \"<string>\",\n \"strategy\": \"<string>\",\n \"personalization\": {\n \"fields\": [\n \"<string>\"\n ],\n \"approach\": \"<string>\",\n \"fallback\": \"<string>\"\n },\n \"suggestion\": \"<string>\"\n }\n ],\n \"exampleSubject\": \"<string>\",\n \"exampleBody\": \"<string>\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.puffle.ai/api/campaigns/{id}/sequence/nodes/{nodeId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"subject\": \"<string>\",\n \"body\": \"<string>\",\n \"body_html\": \"<string>\",\n \"signature\": \"<string>\",\n \"from_name\": \"<string>\",\n \"reply_to\": \"<string>\",\n \"cc\": \"<string>\",\n \"bcc\": \"<string>\",\n \"attachments\": [\n \"<unknown>\"\n ],\n \"include_message\": true,\n \"is_reply\": true,\n \"delay_days\": 4503599627370495,\n \"delay_hours\": 4503599627370495,\n \"delay_minutes\": 4503599627370495,\n \"ai_node\": {\n \"purpose\": \"<string>\",\n \"cta\": \"<string>\",\n \"context\": \"<string>\",\n \"title\": \"<string>\",\n \"skeleton\": {\n \"subject\": \"<string>\",\n \"body\": \"<string>\",\n \"blocks\": [\n {\n \"name\": \"<string>\",\n \"strategy\": \"<string>\",\n \"personalization\": {\n \"fields\": [\n \"<string>\"\n ],\n \"approach\": \"<string>\",\n \"fallback\": \"<string>\"\n },\n \"suggestion\": \"<string>\"\n }\n ],\n \"exampleSubject\": \"<string>\",\n \"exampleBody\": \"<string>\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"node": {
"id": "<string>",
"campaign_id": "<string>",
"position": 4503599627370495,
"subject": "<string>",
"body": "<string>",
"body_html": "<string>",
"signature": "<string>",
"from_name": "<string>",
"reply_to": "<string>",
"cc": "<string>",
"bcc": "<string>",
"attachments": [
"<unknown>"
],
"include_message": true,
"is_reply": true,
"delay_days": 4503599627370495,
"delay_hours": 4503599627370495,
"delay_minutes": 4503599627370495,
"ai_node": {}
}
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}CLI:
AI extension fields are silently ignored unless the existing node
puffle campaign sequence node update --id <id> --node-id <node-id>
puffle campaign sequence node update --id <id> --node-id <node-id> --subject <subject> --body <body> --body-html <body-html> --signature <signature> --from-name <from-name> --reply-to <reply-to> --cc <cc> --bcc <bcc> --attachments <attachments> --include-message <include-message> --is-reply <is-reply> --delay-days <delay-days> --delay-hours <delay-hours> --delay-minutes <delay-minutes> --ai-node <ai-node>
Overview
Partial update of a single sequence node. Only fields present in the body are applied. Draft campaigns only — on any other status the server returns400 without writing.
Immutable fields:
type— to change a node’s kind, delete it and add a new one withaddSequenceNode.position— to reorder, use thePATCHverb on the collection (moveSequenceNode).campaign_id— set at creation.
Editable fields by node type
| Field | Applies to |
|---|---|
subject | email |
body | connection_request, message, email |
include_message | connection_request |
is_reply | email |
delay_days / delay_hours | delay |
ai_node.purpose / ai_node.output_type | ai |
type === "ai". If the extension row doesn’t exist yet, the server creates it; otherwise it’s updated in place.
Related operations
- Add a sequence node —
POSTto insert a new node. - Delete a sequence node —
DELETEthe collection with{ nodeId }to remove. - Get a campaign — returns
sequence_nodesin ordered form.
AI agent notes
Two-step AI node setup. After
addSequenceNode with { type: "ai" }, immediately PUT the same node with ai_node: { purpose, output_type } to populate the extension row. The builder UI does this in one motion; agents should do the same.Delay validation happens at launch. This endpoint does not enforce the “total delay must be 1 minute to 30 days” rule — that’s checked when you call POST /api/campaigns/{id}/launch. Read the campaign before launch and make sure the full draft sequence is intentional.Read-after-write. The response includes the fully-refreshed node with its AI extension flattened into node.ai_node. No separate GET needed.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Required range:
0 <= x <= 9007199254740991Required range:
0 <= x <= 9007199254740991Required range:
0 <= x <= 9007199254740991Show child attributes
Show child attributes
Response
Node updated successfully.
Show child attributes
Show child attributes
Was this page helpful?
⌘I