---
title: "Update an Agent connection"
method: PUT
path: "/agent-management/agent-connections/{agentConnectionId}"
tags: ["Agent Connections"]
---

# Update an Agent connection

`PUT /agent-management/agent-connections/{agentConnectionId}`

## Request

- Base URL: `http://localhost:8090/agent-api`
- URL: `http://localhost:8090/agent-api/agent-management/agent-connections/{agentConnectionId}`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/flowable/apis/flowable-agent-engine-rest-api/docs/agent-management/agent-connections/:agentConnectionId/put.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `agentConnectionId` string, required

## Request body

- AgentConnectionUpdateRequest: Request used to update an Agent connection
  - `name` string: Human-readable display name
  - `connectivity` object: Provider connectivity payload — polymorphic on aiVendor.

## Response `200`

Indicates that the Agent connection was updated

- AgentConnectionResponse: REST representation of an AgentConnection.
  - `id` string: Internal id of the Agent connection
  - `key` string, required: Stable key the agent references
  - `name` string: Human-readable display name
  - `connectivity` object: Provider connectivity payload (vendor-specific shape).
  - `tenantId` string: Tenant the connection belongs to
  - `updateTime` integer: When the connection was last updated
  - `updaterId` string: User that last updated the connection

## Other responses

- `400`: Indicates the request parameters are incomplete or contain illegal values.
- `403`: Indicates that the user doing the request does not have the required permissions for updating an Agent connection
- `404`: Indicates that the Agent connection does not exist

---

[API](https://skmtc.dev/flowable/apis/flowable-agent-engine-rest-api.md) - [All operations](https://skmtc.dev/flowable/apis/flowable-agent-engine-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/flowable/apis/flowable-agent-engine-rest-api/revisions/54fc1189496f?raw)
