---
title: "Update a proxy config"
method: PUT
path: "/proxies/{proxyId}"
tags: ["Proxies"]
---

# Update a proxy config

`PUT /proxies/{proxyId}`

Replaces the proxy config identified by `proxyId` with the provided body. As with creation, the body is a `protocol`-discriminated union of socks5 or wireguard fields. Returns the updated config.

## Path parameters

- `proxyId` string, uuid, required

## Request body

- union
  - UpdateSocks5Proxy
    - `name` string, required
    - `protocol` 'socks5', required
    - `host` string, required
    - `port` integer, required
    - `user` string, required
    - `password` string, required
  - UpdateWireguardProxy
    - `name` string, required
    - `protocol` 'wireguard', required
    - `config` string, required

## Response `200`

Proxy updated

- object
  - `success` true, required
  - `message` string, required
  - `data` union, required
    - Socks5ProxyConfig
      - `name` string, required
      - `protocol` 'socks5', required
      - `host` string, required
      - `port` integer, required
      - `user` string, required
      - `password` string, required
      - `proxyId` string, uuid, required
    - WireguardProxyConfig
      - `name` string, required
      - `protocol` 'wireguard', required
      - `config` string, required
      - `proxyId` string, uuid, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/droidrun/apis/droidrun-cloud.md) · [All operations](https://skmtc.dev/droidrun/apis/droidrun-cloud/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/droidrun/droidrun-cloud/revisions/a1453ac769d4/schema)
