---
title: "Update Workspace Agent"
method: PUT
path: "/api/workspaces/{workspace_id}/agents/{agent_id}"
---

# Update Workspace Agent

`PUT /api/workspaces/{workspace_id}/agents/{agent_id}`

## Path parameters

- `workspace_id` string, required
- `agent_id` string, required

## Request body

- AgentWriteRequest
  - `name` string, required
  - `gender` 'MALE' | 'FEMALE'
  - `voiceId` string[]
  - `voiceUrl` string, nullable
  - `primaryLanguage` string, nullable
  - `useCaseId` string, nullable
  - `temperature` number, nullable
  - `agentTalksFirst` boolean, nullable
  - `interruptable` boolean, nullable
  - `vadEnabled` boolean, nullable
  - `minimumTurnDuration` integer, nullable
  - `turnEndpointDelay` integer, nullable
  - `minimumInterruptionDuration` integer, nullable

## Response `200`

Successful Response

- OutcallerApiTypesWorkspaceManagementAgentResponse
  - `id` string, required
  - `name` string, required
  - `gender` string, required
  - `useCaseId` string, nullable
  - `voiceId` string[]
  - `voiceUrl` string, nullable
  - `primaryLanguage` string, nullable
  - `temperature` number
  - `agentTalksFirst` boolean
  - `interruptable` boolean
  - `vadEnabled` boolean
  - `minimumTurnDuration` integer
  - `turnEndpointDelay` integer
  - `minimumInterruptionDuration` integer
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `422` — Validation Error

## Changes

> 16 revisions in range; 12 could not be searched.

- **2026-07-31** `7c9aff2501f3` — 2 warning, 2 info
  - removed the request property `campaignId`
  - removed the optional property `campaignId` from the response with the `200` status
  - added the new optional request property `useCaseId`
  - added the optional property `useCaseId` to the response with the `200` status

[Change history](https://skmtc.dev/outcallerai/apis/fastapi/changes/api/workspaces/:workspace_id/agents/:agent_id/put.md)

---

[API](https://skmtc.dev/outcallerai/apis/fastapi.md) · [All operations](https://skmtc.dev/outcallerai/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/outcallerai/fastapi/revisions/6155db644bab/schema)
