Skip to main content
PUT
/
v1
/
projects
/
{projectId}
/
agent
更新 Agent 設定
curl --request PUT \
  --url https://api.pathors.com/v1/projects/{projectId}/agent \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "type": "<string>",
  "status": "<string>",
  "globalPrompt": {},
  "executionMode": {},
  "timezone": {},
  "memoryEnabled": true,
  "beforeStartConfig": {},
  "postSessionWebhook": {},
  "postEvaluationConfig": {},
  "placeholderMessages": {},
  "variableConfigs": {}
}
'

請求

PUT https://api.pathors.com/v1/projects/{projectId}/agent

路徑參數

projectId
string
required
專案 ID

標頭

Authorization
string
required
使用您的 Developer Key 進行 Bearer 令牌認證

請求主體

所有欄位皆為選填。只需包含您想更新的欄位。
name
string
Agent 顯示名稱(1-128 個字元)
type
string
Agent 類型:monolithicskill
status
string
Agent 狀態:draftpublished
globalPrompt
string | null
全系統提示
executionMode
string | null
smartturbobalance
timezone
string | null
時區字串(例如:Asia/Taipei
memoryEnabled
boolean
啟用/停用 Agent 記憶
beforeStartConfig
object | null
會話開始前的執行設定
postSessionWebhook
object | null
會話結束後的 Webhook 設定
postEvaluationConfig
object | null
自動評估設定
placeholderMessages
object | null
依語言區分的佔位訊息
variableConfigs
array | null
變數擷取設定

回應

回傳更新後的 Agent 設定。

範例

curl -X PUT https://api.pathors.com/v1/projects/{projectId}/agent \
  -H "Authorization: Bearer dk_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "globalPrompt": "You are a helpful assistant.",
    "executionMode": "smart",
    "memoryEnabled": true
  }'