---
title: "Update Agent"
method: PATCH
path: "/agents/{agent_id}"
tags: ["Agents"]
---

# Update Agent

`PATCH /agents/{agent_id}`

Partially update an agent's properties.

## Path parameters

- `agent_id` string, required

## Request body

- AgentUpdate
  - `name` string
  - `description` string
  - `status` 'active' | 'inactive' | 'revoked'

## Response `200`

Agent updated successfully

- Agent
  - `agent_id` string
  - `name` string
  - `description` string
  - `public_key` string, base64
  - `status` 'active' | 'inactive' | 'revoked'
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `last_seen_at` string, date-time, nullable

## Other responses

- `401` — Unauthorized - Invalid or missing authentication
- `404` — Not Found - Requested resource does not exist
- `500` — Internal Server Error - Unexpected server error

---

[API](https://skmtc.net/deeptrail/apis/deepsecure-api-dual-service-architecture.md) · [All operations](https://skmtc.net/deeptrail/apis/deepsecure-api-dual-service-architecture/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deeptrail/deepsecure-api-dual-service-architecture/versions/78627360c082/schema)
