Skip to main content
POST
/
tool
/
optimize
/
{toolFunctionName}
Optimize Tool
curl --request POST \
  --url https://api.beamstudio.ai/tool/optimize/{toolFunctionName} \
  --header 'Content-Type: application/json' \
  --header 'current-workspace-id: <current-workspace-id>' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "agentId": "<string>",
  "taskNodes": [
    {
      "positive": true,
      "id": "<string>",
      "feedback": "<string>",
      "expectedOutput": "<string>"
    }
  ],
  "autoUpdateTool": true
}
'
{
  "threadId": "<string>"
}

Authorizations

x-api-key
string
header
required

Headers

current-workspace-id
string
required

Path Parameters

toolFunctionName
string
required

Body

application/json
agentId
string
required
taskNodes
object[]
autoUpdateTool
boolean

Response

201 - application/json

Tool optimization initiated successfully

threadId
string
required