curl --request PUT \
--url https://api.example.com/api/v1/chatflows/{id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"flowData": "<string>",
"deployed": true,
"isPublic": true,
"apikeyid": "<string>",
"chatbotConfig": "<string>",
"apiConfig": "<string>",
"analytic": "<string>",
"speechToText": "<string>",
"textToSpeech": "<string>",
"followUpPrompts": "<string>",
"category": "<string>",
"type": "<string>"
}
'{
"400": {},
"401": {},
"403": {},
"404": {},
"412": {},
"500": {},
"id": "<string>",
"name": "<string>",
"flowData": "<string>",
"deployed": true,
"isPublic": true,
"type": "<string>",
"workspaceId": "<string>",
"createdDate": "<string>",
"updatedDate": "<string>"
}Update an existing chatflow
curl --request PUT \
--url https://api.example.com/api/v1/chatflows/{id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"flowData": "<string>",
"deployed": true,
"isPublic": true,
"apikeyid": "<string>",
"chatbotConfig": "<string>",
"apiConfig": "<string>",
"analytic": "<string>",
"speechToText": "<string>",
"textToSpeech": "<string>",
"followUpPrompts": "<string>",
"category": "<string>",
"type": "<string>"
}
'{
"400": {},
"401": {},
"403": {},
"404": {},
"412": {},
"500": {},
"id": "<string>",
"name": "<string>",
"flowData": "<string>",
"deployed": true,
"isPublic": true,
"type": "<string>",
"workspaceId": "<string>",
"createdDate": "<string>",
"updatedDate": "<string>"
}chatflows:create, chatflows:update, agentflows:create, or agentflows:updatewelcomeMessage - Initial greeting messagebackgroundColor - UI background colorallowedOrigins - Array of allowed CORS originsallowedOriginsError - Custom error messagepostProcessing - Post-processing settingscurl -X PUT "https://your-flowise-instance.com/api/v1/chatflows/123e4567-e89b-12d3-a456-426614174000" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Updated Chatflow Name",
"deployed": true,
"chatbotConfig": "{\"welcomeMessage\":\"Welcome back!\"}"
}'
const chatflowId = '123e4567-e89b-12d3-a456-426614174000';
const response = await fetch(`https://your-flowise-instance.com/api/v1/chatflows/${chatflowId}`, {
method: 'PUT',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'Updated Chatflow Name',
deployed: true,
chatbotConfig: JSON.stringify({
welcomeMessage: 'Welcome back!'
})
})
});
const updatedChatflow = await response.json();
import requests
import json
chatflow_id = '123e4567-e89b-12d3-a456-426614174000'
response = requests.put(
f'https://your-flowise-instance.com/api/v1/chatflows/{chatflow_id}',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
json={
'name': 'Updated Chatflow Name',
'deployed': True,
'chatbotConfig': json.dumps({
'welcomeMessage': 'Welcome back!'
})
}
)
updated_chatflow = response.json()
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Updated Chatflow Name",
"flowData": "{\"nodes\":[{\"id\":\"node1\",\"type\":\"chatOpenAI\",\"data\":{}}],\"edges\":[]}",
"deployed": true,
"isPublic": false,
"apikeyid": "abc123",
"chatbotConfig": "{\"welcomeMessage\":\"Welcome back!\"}",
"apiConfig": null,
"analytic": null,
"speechToText": null,
"textToSpeech": null,
"followUpPrompts": null,
"type": "CHATFLOW",
"category": "Support",
"workspaceId": "workspace-123",
"createdDate": "2024-01-15T10:30:00.000Z",
"updatedDate": "2024-01-20T16:45:00.000Z"
}
{
"message": "Chatflow not found"
}