Update Graph Node
curl --request PATCH \
--url https://api.beamstudio.ai/agent-graphs/update-node \
--header 'Content-Type: application/json' \
--header 'current-workspace-id: <current-workspace-id>' \
--header 'x-api-key: <api-key>' \
--data '
{
"node": {
"isAttachmentDataPulledIn": true,
"evaluationCriteria": [
"<string>"
],
"objective": "<string>",
"onError": "STOP",
"isEvaluationEnabled": false,
"autoRetryLimitWhenAccuracyIsLow": 1,
"enableAutoRetryWhenAccuracyIsLow": false,
"enableAutoRetryWhenFailure": false,
"autoRetryWhenAccuracyLessThan": 80,
"autoRetryCountWhenFailure": 1,
"autoRetryWaitTimeWhenFailureInMs": 1000,
"nodeType": "executionNode",
"nodeConfigurations": {
"llmModel": "<string>",
"fallbackModels": "<string>",
"timeToWaitValue": 123,
"linkedAgentGraphNodeId": "<string>",
"rule": "<string>",
"conditions": [
{
"conditions": [
{
"property": "<string>",
"value": "<string>"
}
]
}
],
"timeoutValue": 123
},
"autoRetryDescription": null,
"enableAutoRetryDescription": false,
"toolConfiguration": {
"toolFunctionName": "<string>",
"toolName": "<string>",
"prompt": "<string>",
"inputParams": [
{
"paramName": "customerId",
"fillType": "ai_fill",
"position": 1,
"question": "What is the customer ID?",
"linkParams": {
"toolId": "<string>",
"toolFunctionName": "<string>",
"outputParam": "<string>",
"outputId": "<string>"
},
"linkParamOutputId": "<string>",
"paramDescription": "The unique identifier for the customer record.",
"paramTip": "Enter the 8-digit customer ID from their account.",
"staticValue": "default_value",
"required": true,
"dataType": "string",
"isArray": false,
"typeOptions": {},
"outputExample": "CUST-12345678",
"reloadProps": false,
"remoteOptions": false,
"options": [
{
"label": "<string>",
"value": "<string>"
}
]
}
],
"outputParams": [
{
"position": 123,
"paramName": "<string>",
"paramDescription": "<string>",
"id": "<string>",
"agentToolConfigurationId": "<string>",
"isArray": true,
"typeOptions": {},
"parentId": "<string>",
"paramPath": "<string>",
"outputExample": "<string>"
}
],
"shortDescription": "<string>",
"description": "<string>",
"isAvailableToWorkspace": true,
"iconSrc": "<string>",
"preferredModel": "<string>",
"fallbackModels": "DEEP_SEEK,BEDROCK_CLAUDE_3_7_SONNET",
"requiresConsent": true,
"isMemoryTool": true,
"isBackgroundTool": true,
"memoryLookupInstruction": "<string>",
"isBatchExecutionEnabled": true,
"dynamicPropsId": "<string>",
"integrationProviderId": "<string>",
"code": "<string>",
"codeLanguage": "<string>"
},
"id": "<string>",
"customId": "<string>",
"isExitNode": false,
"xCoordinate": 123,
"yCoordinate": 123
},
"agentId": "<string>",
"graphId": "<string>"
}
'import requests
url = "https://api.beamstudio.ai/agent-graphs/update-node"
payload = {
"node": {
"isAttachmentDataPulledIn": True,
"evaluationCriteria": ["<string>"],
"objective": "<string>",
"onError": "STOP",
"isEvaluationEnabled": False,
"autoRetryLimitWhenAccuracyIsLow": 1,
"enableAutoRetryWhenAccuracyIsLow": False,
"enableAutoRetryWhenFailure": False,
"autoRetryWhenAccuracyLessThan": 80,
"autoRetryCountWhenFailure": 1,
"autoRetryWaitTimeWhenFailureInMs": 1000,
"nodeType": "executionNode",
"nodeConfigurations": {
"llmModel": "<string>",
"fallbackModels": "<string>",
"timeToWaitValue": 123,
"linkedAgentGraphNodeId": "<string>",
"rule": "<string>",
"conditions": [{ "conditions": [
{
"property": "<string>",
"value": "<string>"
}
] }],
"timeoutValue": 123
},
"autoRetryDescription": None,
"enableAutoRetryDescription": False,
"toolConfiguration": {
"toolFunctionName": "<string>",
"toolName": "<string>",
"prompt": "<string>",
"inputParams": [
{
"paramName": "customerId",
"fillType": "ai_fill",
"position": 1,
"question": "What is the customer ID?",
"linkParams": {
"toolId": "<string>",
"toolFunctionName": "<string>",
"outputParam": "<string>",
"outputId": "<string>"
},
"linkParamOutputId": "<string>",
"paramDescription": "The unique identifier for the customer record.",
"paramTip": "Enter the 8-digit customer ID from their account.",
"staticValue": "default_value",
"required": True,
"dataType": "string",
"isArray": False,
"typeOptions": {},
"outputExample": "CUST-12345678",
"reloadProps": False,
"remoteOptions": False,
"options": [
{
"label": "<string>",
"value": "<string>"
}
]
}
],
"outputParams": [
{
"position": 123,
"paramName": "<string>",
"paramDescription": "<string>",
"id": "<string>",
"agentToolConfigurationId": "<string>",
"isArray": True,
"typeOptions": {},
"parentId": "<string>",
"paramPath": "<string>",
"outputExample": "<string>"
}
],
"shortDescription": "<string>",
"description": "<string>",
"isAvailableToWorkspace": True,
"iconSrc": "<string>",
"preferredModel": "<string>",
"fallbackModels": "DEEP_SEEK,BEDROCK_CLAUDE_3_7_SONNET",
"requiresConsent": True,
"isMemoryTool": True,
"isBackgroundTool": True,
"memoryLookupInstruction": "<string>",
"isBatchExecutionEnabled": True,
"dynamicPropsId": "<string>",
"integrationProviderId": "<string>",
"code": "<string>",
"codeLanguage": "<string>"
},
"id": "<string>",
"customId": "<string>",
"isExitNode": False,
"xCoordinate": 123,
"yCoordinate": 123
},
"agentId": "<string>",
"graphId": "<string>"
}
headers = {
"current-workspace-id": "<current-workspace-id>",
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'current-workspace-id': '<current-workspace-id>',
'x-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
node: {
isAttachmentDataPulledIn: true,
evaluationCriteria: ['<string>'],
objective: '<string>',
onError: 'STOP',
isEvaluationEnabled: false,
autoRetryLimitWhenAccuracyIsLow: 1,
enableAutoRetryWhenAccuracyIsLow: false,
enableAutoRetryWhenFailure: false,
autoRetryWhenAccuracyLessThan: 80,
autoRetryCountWhenFailure: 1,
autoRetryWaitTimeWhenFailureInMs: 1000,
nodeType: 'executionNode',
nodeConfigurations: {
llmModel: '<string>',
fallbackModels: '<string>',
timeToWaitValue: 123,
linkedAgentGraphNodeId: '<string>',
rule: '<string>',
conditions: [{conditions: [{property: '<string>', value: '<string>'}]}],
timeoutValue: 123
},
autoRetryDescription: null,
enableAutoRetryDescription: false,
toolConfiguration: {
toolFunctionName: '<string>',
toolName: '<string>',
prompt: '<string>',
inputParams: [
{
paramName: 'customerId',
fillType: 'ai_fill',
position: 1,
question: 'What is the customer ID?',
linkParams: {
toolId: '<string>',
toolFunctionName: '<string>',
outputParam: '<string>',
outputId: '<string>'
},
linkParamOutputId: '<string>',
paramDescription: 'The unique identifier for the customer record.',
paramTip: 'Enter the 8-digit customer ID from their account.',
staticValue: 'default_value',
required: true,
dataType: 'string',
isArray: false,
typeOptions: {},
outputExample: 'CUST-12345678',
reloadProps: false,
remoteOptions: false,
options: [{label: '<string>', value: '<string>'}]
}
],
outputParams: [
{
position: 123,
paramName: '<string>',
paramDescription: '<string>',
id: '<string>',
agentToolConfigurationId: '<string>',
isArray: true,
typeOptions: {},
parentId: '<string>',
paramPath: '<string>',
outputExample: '<string>'
}
],
shortDescription: '<string>',
description: '<string>',
isAvailableToWorkspace: true,
iconSrc: '<string>',
preferredModel: '<string>',
fallbackModels: 'DEEP_SEEK,BEDROCK_CLAUDE_3_7_SONNET',
requiresConsent: true,
isMemoryTool: true,
isBackgroundTool: true,
memoryLookupInstruction: '<string>',
isBatchExecutionEnabled: true,
dynamicPropsId: '<string>',
integrationProviderId: '<string>',
code: '<string>',
codeLanguage: '<string>'
},
id: '<string>',
customId: '<string>',
isExitNode: false,
xCoordinate: 123,
yCoordinate: 123
},
agentId: '<string>',
graphId: '<string>'
})
};
fetch('https://api.beamstudio.ai/agent-graphs/update-node', 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://api.beamstudio.ai/agent-graphs/update-node",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'node' => [
'isAttachmentDataPulledIn' => true,
'evaluationCriteria' => [
'<string>'
],
'objective' => '<string>',
'onError' => 'STOP',
'isEvaluationEnabled' => false,
'autoRetryLimitWhenAccuracyIsLow' => 1,
'enableAutoRetryWhenAccuracyIsLow' => false,
'enableAutoRetryWhenFailure' => false,
'autoRetryWhenAccuracyLessThan' => 80,
'autoRetryCountWhenFailure' => 1,
'autoRetryWaitTimeWhenFailureInMs' => 1000,
'nodeType' => 'executionNode',
'nodeConfigurations' => [
'llmModel' => '<string>',
'fallbackModels' => '<string>',
'timeToWaitValue' => 123,
'linkedAgentGraphNodeId' => '<string>',
'rule' => '<string>',
'conditions' => [
[
'conditions' => [
[
'property' => '<string>',
'value' => '<string>'
]
]
]
],
'timeoutValue' => 123
],
'autoRetryDescription' => null,
'enableAutoRetryDescription' => false,
'toolConfiguration' => [
'toolFunctionName' => '<string>',
'toolName' => '<string>',
'prompt' => '<string>',
'inputParams' => [
[
'paramName' => 'customerId',
'fillType' => 'ai_fill',
'position' => 1,
'question' => 'What is the customer ID?',
'linkParams' => [
'toolId' => '<string>',
'toolFunctionName' => '<string>',
'outputParam' => '<string>',
'outputId' => '<string>'
],
'linkParamOutputId' => '<string>',
'paramDescription' => 'The unique identifier for the customer record.',
'paramTip' => 'Enter the 8-digit customer ID from their account.',
'staticValue' => 'default_value',
'required' => true,
'dataType' => 'string',
'isArray' => false,
'typeOptions' => [
],
'outputExample' => 'CUST-12345678',
'reloadProps' => false,
'remoteOptions' => false,
'options' => [
[
'label' => '<string>',
'value' => '<string>'
]
]
]
],
'outputParams' => [
[
'position' => 123,
'paramName' => '<string>',
'paramDescription' => '<string>',
'id' => '<string>',
'agentToolConfigurationId' => '<string>',
'isArray' => true,
'typeOptions' => [
],
'parentId' => '<string>',
'paramPath' => '<string>',
'outputExample' => '<string>'
]
],
'shortDescription' => '<string>',
'description' => '<string>',
'isAvailableToWorkspace' => true,
'iconSrc' => '<string>',
'preferredModel' => '<string>',
'fallbackModels' => 'DEEP_SEEK,BEDROCK_CLAUDE_3_7_SONNET',
'requiresConsent' => true,
'isMemoryTool' => true,
'isBackgroundTool' => true,
'memoryLookupInstruction' => '<string>',
'isBatchExecutionEnabled' => true,
'dynamicPropsId' => '<string>',
'integrationProviderId' => '<string>',
'code' => '<string>',
'codeLanguage' => '<string>'
],
'id' => '<string>',
'customId' => '<string>',
'isExitNode' => false,
'xCoordinate' => 123,
'yCoordinate' => 123
],
'agentId' => '<string>',
'graphId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"current-workspace-id: <current-workspace-id>",
"x-api-key: <api-key>"
],
]);
$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://api.beamstudio.ai/agent-graphs/update-node"
payload := strings.NewReader("{\n \"node\": {\n \"isAttachmentDataPulledIn\": true,\n \"evaluationCriteria\": [\n \"<string>\"\n ],\n \"objective\": \"<string>\",\n \"onError\": \"STOP\",\n \"isEvaluationEnabled\": false,\n \"autoRetryLimitWhenAccuracyIsLow\": 1,\n \"enableAutoRetryWhenAccuracyIsLow\": false,\n \"enableAutoRetryWhenFailure\": false,\n \"autoRetryWhenAccuracyLessThan\": 80,\n \"autoRetryCountWhenFailure\": 1,\n \"autoRetryWaitTimeWhenFailureInMs\": 1000,\n \"nodeType\": \"executionNode\",\n \"nodeConfigurations\": {\n \"llmModel\": \"<string>\",\n \"fallbackModels\": \"<string>\",\n \"timeToWaitValue\": 123,\n \"linkedAgentGraphNodeId\": \"<string>\",\n \"rule\": \"<string>\",\n \"conditions\": [\n {\n \"conditions\": [\n {\n \"property\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"timeoutValue\": 123\n },\n \"autoRetryDescription\": null,\n \"enableAutoRetryDescription\": false,\n \"toolConfiguration\": {\n \"toolFunctionName\": \"<string>\",\n \"toolName\": \"<string>\",\n \"prompt\": \"<string>\",\n \"inputParams\": [\n {\n \"paramName\": \"customerId\",\n \"fillType\": \"ai_fill\",\n \"position\": 1,\n \"question\": \"What is the customer ID?\",\n \"linkParams\": {\n \"toolId\": \"<string>\",\n \"toolFunctionName\": \"<string>\",\n \"outputParam\": \"<string>\",\n \"outputId\": \"<string>\"\n },\n \"linkParamOutputId\": \"<string>\",\n \"paramDescription\": \"The unique identifier for the customer record.\",\n \"paramTip\": \"Enter the 8-digit customer ID from their account.\",\n \"staticValue\": \"default_value\",\n \"required\": true,\n \"dataType\": \"string\",\n \"isArray\": false,\n \"typeOptions\": {},\n \"outputExample\": \"CUST-12345678\",\n \"reloadProps\": false,\n \"remoteOptions\": false,\n \"options\": [\n {\n \"label\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"outputParams\": [\n {\n \"position\": 123,\n \"paramName\": \"<string>\",\n \"paramDescription\": \"<string>\",\n \"id\": \"<string>\",\n \"agentToolConfigurationId\": \"<string>\",\n \"isArray\": true,\n \"typeOptions\": {},\n \"parentId\": \"<string>\",\n \"paramPath\": \"<string>\",\n \"outputExample\": \"<string>\"\n }\n ],\n \"shortDescription\": \"<string>\",\n \"description\": \"<string>\",\n \"isAvailableToWorkspace\": true,\n \"iconSrc\": \"<string>\",\n \"preferredModel\": \"<string>\",\n \"fallbackModels\": \"DEEP_SEEK,BEDROCK_CLAUDE_3_7_SONNET\",\n \"requiresConsent\": true,\n \"isMemoryTool\": true,\n \"isBackgroundTool\": true,\n \"memoryLookupInstruction\": \"<string>\",\n \"isBatchExecutionEnabled\": true,\n \"dynamicPropsId\": \"<string>\",\n \"integrationProviderId\": \"<string>\",\n \"code\": \"<string>\",\n \"codeLanguage\": \"<string>\"\n },\n \"id\": \"<string>\",\n \"customId\": \"<string>\",\n \"isExitNode\": false,\n \"xCoordinate\": 123,\n \"yCoordinate\": 123\n },\n \"agentId\": \"<string>\",\n \"graphId\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("current-workspace-id", "<current-workspace-id>")
req.Header.Add("x-api-key", "<api-key>")
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.patch("https://api.beamstudio.ai/agent-graphs/update-node")
.header("current-workspace-id", "<current-workspace-id>")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"node\": {\n \"isAttachmentDataPulledIn\": true,\n \"evaluationCriteria\": [\n \"<string>\"\n ],\n \"objective\": \"<string>\",\n \"onError\": \"STOP\",\n \"isEvaluationEnabled\": false,\n \"autoRetryLimitWhenAccuracyIsLow\": 1,\n \"enableAutoRetryWhenAccuracyIsLow\": false,\n \"enableAutoRetryWhenFailure\": false,\n \"autoRetryWhenAccuracyLessThan\": 80,\n \"autoRetryCountWhenFailure\": 1,\n \"autoRetryWaitTimeWhenFailureInMs\": 1000,\n \"nodeType\": \"executionNode\",\n \"nodeConfigurations\": {\n \"llmModel\": \"<string>\",\n \"fallbackModels\": \"<string>\",\n \"timeToWaitValue\": 123,\n \"linkedAgentGraphNodeId\": \"<string>\",\n \"rule\": \"<string>\",\n \"conditions\": [\n {\n \"conditions\": [\n {\n \"property\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"timeoutValue\": 123\n },\n \"autoRetryDescription\": null,\n \"enableAutoRetryDescription\": false,\n \"toolConfiguration\": {\n \"toolFunctionName\": \"<string>\",\n \"toolName\": \"<string>\",\n \"prompt\": \"<string>\",\n \"inputParams\": [\n {\n \"paramName\": \"customerId\",\n \"fillType\": \"ai_fill\",\n \"position\": 1,\n \"question\": \"What is the customer ID?\",\n \"linkParams\": {\n \"toolId\": \"<string>\",\n \"toolFunctionName\": \"<string>\",\n \"outputParam\": \"<string>\",\n \"outputId\": \"<string>\"\n },\n \"linkParamOutputId\": \"<string>\",\n \"paramDescription\": \"The unique identifier for the customer record.\",\n \"paramTip\": \"Enter the 8-digit customer ID from their account.\",\n \"staticValue\": \"default_value\",\n \"required\": true,\n \"dataType\": \"string\",\n \"isArray\": false,\n \"typeOptions\": {},\n \"outputExample\": \"CUST-12345678\",\n \"reloadProps\": false,\n \"remoteOptions\": false,\n \"options\": [\n {\n \"label\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"outputParams\": [\n {\n \"position\": 123,\n \"paramName\": \"<string>\",\n \"paramDescription\": \"<string>\",\n \"id\": \"<string>\",\n \"agentToolConfigurationId\": \"<string>\",\n \"isArray\": true,\n \"typeOptions\": {},\n \"parentId\": \"<string>\",\n \"paramPath\": \"<string>\",\n \"outputExample\": \"<string>\"\n }\n ],\n \"shortDescription\": \"<string>\",\n \"description\": \"<string>\",\n \"isAvailableToWorkspace\": true,\n \"iconSrc\": \"<string>\",\n \"preferredModel\": \"<string>\",\n \"fallbackModels\": \"DEEP_SEEK,BEDROCK_CLAUDE_3_7_SONNET\",\n \"requiresConsent\": true,\n \"isMemoryTool\": true,\n \"isBackgroundTool\": true,\n \"memoryLookupInstruction\": \"<string>\",\n \"isBatchExecutionEnabled\": true,\n \"dynamicPropsId\": \"<string>\",\n \"integrationProviderId\": \"<string>\",\n \"code\": \"<string>\",\n \"codeLanguage\": \"<string>\"\n },\n \"id\": \"<string>\",\n \"customId\": \"<string>\",\n \"isExitNode\": false,\n \"xCoordinate\": 123,\n \"yCoordinate\": 123\n },\n \"agentId\": \"<string>\",\n \"graphId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.beamstudio.ai/agent-graphs/update-node")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["current-workspace-id"] = '<current-workspace-id>'
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"node\": {\n \"isAttachmentDataPulledIn\": true,\n \"evaluationCriteria\": [\n \"<string>\"\n ],\n \"objective\": \"<string>\",\n \"onError\": \"STOP\",\n \"isEvaluationEnabled\": false,\n \"autoRetryLimitWhenAccuracyIsLow\": 1,\n \"enableAutoRetryWhenAccuracyIsLow\": false,\n \"enableAutoRetryWhenFailure\": false,\n \"autoRetryWhenAccuracyLessThan\": 80,\n \"autoRetryCountWhenFailure\": 1,\n \"autoRetryWaitTimeWhenFailureInMs\": 1000,\n \"nodeType\": \"executionNode\",\n \"nodeConfigurations\": {\n \"llmModel\": \"<string>\",\n \"fallbackModels\": \"<string>\",\n \"timeToWaitValue\": 123,\n \"linkedAgentGraphNodeId\": \"<string>\",\n \"rule\": \"<string>\",\n \"conditions\": [\n {\n \"conditions\": [\n {\n \"property\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"timeoutValue\": 123\n },\n \"autoRetryDescription\": null,\n \"enableAutoRetryDescription\": false,\n \"toolConfiguration\": {\n \"toolFunctionName\": \"<string>\",\n \"toolName\": \"<string>\",\n \"prompt\": \"<string>\",\n \"inputParams\": [\n {\n \"paramName\": \"customerId\",\n \"fillType\": \"ai_fill\",\n \"position\": 1,\n \"question\": \"What is the customer ID?\",\n \"linkParams\": {\n \"toolId\": \"<string>\",\n \"toolFunctionName\": \"<string>\",\n \"outputParam\": \"<string>\",\n \"outputId\": \"<string>\"\n },\n \"linkParamOutputId\": \"<string>\",\n \"paramDescription\": \"The unique identifier for the customer record.\",\n \"paramTip\": \"Enter the 8-digit customer ID from their account.\",\n \"staticValue\": \"default_value\",\n \"required\": true,\n \"dataType\": \"string\",\n \"isArray\": false,\n \"typeOptions\": {},\n \"outputExample\": \"CUST-12345678\",\n \"reloadProps\": false,\n \"remoteOptions\": false,\n \"options\": [\n {\n \"label\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"outputParams\": [\n {\n \"position\": 123,\n \"paramName\": \"<string>\",\n \"paramDescription\": \"<string>\",\n \"id\": \"<string>\",\n \"agentToolConfigurationId\": \"<string>\",\n \"isArray\": true,\n \"typeOptions\": {},\n \"parentId\": \"<string>\",\n \"paramPath\": \"<string>\",\n \"outputExample\": \"<string>\"\n }\n ],\n \"shortDescription\": \"<string>\",\n \"description\": \"<string>\",\n \"isAvailableToWorkspace\": true,\n \"iconSrc\": \"<string>\",\n \"preferredModel\": \"<string>\",\n \"fallbackModels\": \"DEEP_SEEK,BEDROCK_CLAUDE_3_7_SONNET\",\n \"requiresConsent\": true,\n \"isMemoryTool\": true,\n \"isBackgroundTool\": true,\n \"memoryLookupInstruction\": \"<string>\",\n \"isBatchExecutionEnabled\": true,\n \"dynamicPropsId\": \"<string>\",\n \"integrationProviderId\": \"<string>\",\n \"code\": \"<string>\",\n \"codeLanguage\": \"<string>\"\n },\n \"id\": \"<string>\",\n \"customId\": \"<string>\",\n \"isExitNode\": false,\n \"xCoordinate\": 123,\n \"yCoordinate\": 123\n },\n \"agentId\": \"<string>\",\n \"graphId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"customId": "<string>",
"objective": "<string>",
"evaluationCriteria": [
"<string>"
],
"isEntryNode": true,
"isExitNode": true,
"isEvaluationEnabled": true,
"autoRetryWhenAccuracyLessThan": 123,
"autoRetryLimitWhenAccuracyIsLow": 123,
"enableAutoRetryWhenAccuracyIsLow": true,
"enableAutoRetryWhenFailure": true,
"autoRetryDescription": null,
"enableAutoRetryDescription": false,
"autoRetryCountWhenFailure": 123,
"autoRetryWaitTimeWhenFailureInMs": 123,
"isAttachmentDataPulledIn": true,
"isEdited": true,
"createdAt": "2023-11-07T05:31:56Z",
"toolConfiguration": {
"id": "<string>",
"toolFunctionName": "<string>",
"toolName": "<string>",
"requiresConsent": true,
"isMemoryTool": true,
"isBackgroundTool": true,
"isBatchExecutionEnabled": true,
"inputParams": [
{
"id": "param-123e4567-e89b-12d3-a456-426614174000",
"paramName": "customerId",
"fillType": "ai_fill",
"agentToolConfigurationId": "config-123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"linkOutputParam": {
"id": "param-123e4567-e89b-12d3-a456-426614174000",
"agentToolConfigurationId": "config-123e4567-e89b-12d3-a456-426614174000",
"isArray": false,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"paramName": "customerData",
"position": 1,
"paramDescription": "The customer data retrieved from the database.",
"parentId": "<string>",
"paramPath": "response.data.customer",
"outputExample": "{\"name\": \"John Doe\", \"email\": \"john@example.com\"}",
"dataType": "string",
"typeOptions": {}
},
"linkedOutputParamRules": [
{
"elementKey": "<string>",
"agentToolConfigurationInputParamsId": "<string>",
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"comparisonValue": "<string>"
}
],
"position": 1,
"question": "What is the customer ID?",
"linkParamOutputId": "<string>",
"paramDescription": "The unique identifier for the customer record.",
"paramTip": "Enter the 8-digit customer ID from their account.",
"staticValue": "default_value",
"required": true,
"dataType": "string",
"outputExample": "CUST-12345678",
"reloadProps": false,
"remoteOptions": false,
"options": [
{
"label": "<string>",
"value": "<string>"
}
],
"linkedParamRulePrompt": "<string>",
"ruleConditionConfig": {}
}
],
"outputParams": [
{
"id": "param-123e4567-e89b-12d3-a456-426614174000",
"agentToolConfigurationId": "config-123e4567-e89b-12d3-a456-426614174000",
"isArray": false,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"paramName": "customerData",
"position": 1,
"paramDescription": "The customer data retrieved from the database.",
"parentId": "<string>",
"paramPath": "response.data.customer",
"outputExample": "{\"name\": \"John Doe\", \"email\": \"john@example.com\"}",
"dataType": "string",
"typeOptions": {}
}
],
"iconSrc": "<string>",
"description": "<string>",
"memoryLookupInstruction": "<string>",
"accuracyScore": 123,
"integrationProviderId": "<string>",
"dynamicPropsId": "<string>",
"fallbackModels": "<string>",
"code": "<string>",
"codeLanguage": "<string>",
"originalTool": {
"toolName": "<string>",
"toolFunctionName": "<string>",
"allowWaiting": true,
"iconSrc": "<string>",
"type": "<string>",
"prompt": "<string>",
"description": "<string>",
"preferredModel": "<string>",
"meta": {},
"integrationId": "<string>",
"isIntegrationRequired": true,
"isIntegrationConnected": true,
"integration": {
"systemIntegrationProvider": "<string>",
"systemIntegrationIdentifier": "<string>",
"customAuthParameters": {}
},
"inputParams": [
{
"paramName": "customerId",
"fillType": "ai_fill",
"position": 1,
"question": "What is the customer ID?",
"linkParams": {
"toolId": "<string>",
"toolFunctionName": "<string>",
"outputParam": "<string>",
"outputId": "<string>"
},
"linkParamOutputId": "<string>",
"paramDescription": "The unique identifier for the customer record.",
"paramTip": "Enter the 8-digit customer ID from their account.",
"staticValue": "default_value",
"required": true,
"dataType": "string",
"isArray": false,
"typeOptions": {},
"outputExample": "CUST-12345678",
"reloadProps": false,
"remoteOptions": false,
"options": [
{
"label": "<string>",
"value": "<string>"
}
],
"linkedOutputParamRulesData": {
"linkedParamConfigurations": {},
"rules": [
{
"elementKey": "<string>",
"comparisonValue": "<string>"
}
],
"linkedParamRulePrompt": "<string>"
}
}
],
"outputParams": [
{
"position": 123,
"paramName": "<string>",
"paramDescription": "<string>",
"id": "<string>",
"agentToolConfigurationId": "<string>",
"isArray": true,
"typeOptions": {},
"parentId": "<string>",
"paramPath": "<string>",
"outputExample": "<string>"
}
]
},
"preferredModel": "<string>"
},
"childEdges": [
{
"id": "<string>",
"sourceAgentGraphNodeId": "<string>",
"targetAgentGraphNodeId": "<string>",
"isAttachmentDataPulledIn": true,
"conditionGroups": [
{
"agentGraphEdgeId": "<string>",
"edge": {
"sourceAgentGraphNodeId": "<string>",
"targetAgentGraphNodeId": "<string>",
"isAttachmentDataPulledIn": true,
"conditionGroups": "<array>",
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"condition": "<string>"
},
"rules": [
{
"agentGraphEdgeConditionGroupId": "<string>",
"sourceAgentToolConfigurationOutputParamsId": "<string>",
"group": "<unknown>",
"sourceOutputParam": {
"id": "param-123e4567-e89b-12d3-a456-426614174000",
"agentToolConfigurationId": "config-123e4567-e89b-12d3-a456-426614174000",
"isArray": false,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"paramName": "customerData",
"position": 1,
"paramDescription": "The customer data retrieved from the database.",
"parentId": "<string>",
"paramPath": "response.data.customer",
"outputExample": "{\"name\": \"John Doe\", \"email\": \"john@example.com\"}",
"dataType": "string",
"typeOptions": {}
},
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"comparisonValue": "<string>",
"comparisonAgentToolConfigurationOutputParamsId": "<string>",
"comparisonOutputParam": {
"id": "param-123e4567-e89b-12d3-a456-426614174000",
"agentToolConfigurationId": "config-123e4567-e89b-12d3-a456-426614174000",
"isArray": false,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"paramName": "customerData",
"position": 1,
"paramDescription": "The customer data retrieved from the database.",
"parentId": "<string>",
"paramPath": "response.data.customer",
"outputExample": "{\"name\": \"John Doe\", \"email\": \"john@example.com\"}",
"dataType": "string",
"typeOptions": {}
}
}
],
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"condition": "<string>"
}
],
"parentEdges": [
{
"id": "<string>",
"sourceAgentGraphNodeId": "<string>",
"targetAgentGraphNodeId": "<string>",
"isAttachmentDataPulledIn": true,
"conditionGroups": [
{
"agentGraphEdgeId": "<string>",
"edge": {
"sourceAgentGraphNodeId": "<string>",
"targetAgentGraphNodeId": "<string>",
"isAttachmentDataPulledIn": true,
"conditionGroups": "<array>",
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"condition": "<string>"
},
"rules": [
{
"agentGraphEdgeConditionGroupId": "<string>",
"sourceAgentToolConfigurationOutputParamsId": "<string>",
"group": "<unknown>",
"sourceOutputParam": {
"id": "param-123e4567-e89b-12d3-a456-426614174000",
"agentToolConfigurationId": "config-123e4567-e89b-12d3-a456-426614174000",
"isArray": false,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"paramName": "customerData",
"position": 1,
"paramDescription": "The customer data retrieved from the database.",
"parentId": "<string>",
"paramPath": "response.data.customer",
"outputExample": "{\"name\": \"John Doe\", \"email\": \"john@example.com\"}",
"dataType": "string",
"typeOptions": {}
},
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"comparisonValue": "<string>",
"comparisonAgentToolConfigurationOutputParamsId": "<string>",
"comparisonOutputParam": {
"id": "param-123e4567-e89b-12d3-a456-426614174000",
"agentToolConfigurationId": "config-123e4567-e89b-12d3-a456-426614174000",
"isArray": false,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"paramName": "customerData",
"position": 1,
"paramDescription": "The customer data retrieved from the database.",
"parentId": "<string>",
"paramPath": "response.data.customer",
"outputExample": "{\"name\": \"John Doe\", \"email\": \"john@example.com\"}",
"dataType": "string",
"typeOptions": {}
}
}
],
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"condition": "<string>"
}
],
"xCoordinate": 123,
"yCoordinate": 123,
"nodeConfigurations": {
"llmModel": "<string>",
"fallbackModels": "<string>",
"timeToWaitValue": 123,
"linkedAgentGraphNodeId": "<string>",
"rule": "<string>",
"conditions": [
{
"conditions": [
{
"property": "<string>",
"value": "<string>"
}
]
}
],
"timeoutValue": 123
}
}Agent Graph
Update Graph Node
Update Graph Node
PATCH
/
agent-graphs
/
update-node
Update Graph Node
curl --request PATCH \
--url https://api.beamstudio.ai/agent-graphs/update-node \
--header 'Content-Type: application/json' \
--header 'current-workspace-id: <current-workspace-id>' \
--header 'x-api-key: <api-key>' \
--data '
{
"node": {
"isAttachmentDataPulledIn": true,
"evaluationCriteria": [
"<string>"
],
"objective": "<string>",
"onError": "STOP",
"isEvaluationEnabled": false,
"autoRetryLimitWhenAccuracyIsLow": 1,
"enableAutoRetryWhenAccuracyIsLow": false,
"enableAutoRetryWhenFailure": false,
"autoRetryWhenAccuracyLessThan": 80,
"autoRetryCountWhenFailure": 1,
"autoRetryWaitTimeWhenFailureInMs": 1000,
"nodeType": "executionNode",
"nodeConfigurations": {
"llmModel": "<string>",
"fallbackModels": "<string>",
"timeToWaitValue": 123,
"linkedAgentGraphNodeId": "<string>",
"rule": "<string>",
"conditions": [
{
"conditions": [
{
"property": "<string>",
"value": "<string>"
}
]
}
],
"timeoutValue": 123
},
"autoRetryDescription": null,
"enableAutoRetryDescription": false,
"toolConfiguration": {
"toolFunctionName": "<string>",
"toolName": "<string>",
"prompt": "<string>",
"inputParams": [
{
"paramName": "customerId",
"fillType": "ai_fill",
"position": 1,
"question": "What is the customer ID?",
"linkParams": {
"toolId": "<string>",
"toolFunctionName": "<string>",
"outputParam": "<string>",
"outputId": "<string>"
},
"linkParamOutputId": "<string>",
"paramDescription": "The unique identifier for the customer record.",
"paramTip": "Enter the 8-digit customer ID from their account.",
"staticValue": "default_value",
"required": true,
"dataType": "string",
"isArray": false,
"typeOptions": {},
"outputExample": "CUST-12345678",
"reloadProps": false,
"remoteOptions": false,
"options": [
{
"label": "<string>",
"value": "<string>"
}
]
}
],
"outputParams": [
{
"position": 123,
"paramName": "<string>",
"paramDescription": "<string>",
"id": "<string>",
"agentToolConfigurationId": "<string>",
"isArray": true,
"typeOptions": {},
"parentId": "<string>",
"paramPath": "<string>",
"outputExample": "<string>"
}
],
"shortDescription": "<string>",
"description": "<string>",
"isAvailableToWorkspace": true,
"iconSrc": "<string>",
"preferredModel": "<string>",
"fallbackModels": "DEEP_SEEK,BEDROCK_CLAUDE_3_7_SONNET",
"requiresConsent": true,
"isMemoryTool": true,
"isBackgroundTool": true,
"memoryLookupInstruction": "<string>",
"isBatchExecutionEnabled": true,
"dynamicPropsId": "<string>",
"integrationProviderId": "<string>",
"code": "<string>",
"codeLanguage": "<string>"
},
"id": "<string>",
"customId": "<string>",
"isExitNode": false,
"xCoordinate": 123,
"yCoordinate": 123
},
"agentId": "<string>",
"graphId": "<string>"
}
'import requests
url = "https://api.beamstudio.ai/agent-graphs/update-node"
payload = {
"node": {
"isAttachmentDataPulledIn": True,
"evaluationCriteria": ["<string>"],
"objective": "<string>",
"onError": "STOP",
"isEvaluationEnabled": False,
"autoRetryLimitWhenAccuracyIsLow": 1,
"enableAutoRetryWhenAccuracyIsLow": False,
"enableAutoRetryWhenFailure": False,
"autoRetryWhenAccuracyLessThan": 80,
"autoRetryCountWhenFailure": 1,
"autoRetryWaitTimeWhenFailureInMs": 1000,
"nodeType": "executionNode",
"nodeConfigurations": {
"llmModel": "<string>",
"fallbackModels": "<string>",
"timeToWaitValue": 123,
"linkedAgentGraphNodeId": "<string>",
"rule": "<string>",
"conditions": [{ "conditions": [
{
"property": "<string>",
"value": "<string>"
}
] }],
"timeoutValue": 123
},
"autoRetryDescription": None,
"enableAutoRetryDescription": False,
"toolConfiguration": {
"toolFunctionName": "<string>",
"toolName": "<string>",
"prompt": "<string>",
"inputParams": [
{
"paramName": "customerId",
"fillType": "ai_fill",
"position": 1,
"question": "What is the customer ID?",
"linkParams": {
"toolId": "<string>",
"toolFunctionName": "<string>",
"outputParam": "<string>",
"outputId": "<string>"
},
"linkParamOutputId": "<string>",
"paramDescription": "The unique identifier for the customer record.",
"paramTip": "Enter the 8-digit customer ID from their account.",
"staticValue": "default_value",
"required": True,
"dataType": "string",
"isArray": False,
"typeOptions": {},
"outputExample": "CUST-12345678",
"reloadProps": False,
"remoteOptions": False,
"options": [
{
"label": "<string>",
"value": "<string>"
}
]
}
],
"outputParams": [
{
"position": 123,
"paramName": "<string>",
"paramDescription": "<string>",
"id": "<string>",
"agentToolConfigurationId": "<string>",
"isArray": True,
"typeOptions": {},
"parentId": "<string>",
"paramPath": "<string>",
"outputExample": "<string>"
}
],
"shortDescription": "<string>",
"description": "<string>",
"isAvailableToWorkspace": True,
"iconSrc": "<string>",
"preferredModel": "<string>",
"fallbackModels": "DEEP_SEEK,BEDROCK_CLAUDE_3_7_SONNET",
"requiresConsent": True,
"isMemoryTool": True,
"isBackgroundTool": True,
"memoryLookupInstruction": "<string>",
"isBatchExecutionEnabled": True,
"dynamicPropsId": "<string>",
"integrationProviderId": "<string>",
"code": "<string>",
"codeLanguage": "<string>"
},
"id": "<string>",
"customId": "<string>",
"isExitNode": False,
"xCoordinate": 123,
"yCoordinate": 123
},
"agentId": "<string>",
"graphId": "<string>"
}
headers = {
"current-workspace-id": "<current-workspace-id>",
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'current-workspace-id': '<current-workspace-id>',
'x-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
node: {
isAttachmentDataPulledIn: true,
evaluationCriteria: ['<string>'],
objective: '<string>',
onError: 'STOP',
isEvaluationEnabled: false,
autoRetryLimitWhenAccuracyIsLow: 1,
enableAutoRetryWhenAccuracyIsLow: false,
enableAutoRetryWhenFailure: false,
autoRetryWhenAccuracyLessThan: 80,
autoRetryCountWhenFailure: 1,
autoRetryWaitTimeWhenFailureInMs: 1000,
nodeType: 'executionNode',
nodeConfigurations: {
llmModel: '<string>',
fallbackModels: '<string>',
timeToWaitValue: 123,
linkedAgentGraphNodeId: '<string>',
rule: '<string>',
conditions: [{conditions: [{property: '<string>', value: '<string>'}]}],
timeoutValue: 123
},
autoRetryDescription: null,
enableAutoRetryDescription: false,
toolConfiguration: {
toolFunctionName: '<string>',
toolName: '<string>',
prompt: '<string>',
inputParams: [
{
paramName: 'customerId',
fillType: 'ai_fill',
position: 1,
question: 'What is the customer ID?',
linkParams: {
toolId: '<string>',
toolFunctionName: '<string>',
outputParam: '<string>',
outputId: '<string>'
},
linkParamOutputId: '<string>',
paramDescription: 'The unique identifier for the customer record.',
paramTip: 'Enter the 8-digit customer ID from their account.',
staticValue: 'default_value',
required: true,
dataType: 'string',
isArray: false,
typeOptions: {},
outputExample: 'CUST-12345678',
reloadProps: false,
remoteOptions: false,
options: [{label: '<string>', value: '<string>'}]
}
],
outputParams: [
{
position: 123,
paramName: '<string>',
paramDescription: '<string>',
id: '<string>',
agentToolConfigurationId: '<string>',
isArray: true,
typeOptions: {},
parentId: '<string>',
paramPath: '<string>',
outputExample: '<string>'
}
],
shortDescription: '<string>',
description: '<string>',
isAvailableToWorkspace: true,
iconSrc: '<string>',
preferredModel: '<string>',
fallbackModels: 'DEEP_SEEK,BEDROCK_CLAUDE_3_7_SONNET',
requiresConsent: true,
isMemoryTool: true,
isBackgroundTool: true,
memoryLookupInstruction: '<string>',
isBatchExecutionEnabled: true,
dynamicPropsId: '<string>',
integrationProviderId: '<string>',
code: '<string>',
codeLanguage: '<string>'
},
id: '<string>',
customId: '<string>',
isExitNode: false,
xCoordinate: 123,
yCoordinate: 123
},
agentId: '<string>',
graphId: '<string>'
})
};
fetch('https://api.beamstudio.ai/agent-graphs/update-node', 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://api.beamstudio.ai/agent-graphs/update-node",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'node' => [
'isAttachmentDataPulledIn' => true,
'evaluationCriteria' => [
'<string>'
],
'objective' => '<string>',
'onError' => 'STOP',
'isEvaluationEnabled' => false,
'autoRetryLimitWhenAccuracyIsLow' => 1,
'enableAutoRetryWhenAccuracyIsLow' => false,
'enableAutoRetryWhenFailure' => false,
'autoRetryWhenAccuracyLessThan' => 80,
'autoRetryCountWhenFailure' => 1,
'autoRetryWaitTimeWhenFailureInMs' => 1000,
'nodeType' => 'executionNode',
'nodeConfigurations' => [
'llmModel' => '<string>',
'fallbackModels' => '<string>',
'timeToWaitValue' => 123,
'linkedAgentGraphNodeId' => '<string>',
'rule' => '<string>',
'conditions' => [
[
'conditions' => [
[
'property' => '<string>',
'value' => '<string>'
]
]
]
],
'timeoutValue' => 123
],
'autoRetryDescription' => null,
'enableAutoRetryDescription' => false,
'toolConfiguration' => [
'toolFunctionName' => '<string>',
'toolName' => '<string>',
'prompt' => '<string>',
'inputParams' => [
[
'paramName' => 'customerId',
'fillType' => 'ai_fill',
'position' => 1,
'question' => 'What is the customer ID?',
'linkParams' => [
'toolId' => '<string>',
'toolFunctionName' => '<string>',
'outputParam' => '<string>',
'outputId' => '<string>'
],
'linkParamOutputId' => '<string>',
'paramDescription' => 'The unique identifier for the customer record.',
'paramTip' => 'Enter the 8-digit customer ID from their account.',
'staticValue' => 'default_value',
'required' => true,
'dataType' => 'string',
'isArray' => false,
'typeOptions' => [
],
'outputExample' => 'CUST-12345678',
'reloadProps' => false,
'remoteOptions' => false,
'options' => [
[
'label' => '<string>',
'value' => '<string>'
]
]
]
],
'outputParams' => [
[
'position' => 123,
'paramName' => '<string>',
'paramDescription' => '<string>',
'id' => '<string>',
'agentToolConfigurationId' => '<string>',
'isArray' => true,
'typeOptions' => [
],
'parentId' => '<string>',
'paramPath' => '<string>',
'outputExample' => '<string>'
]
],
'shortDescription' => '<string>',
'description' => '<string>',
'isAvailableToWorkspace' => true,
'iconSrc' => '<string>',
'preferredModel' => '<string>',
'fallbackModels' => 'DEEP_SEEK,BEDROCK_CLAUDE_3_7_SONNET',
'requiresConsent' => true,
'isMemoryTool' => true,
'isBackgroundTool' => true,
'memoryLookupInstruction' => '<string>',
'isBatchExecutionEnabled' => true,
'dynamicPropsId' => '<string>',
'integrationProviderId' => '<string>',
'code' => '<string>',
'codeLanguage' => '<string>'
],
'id' => '<string>',
'customId' => '<string>',
'isExitNode' => false,
'xCoordinate' => 123,
'yCoordinate' => 123
],
'agentId' => '<string>',
'graphId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"current-workspace-id: <current-workspace-id>",
"x-api-key: <api-key>"
],
]);
$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://api.beamstudio.ai/agent-graphs/update-node"
payload := strings.NewReader("{\n \"node\": {\n \"isAttachmentDataPulledIn\": true,\n \"evaluationCriteria\": [\n \"<string>\"\n ],\n \"objective\": \"<string>\",\n \"onError\": \"STOP\",\n \"isEvaluationEnabled\": false,\n \"autoRetryLimitWhenAccuracyIsLow\": 1,\n \"enableAutoRetryWhenAccuracyIsLow\": false,\n \"enableAutoRetryWhenFailure\": false,\n \"autoRetryWhenAccuracyLessThan\": 80,\n \"autoRetryCountWhenFailure\": 1,\n \"autoRetryWaitTimeWhenFailureInMs\": 1000,\n \"nodeType\": \"executionNode\",\n \"nodeConfigurations\": {\n \"llmModel\": \"<string>\",\n \"fallbackModels\": \"<string>\",\n \"timeToWaitValue\": 123,\n \"linkedAgentGraphNodeId\": \"<string>\",\n \"rule\": \"<string>\",\n \"conditions\": [\n {\n \"conditions\": [\n {\n \"property\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"timeoutValue\": 123\n },\n \"autoRetryDescription\": null,\n \"enableAutoRetryDescription\": false,\n \"toolConfiguration\": {\n \"toolFunctionName\": \"<string>\",\n \"toolName\": \"<string>\",\n \"prompt\": \"<string>\",\n \"inputParams\": [\n {\n \"paramName\": \"customerId\",\n \"fillType\": \"ai_fill\",\n \"position\": 1,\n \"question\": \"What is the customer ID?\",\n \"linkParams\": {\n \"toolId\": \"<string>\",\n \"toolFunctionName\": \"<string>\",\n \"outputParam\": \"<string>\",\n \"outputId\": \"<string>\"\n },\n \"linkParamOutputId\": \"<string>\",\n \"paramDescription\": \"The unique identifier for the customer record.\",\n \"paramTip\": \"Enter the 8-digit customer ID from their account.\",\n \"staticValue\": \"default_value\",\n \"required\": true,\n \"dataType\": \"string\",\n \"isArray\": false,\n \"typeOptions\": {},\n \"outputExample\": \"CUST-12345678\",\n \"reloadProps\": false,\n \"remoteOptions\": false,\n \"options\": [\n {\n \"label\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"outputParams\": [\n {\n \"position\": 123,\n \"paramName\": \"<string>\",\n \"paramDescription\": \"<string>\",\n \"id\": \"<string>\",\n \"agentToolConfigurationId\": \"<string>\",\n \"isArray\": true,\n \"typeOptions\": {},\n \"parentId\": \"<string>\",\n \"paramPath\": \"<string>\",\n \"outputExample\": \"<string>\"\n }\n ],\n \"shortDescription\": \"<string>\",\n \"description\": \"<string>\",\n \"isAvailableToWorkspace\": true,\n \"iconSrc\": \"<string>\",\n \"preferredModel\": \"<string>\",\n \"fallbackModels\": \"DEEP_SEEK,BEDROCK_CLAUDE_3_7_SONNET\",\n \"requiresConsent\": true,\n \"isMemoryTool\": true,\n \"isBackgroundTool\": true,\n \"memoryLookupInstruction\": \"<string>\",\n \"isBatchExecutionEnabled\": true,\n \"dynamicPropsId\": \"<string>\",\n \"integrationProviderId\": \"<string>\",\n \"code\": \"<string>\",\n \"codeLanguage\": \"<string>\"\n },\n \"id\": \"<string>\",\n \"customId\": \"<string>\",\n \"isExitNode\": false,\n \"xCoordinate\": 123,\n \"yCoordinate\": 123\n },\n \"agentId\": \"<string>\",\n \"graphId\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("current-workspace-id", "<current-workspace-id>")
req.Header.Add("x-api-key", "<api-key>")
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.patch("https://api.beamstudio.ai/agent-graphs/update-node")
.header("current-workspace-id", "<current-workspace-id>")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"node\": {\n \"isAttachmentDataPulledIn\": true,\n \"evaluationCriteria\": [\n \"<string>\"\n ],\n \"objective\": \"<string>\",\n \"onError\": \"STOP\",\n \"isEvaluationEnabled\": false,\n \"autoRetryLimitWhenAccuracyIsLow\": 1,\n \"enableAutoRetryWhenAccuracyIsLow\": false,\n \"enableAutoRetryWhenFailure\": false,\n \"autoRetryWhenAccuracyLessThan\": 80,\n \"autoRetryCountWhenFailure\": 1,\n \"autoRetryWaitTimeWhenFailureInMs\": 1000,\n \"nodeType\": \"executionNode\",\n \"nodeConfigurations\": {\n \"llmModel\": \"<string>\",\n \"fallbackModels\": \"<string>\",\n \"timeToWaitValue\": 123,\n \"linkedAgentGraphNodeId\": \"<string>\",\n \"rule\": \"<string>\",\n \"conditions\": [\n {\n \"conditions\": [\n {\n \"property\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"timeoutValue\": 123\n },\n \"autoRetryDescription\": null,\n \"enableAutoRetryDescription\": false,\n \"toolConfiguration\": {\n \"toolFunctionName\": \"<string>\",\n \"toolName\": \"<string>\",\n \"prompt\": \"<string>\",\n \"inputParams\": [\n {\n \"paramName\": \"customerId\",\n \"fillType\": \"ai_fill\",\n \"position\": 1,\n \"question\": \"What is the customer ID?\",\n \"linkParams\": {\n \"toolId\": \"<string>\",\n \"toolFunctionName\": \"<string>\",\n \"outputParam\": \"<string>\",\n \"outputId\": \"<string>\"\n },\n \"linkParamOutputId\": \"<string>\",\n \"paramDescription\": \"The unique identifier for the customer record.\",\n \"paramTip\": \"Enter the 8-digit customer ID from their account.\",\n \"staticValue\": \"default_value\",\n \"required\": true,\n \"dataType\": \"string\",\n \"isArray\": false,\n \"typeOptions\": {},\n \"outputExample\": \"CUST-12345678\",\n \"reloadProps\": false,\n \"remoteOptions\": false,\n \"options\": [\n {\n \"label\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"outputParams\": [\n {\n \"position\": 123,\n \"paramName\": \"<string>\",\n \"paramDescription\": \"<string>\",\n \"id\": \"<string>\",\n \"agentToolConfigurationId\": \"<string>\",\n \"isArray\": true,\n \"typeOptions\": {},\n \"parentId\": \"<string>\",\n \"paramPath\": \"<string>\",\n \"outputExample\": \"<string>\"\n }\n ],\n \"shortDescription\": \"<string>\",\n \"description\": \"<string>\",\n \"isAvailableToWorkspace\": true,\n \"iconSrc\": \"<string>\",\n \"preferredModel\": \"<string>\",\n \"fallbackModels\": \"DEEP_SEEK,BEDROCK_CLAUDE_3_7_SONNET\",\n \"requiresConsent\": true,\n \"isMemoryTool\": true,\n \"isBackgroundTool\": true,\n \"memoryLookupInstruction\": \"<string>\",\n \"isBatchExecutionEnabled\": true,\n \"dynamicPropsId\": \"<string>\",\n \"integrationProviderId\": \"<string>\",\n \"code\": \"<string>\",\n \"codeLanguage\": \"<string>\"\n },\n \"id\": \"<string>\",\n \"customId\": \"<string>\",\n \"isExitNode\": false,\n \"xCoordinate\": 123,\n \"yCoordinate\": 123\n },\n \"agentId\": \"<string>\",\n \"graphId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.beamstudio.ai/agent-graphs/update-node")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["current-workspace-id"] = '<current-workspace-id>'
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"node\": {\n \"isAttachmentDataPulledIn\": true,\n \"evaluationCriteria\": [\n \"<string>\"\n ],\n \"objective\": \"<string>\",\n \"onError\": \"STOP\",\n \"isEvaluationEnabled\": false,\n \"autoRetryLimitWhenAccuracyIsLow\": 1,\n \"enableAutoRetryWhenAccuracyIsLow\": false,\n \"enableAutoRetryWhenFailure\": false,\n \"autoRetryWhenAccuracyLessThan\": 80,\n \"autoRetryCountWhenFailure\": 1,\n \"autoRetryWaitTimeWhenFailureInMs\": 1000,\n \"nodeType\": \"executionNode\",\n \"nodeConfigurations\": {\n \"llmModel\": \"<string>\",\n \"fallbackModels\": \"<string>\",\n \"timeToWaitValue\": 123,\n \"linkedAgentGraphNodeId\": \"<string>\",\n \"rule\": \"<string>\",\n \"conditions\": [\n {\n \"conditions\": [\n {\n \"property\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"timeoutValue\": 123\n },\n \"autoRetryDescription\": null,\n \"enableAutoRetryDescription\": false,\n \"toolConfiguration\": {\n \"toolFunctionName\": \"<string>\",\n \"toolName\": \"<string>\",\n \"prompt\": \"<string>\",\n \"inputParams\": [\n {\n \"paramName\": \"customerId\",\n \"fillType\": \"ai_fill\",\n \"position\": 1,\n \"question\": \"What is the customer ID?\",\n \"linkParams\": {\n \"toolId\": \"<string>\",\n \"toolFunctionName\": \"<string>\",\n \"outputParam\": \"<string>\",\n \"outputId\": \"<string>\"\n },\n \"linkParamOutputId\": \"<string>\",\n \"paramDescription\": \"The unique identifier for the customer record.\",\n \"paramTip\": \"Enter the 8-digit customer ID from their account.\",\n \"staticValue\": \"default_value\",\n \"required\": true,\n \"dataType\": \"string\",\n \"isArray\": false,\n \"typeOptions\": {},\n \"outputExample\": \"CUST-12345678\",\n \"reloadProps\": false,\n \"remoteOptions\": false,\n \"options\": [\n {\n \"label\": \"<string>\",\n \"value\": \"<string>\"\n }\n ]\n }\n ],\n \"outputParams\": [\n {\n \"position\": 123,\n \"paramName\": \"<string>\",\n \"paramDescription\": \"<string>\",\n \"id\": \"<string>\",\n \"agentToolConfigurationId\": \"<string>\",\n \"isArray\": true,\n \"typeOptions\": {},\n \"parentId\": \"<string>\",\n \"paramPath\": \"<string>\",\n \"outputExample\": \"<string>\"\n }\n ],\n \"shortDescription\": \"<string>\",\n \"description\": \"<string>\",\n \"isAvailableToWorkspace\": true,\n \"iconSrc\": \"<string>\",\n \"preferredModel\": \"<string>\",\n \"fallbackModels\": \"DEEP_SEEK,BEDROCK_CLAUDE_3_7_SONNET\",\n \"requiresConsent\": true,\n \"isMemoryTool\": true,\n \"isBackgroundTool\": true,\n \"memoryLookupInstruction\": \"<string>\",\n \"isBatchExecutionEnabled\": true,\n \"dynamicPropsId\": \"<string>\",\n \"integrationProviderId\": \"<string>\",\n \"code\": \"<string>\",\n \"codeLanguage\": \"<string>\"\n },\n \"id\": \"<string>\",\n \"customId\": \"<string>\",\n \"isExitNode\": false,\n \"xCoordinate\": 123,\n \"yCoordinate\": 123\n },\n \"agentId\": \"<string>\",\n \"graphId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"customId": "<string>",
"objective": "<string>",
"evaluationCriteria": [
"<string>"
],
"isEntryNode": true,
"isExitNode": true,
"isEvaluationEnabled": true,
"autoRetryWhenAccuracyLessThan": 123,
"autoRetryLimitWhenAccuracyIsLow": 123,
"enableAutoRetryWhenAccuracyIsLow": true,
"enableAutoRetryWhenFailure": true,
"autoRetryDescription": null,
"enableAutoRetryDescription": false,
"autoRetryCountWhenFailure": 123,
"autoRetryWaitTimeWhenFailureInMs": 123,
"isAttachmentDataPulledIn": true,
"isEdited": true,
"createdAt": "2023-11-07T05:31:56Z",
"toolConfiguration": {
"id": "<string>",
"toolFunctionName": "<string>",
"toolName": "<string>",
"requiresConsent": true,
"isMemoryTool": true,
"isBackgroundTool": true,
"isBatchExecutionEnabled": true,
"inputParams": [
{
"id": "param-123e4567-e89b-12d3-a456-426614174000",
"paramName": "customerId",
"fillType": "ai_fill",
"agentToolConfigurationId": "config-123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"linkOutputParam": {
"id": "param-123e4567-e89b-12d3-a456-426614174000",
"agentToolConfigurationId": "config-123e4567-e89b-12d3-a456-426614174000",
"isArray": false,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"paramName": "customerData",
"position": 1,
"paramDescription": "The customer data retrieved from the database.",
"parentId": "<string>",
"paramPath": "response.data.customer",
"outputExample": "{\"name\": \"John Doe\", \"email\": \"john@example.com\"}",
"dataType": "string",
"typeOptions": {}
},
"linkedOutputParamRules": [
{
"elementKey": "<string>",
"agentToolConfigurationInputParamsId": "<string>",
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"comparisonValue": "<string>"
}
],
"position": 1,
"question": "What is the customer ID?",
"linkParamOutputId": "<string>",
"paramDescription": "The unique identifier for the customer record.",
"paramTip": "Enter the 8-digit customer ID from their account.",
"staticValue": "default_value",
"required": true,
"dataType": "string",
"outputExample": "CUST-12345678",
"reloadProps": false,
"remoteOptions": false,
"options": [
{
"label": "<string>",
"value": "<string>"
}
],
"linkedParamRulePrompt": "<string>",
"ruleConditionConfig": {}
}
],
"outputParams": [
{
"id": "param-123e4567-e89b-12d3-a456-426614174000",
"agentToolConfigurationId": "config-123e4567-e89b-12d3-a456-426614174000",
"isArray": false,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"paramName": "customerData",
"position": 1,
"paramDescription": "The customer data retrieved from the database.",
"parentId": "<string>",
"paramPath": "response.data.customer",
"outputExample": "{\"name\": \"John Doe\", \"email\": \"john@example.com\"}",
"dataType": "string",
"typeOptions": {}
}
],
"iconSrc": "<string>",
"description": "<string>",
"memoryLookupInstruction": "<string>",
"accuracyScore": 123,
"integrationProviderId": "<string>",
"dynamicPropsId": "<string>",
"fallbackModels": "<string>",
"code": "<string>",
"codeLanguage": "<string>",
"originalTool": {
"toolName": "<string>",
"toolFunctionName": "<string>",
"allowWaiting": true,
"iconSrc": "<string>",
"type": "<string>",
"prompt": "<string>",
"description": "<string>",
"preferredModel": "<string>",
"meta": {},
"integrationId": "<string>",
"isIntegrationRequired": true,
"isIntegrationConnected": true,
"integration": {
"systemIntegrationProvider": "<string>",
"systemIntegrationIdentifier": "<string>",
"customAuthParameters": {}
},
"inputParams": [
{
"paramName": "customerId",
"fillType": "ai_fill",
"position": 1,
"question": "What is the customer ID?",
"linkParams": {
"toolId": "<string>",
"toolFunctionName": "<string>",
"outputParam": "<string>",
"outputId": "<string>"
},
"linkParamOutputId": "<string>",
"paramDescription": "The unique identifier for the customer record.",
"paramTip": "Enter the 8-digit customer ID from their account.",
"staticValue": "default_value",
"required": true,
"dataType": "string",
"isArray": false,
"typeOptions": {},
"outputExample": "CUST-12345678",
"reloadProps": false,
"remoteOptions": false,
"options": [
{
"label": "<string>",
"value": "<string>"
}
],
"linkedOutputParamRulesData": {
"linkedParamConfigurations": {},
"rules": [
{
"elementKey": "<string>",
"comparisonValue": "<string>"
}
],
"linkedParamRulePrompt": "<string>"
}
}
],
"outputParams": [
{
"position": 123,
"paramName": "<string>",
"paramDescription": "<string>",
"id": "<string>",
"agentToolConfigurationId": "<string>",
"isArray": true,
"typeOptions": {},
"parentId": "<string>",
"paramPath": "<string>",
"outputExample": "<string>"
}
]
},
"preferredModel": "<string>"
},
"childEdges": [
{
"id": "<string>",
"sourceAgentGraphNodeId": "<string>",
"targetAgentGraphNodeId": "<string>",
"isAttachmentDataPulledIn": true,
"conditionGroups": [
{
"agentGraphEdgeId": "<string>",
"edge": {
"sourceAgentGraphNodeId": "<string>",
"targetAgentGraphNodeId": "<string>",
"isAttachmentDataPulledIn": true,
"conditionGroups": "<array>",
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"condition": "<string>"
},
"rules": [
{
"agentGraphEdgeConditionGroupId": "<string>",
"sourceAgentToolConfigurationOutputParamsId": "<string>",
"group": "<unknown>",
"sourceOutputParam": {
"id": "param-123e4567-e89b-12d3-a456-426614174000",
"agentToolConfigurationId": "config-123e4567-e89b-12d3-a456-426614174000",
"isArray": false,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"paramName": "customerData",
"position": 1,
"paramDescription": "The customer data retrieved from the database.",
"parentId": "<string>",
"paramPath": "response.data.customer",
"outputExample": "{\"name\": \"John Doe\", \"email\": \"john@example.com\"}",
"dataType": "string",
"typeOptions": {}
},
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"comparisonValue": "<string>",
"comparisonAgentToolConfigurationOutputParamsId": "<string>",
"comparisonOutputParam": {
"id": "param-123e4567-e89b-12d3-a456-426614174000",
"agentToolConfigurationId": "config-123e4567-e89b-12d3-a456-426614174000",
"isArray": false,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"paramName": "customerData",
"position": 1,
"paramDescription": "The customer data retrieved from the database.",
"parentId": "<string>",
"paramPath": "response.data.customer",
"outputExample": "{\"name\": \"John Doe\", \"email\": \"john@example.com\"}",
"dataType": "string",
"typeOptions": {}
}
}
],
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"condition": "<string>"
}
],
"parentEdges": [
{
"id": "<string>",
"sourceAgentGraphNodeId": "<string>",
"targetAgentGraphNodeId": "<string>",
"isAttachmentDataPulledIn": true,
"conditionGroups": [
{
"agentGraphEdgeId": "<string>",
"edge": {
"sourceAgentGraphNodeId": "<string>",
"targetAgentGraphNodeId": "<string>",
"isAttachmentDataPulledIn": true,
"conditionGroups": "<array>",
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"condition": "<string>"
},
"rules": [
{
"agentGraphEdgeConditionGroupId": "<string>",
"sourceAgentToolConfigurationOutputParamsId": "<string>",
"group": "<unknown>",
"sourceOutputParam": {
"id": "param-123e4567-e89b-12d3-a456-426614174000",
"agentToolConfigurationId": "config-123e4567-e89b-12d3-a456-426614174000",
"isArray": false,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"paramName": "customerData",
"position": 1,
"paramDescription": "The customer data retrieved from the database.",
"parentId": "<string>",
"paramPath": "response.data.customer",
"outputExample": "{\"name\": \"John Doe\", \"email\": \"john@example.com\"}",
"dataType": "string",
"typeOptions": {}
},
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"comparisonValue": "<string>",
"comparisonAgentToolConfigurationOutputParamsId": "<string>",
"comparisonOutputParam": {
"id": "param-123e4567-e89b-12d3-a456-426614174000",
"agentToolConfigurationId": "config-123e4567-e89b-12d3-a456-426614174000",
"isArray": false,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"paramName": "customerData",
"position": 1,
"paramDescription": "The customer data retrieved from the database.",
"parentId": "<string>",
"paramPath": "response.data.customer",
"outputExample": "{\"name\": \"John Doe\", \"email\": \"john@example.com\"}",
"dataType": "string",
"typeOptions": {}
}
}
],
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"condition": "<string>"
}
],
"xCoordinate": 123,
"yCoordinate": 123,
"nodeConfigurations": {
"llmModel": "<string>",
"fallbackModels": "<string>",
"timeToWaitValue": 123,
"linkedAgentGraphNodeId": "<string>",
"rule": "<string>",
"conditions": [
{
"conditions": [
{
"property": "<string>",
"value": "<string>"
}
]
}
],
"timeoutValue": 123
}
}Authorizations
Headers
Body
application/json
Response
200 - application/json
Graph node updated successfully
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Available options:
CONTINUE, STOP Available options:
executionNode, conditionNode, waitingNode, entryNode, exitNode Show child attributes
Show child attributes
⌘I