---
title: "Replace"
method: PUT
path: "/agent/{agentId}"
tags: ["agents"]
---

# Replace

`PUT /agent/{agentId}`

## Path parameters

- `agentId` string, required

## Request body

- object
  - `name` string
  - `runtimes` string[]

## Response `200`

ok

## Changes

> 42 revisions in range; 1 could not be searched.

- **2020-01-01** `96ce94743a7e` — 1 info
  - endpoint added
- **2019-02-14** `c718449cec44` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/codefresh-io/apis/codefresh-api/changes/agent/:agentId/put.md)

---

[API](https://skmtc.dev/codefresh-io/apis/codefresh-api.md) · [All operations](https://skmtc.dev/codefresh-io/apis/codefresh-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/codefresh-io/codefresh-api/revisions/fa310e908c46/schema)
