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

# Update Human Agent Api

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

## Path parameters

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

## Request body

- HumanAgentWriteRequest
  - `useCaseId` string, required
  - `name` string, required
  - `phone` string, required
  - `agent_id` string, nullable
  - `countryCode` string, nullable

## Response `200`

Successful Response

- HumanAgentEnvelopeResponse
  - `success` boolean
  - `human_agent` HumanAgentResponse, required
  - `message` string, required

## Other responses

- `422` — Validation Error

## Changes

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

- **2026-07-31** `7c9aff2501f3` — 7 breaking, 1 warning
  - added the new required request property `useCaseId`
  - removed the required property `human_agent/campaignId` from the response with the `200` status
  - removed the required property `human_agent/createdAt` from the response with the `200` status
  - removed the required property `human_agent/id` from the response with the `200` status
  - …4 more

[Change history](https://skmtc.dev/outcallerai/apis/fastapi/changes/api/workspaces/:workspace_id/human-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)
