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

# Update Digital Employee

> Updates one or more fields of an existing digital employee.

### **Code Examples**

```http cURL theme={null}
curl --request PUT \
  --url 'https://api.tess.im/digital-employees/123' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --header 'x-workspace-id: YOUR_WORKSPACE_ID' \
  --data '{
    "name": "Finance Ops Updated",
    "status": "active",
    "execution_approval_mode": "approval_required"
  }'
```

```json Node.js theme={null}
const axios = require('axios');

const employeeId = 123;

const config = {
  method: 'put',
  url: `https://api.tess.im/digital-employees/${employeeId}`,
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json',
    'x-workspace-id': 'YOUR_WORKSPACE_ID'
  },
  data: {
    name: 'Finance Ops Updated',
    status: 'active',
    execution_approval_mode: 'approval_required'
  }
};

try {
  const response = await axios(config);
  console.log(response.data);
} catch (error) {
  console.error(error);
}
```

```python Python theme={null}
import requests

employee_id = 123
url = f"https://api.tess.im/digital-employees/{employee_id}"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json",
    "x-workspace-id": "YOUR_WORKSPACE_ID"
}
payload = {
    "name": "Finance Ops Updated",
    "status": "active",
    "execution_approval_mode": "approval_required"
}

response = requests.put(url, json=payload, headers=headers)
print(response.json())
```

```php PHP theme={null}
<?php
$employeeId = 123;
$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.tess.im/digital-employees/{$employeeId}",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    "name" => "Finance Ops Updated",
    "status" => "active",
    "execution_approval_mode" => "approval_required"
  ]),
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer YOUR_API_KEY",
    "Content-Type: application/json",
    "x-workspace-id: YOUR_WORKSPACE_ID"
  ]
]);

$response = curl_exec($curl);
curl_close($curl);
echo $response;
```

```java Java theme={null}
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

int employeeId = 123;
String body = """
    {
      "name": "Finance Ops Updated",
      "status": "active",
      "execution_approval_mode": "approval_required"
    }
    """;

HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://api.tess.im/digital-employees/" + employeeId))
    .header("Authorization", "Bearer YOUR_API_KEY")
    .header("Content-Type", "application/json")
    .header("x-workspace-id", "YOUR_WORKSPACE_ID")
    .PUT(HttpRequest.BodyPublishers.ofString(body))
    .build();

HttpResponse<String> response = client.send(request,
    HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
```

```go Go theme={null}
package main

import (
    "fmt"
    "io/ioutil"
    "net/http"
    "strings"
)

func main() {
    employeeId := 123
    payload := strings.NewReader(`{
        "name": "Finance Ops Updated",
        "status": "active",
        "execution_approval_mode": "approval_required"
    }`)

    client := &http.Client{}
    url := fmt.Sprintf("https://api.tess.im/digital-employees/%d", employeeId)
    req, _ := http.NewRequest("PUT", url, payload)
    req.Header.Add("Authorization", "Bearer YOUR_API_KEY")
    req.Header.Add("Content-Type", "application/json")
    req.Header.Add("x-workspace-id", "YOUR_WORKSPACE_ID")
    resp, _ := client.Do(req)
    defer resp.Body.Close()
    body, _ := ioutil.ReadAll(resp.Body)
    fmt.Println(string(body))
}
```

```jsonnet .NET theme={null}
using System.Net.Http;
using System.Text;

int employeeId = 123;

using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "Bearer YOUR_API_KEY");
client.DefaultRequestHeaders.Add("x-workspace-id", "YOUR_WORKSPACE_ID");

var json = """
    {
      "name": "Finance Ops Updated",
      "status": "active",
      "execution_approval_mode": "approval_required"
    }
    """;

var content = new StringContent(json, Encoding.UTF8, "application/json");
var response = await client.PutAsync(
    $"https://api.tess.im/digital-employees/{employeeId}", content);
Console.WriteLine(await response.Content.ReadAsStringAsync());
```

```ruby Ruby theme={null}
require 'uri'
require 'net/http'
require 'json'

employee_id = 123
uri = URI("https://api.tess.im/digital-employees/#{employee_id}")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true

request = Net::HTTP::Put.new(uri)
request['Authorization'] = 'Bearer YOUR_API_KEY'
request['Content-Type'] = 'application/json'
request['x-workspace-id'] = 'YOUR_WORKSPACE_ID'
request.body = {
  name: 'Finance Ops Updated',
  status: 'active',
  execution_approval_mode: 'approval_required'
}.to_json

response = http.request(request)
puts response.read_body
```

### **Headers**

> [!NOTE]
>
> Pass your API key as a Bearer token in the `Authorization` header.

**x-workspace-id** `integer` *required*

ID of the workspace.

### **Path Parameters**

**employeeId** `integer` *required*

ID of the digital employee to update.

### **Request Body**

All fields are optional. Only the fields provided will be updated.

**name** `string`

Employee name. Max 255 characters.

**status** `string`

Set employee status. Values: `idle` or `active`.

**execution\_mode** `string`

Execution mode. Values: `agent` (autonomous) or `chat`.

**execution\_approval\_mode** `string`

Whether runs require manual approval. Values: `autonomous` or `approval_required`.

**heartbeat\_cron** `string`

Cron expression for scheduled runs (e.g. `0 9 * * 1-5`). Max 128 characters.

**heartbeat\_schedule\_json** `object`

Schedule builder config (alternative to `heartbeat_cron`).

**execution\_timezone** `string`

Timezone for schedule execution (e.g. `America/Sao_Paulo`). Max 64 characters.

**default\_interval\_seconds** `integer`

Minimum seconds between runs. Either `0` (no limit) or `>= 60`.

**system\_prompt\_override** `string`

Custom system prompt for this employee. Max 4096 characters.

**model\_override** `string`

Override the AI model (e.g. `tess-6`). Max 100 characters.

**tools\_override** `string`

Override tool configuration. Max 255 characters.

**search\_intelligence\_enabled** `boolean`

Enable Search Intelligence for runs.

**connectors\_json** `array`

Array of connector identifiers to enable.

**skills\_override\_json** `array`

Array of skill identifiers to override.

**max\_consecutive\_failures** `integer`

Max consecutive run failures before auto-pause. Range: 1–100.

**execution\_order** `integer`

Execution priority order. Range: 0–999.

**share\_memory\_with\_owner** `boolean`

Whether the employee shares memory with its owner agent.

**knowledge\_base\_file\_ids** `array`

Array of file IDs for the knowledge base. Max 20 entries.

**avatar** `string`

Avatar image URL. Max 2048 characters.

**avatar\_thumbnail** `string`

Thumbnail image URL. Max 2048 characters.

**personality\_type** `string`

MBTI personality type (e.g. `INTJ`).

**wake\_policy\_json** `object`

Wake policy configuration object.

**budget\_policy\_json** `object`

Budget policy configuration object.

**goal\_json** `object`

Goal configuration object.

**work\_policy\_json** `object`

Work policy configuration object.

**voice\_realtime\_voice** `string`

Voice identifier for real-time voice mode.

**delegation\_config\_json** `object`

Delegation configuration object. Supported fields:

* `trigger`: `on_delegate_tag` | `on_schedule` | `on_parent_complete`
* `parallel`: boolean — run children in parallel
* `context_mode`: `summary` | `full` | `none`
* `max_concurrent_children`: integer (1–10)
* `inherit_budget`: boolean
* `auto_delegate_on_schedule`: boolean

### **Response**

```json theme={null}
{
  "data": {
    "id": 123,
    "name": "Finance Ops Updated",
    "status": "active"
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.