Skip to main content
PUT
/
v1
/
projects
/
{projectId}
/
agent
Update Agent Config
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": {}
}
'

Request

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

Path Parameters

projectId
string
required
The project ID

Headers

Authorization
string
required
Bearer token using your developer key

Body

All fields are optional. Only include the fields you want to update.
name
string
Agent display name (1-128 characters)
type
string
Agent type: monolithic or skill
status
string
Agent status: draft or published
globalPrompt
string | null
System-wide prompt
executionMode
string | null
smart, turbo, or balance
timezone
string | null
Timezone string (e.g., Asia/Taipei)
memoryEnabled
boolean
Enable/disable agent memory
beforeStartConfig
object | null
Pre-session execution config
postSessionWebhook
object | null
Post-session webhook config
postEvaluationConfig
object | null
Auto-evaluation config
placeholderMessages
object | null
Placeholder messages by language
variableConfigs
array | null
Variable extraction configs

Response

Returns the updated agent config.

Example

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
  }'