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

# Update a proxy config

`PUT /proxies/{proxyId}`

## 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.net/droidrun/apis/droidrun-cloud.md) · [All operations](https://skmtc.net/droidrun/apis/droidrun-cloud/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/droidrun/droidrun-cloud/versions/7f577998739b/schema)
