---
title: "Update Organization User Agent"
method: PATCH
path: "/api/v1/organizations/users/{userId}/agents/{agentId}"
---

# Update Organization User Agent

`PATCH /api/v1/organizations/users/{userId}/agents/{agentId}`

## Request

- Base URL: `https://api.skyfire.xyz`
- URL: `https://api.skyfire.xyz/api/v1/organizations/users/{userId}/agents/{agentId}`
- Auth: API key in header `skyfire-api-key`

As an Organization Admin, rename, deactivate, or reactivate one of your organization users' ungrouped agents.

## Path parameters

- `userId` string, uuid, required
- `agentId` string, uuid, required

## Request body

- object
  - `displayName` string: New display name. Printable ASCII with at least one non-space character, 1 to 100 characters. Must be free among the user's active agents and not match an active agent group in your organization.
  - `active` boolean: `false` deactivates the agent: its API keys stop authenticating and its cards are removed. `true` reactivates it; cards are not restored.

## Response `204`

No Content. The agent was updated.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found
- `409`: Conflict
- `422`: Unprocessable Entity

## Changes

- **2026-11-03** `22cbec9d7630`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/skyfire/apis/skyfire-agent-and-token-apis/changes/api/v1/organizations/users/:userId/agents/:agentId/patch.md)

---

[API](https://skmtc.dev/skyfire/apis/skyfire-agent-and-token-apis.md) - [All operations](https://skmtc.dev/skyfire/apis/skyfire-agent-and-token-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/skyfire/apis/skyfire-agent-and-token-apis/revisions/22cbec9d7630?raw)
