> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pathors.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Agent Config

> Update agent configuration (partial update)

## Request

```bash theme={null}
PUT https://api.pathors.com/v1/projects/{projectId}/agent
```

### Path Parameters

<ParamField path="projectId" type="string" required>
  The project ID
</ParamField>

### Headers

<ParamField header="Authorization" type="string" required>
  Bearer token using your developer key
</ParamField>

### Body

All fields are optional. Only include the fields you want to update.

<ParamField body="name" type="string">Agent display name (1-128 characters)</ParamField>
<ParamField body="type" type="string">Agent type: `monolithic` or `skill`</ParamField>
<ParamField body="status" type="string">Agent status: `draft` or `published`</ParamField>
<ParamField body="globalPrompt" type="string | null">System-wide prompt</ParamField>
<ParamField body="executionMode" type="string | null">`smart`, `turbo`, or `balance`</ParamField>
<ParamField body="timezone" type="string | null">Timezone string (e.g., `Asia/Taipei`)</ParamField>
<ParamField body="memoryEnabled" type="boolean">Enable/disable agent memory</ParamField>
<ParamField body="beforeStartConfig" type="object | null">Pre-session execution config</ParamField>
<ParamField body="postSessionWebhook" type="object | null">Post-session webhook config</ParamField>
<ParamField body="postEvaluationConfig" type="object | null">Auto-evaluation config</ParamField>
<ParamField body="placeholderMessages" type="object | null">Placeholder messages by language</ParamField>
<ParamField body="variableConfigs" type="array | null">Variable extraction configs</ParamField>

## Response

Returns the updated agent config.

### Example

```bash theme={null}
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
  }'
```
