---
title: "Update cPanel account service proxying"
method: GET
path: "/set_service_proxy_backends"
tags: ["Services"]
---

# Update cPanel account service proxying

`GET /set_service_proxy_backends`

This function lets you configure a cPanel account's
[service proxying](https://go.cpanel.net/ServiceProxying).

**Note:**

* If the cPanel account is a [distributed account](https://go.cpanel.net/cPanelGlossary#distributed-cpanel-account),
and you call this function on the account’s [parent node](https://go.cpanel.net/cPanelGlossary#parent-node),
the system will propagate the new service proxying to the [child node](https://go.cpanel.net/cPanelGlossary#child-node).
* If the [Web Server](https://go.cpanel.net/howtouseserverprofiles#roles) role is active
on the server, this function rebuilds the user's web virtual hosts (vhosts) and restarts
the web server.
* If the system cannot rebuild the user's vhosts, the API call will still succeed. However,
the function returns a failure warning in the metadata.
* To remove an account's service proxying, use the WHM API 1 `unset_all_service_proxy_backends`
function.

## Query parameters

- `username` string, username, required
- `general` union
  - string, hostname — A valid hostname.
  - string, ipv4 — A valid IP address.
- `service_group` 'Mail'
- `service_group_backend` union
  - string, hostname — A valid hostname.
  - string, ipv4 — A valid IP address.

## Response `200`

HTTP Request was successful.

- object
  - `metadata` object
    - `command` string — The method name called.
    - `reason` string — The reason the API function failed when the `metadata.result` field is `0`. This field may display a success message when a function succeeds.
    - `result` 1 | 0 — * `1` — Success. * `0` — Failed. Check the `reason` field for more details.
    - `version` integer — The version of the API function.

---

[API](https://skmtc.net/cpanel/apis/whm-api.md) · [All operations](https://skmtc.net/cpanel/apis/whm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cpanel/whm-api/revisions/3da41671c02c/schema)
