---
title: "Update Agent"
method: POST
path: "/v1/agents/{id}"
tags: ["agents"]
---

# Update Agent

`POST /v1/agents/{id}`

## Headers

- `x-api-key` string

## Request body

- object
  - `name` string — Agent name
  - `tags` string[] — Tags
  - `networks` string[] — Networks
  - `network_subnets` string[] — Network subnets

## Response `200`

OK

- object
  - `message` string

## Other responses

- `400` — Bad Request
- `404` — Not Found

## Changes

- **2025-11-18** `41ee26b930f3` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/projectdiscovery/apis/pdcp-api/changes/v1/agents/:id/post.md)

---

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