[comment]: # ({850d1726-83f0ea96})
# proxygroup.update

[comment]: # ({/850d1726-83f0ea96})

[comment]: # ({903693d4-ce64ed19})
### Description

`object proxygroup.update(object/array proxyGroups)`

This method allows to update existing proxy groups.

::: noteclassic
This method is only available to *Super admin* user type. Permissions to call the method can be revoked in user role
settings. See [User roles](/manual/web_interface/frontend_sections/users/user_roles) for more information.
:::

[comment]: # ({/903693d4-ce64ed19})

[comment]: # ({cbe2e374-762c7ff6})
### Parameters

`(object/array)` Proxy group properties to be updated.

The `proxy_groupid` property must be defined for each proxy group, all other properties are optional. Only the passed properties
will be updated, all others will remain unchanged.

The method accepts proxy groups with the [standard proxy group properties](object#proxy-group).

[comment]: # ({/cbe2e374-762c7ff6})

[comment]: # ({60d5cab4-1ce1a817})
### Return values

`(object)` Returns an object containing the IDs of the updated proxy groups under the `proxy_groupids` property.

[comment]: # ({/60d5cab4-1ce1a817})

[comment]: # ({b41637d2-b7697345})
### Examples

[comment]: # ({/b41637d2-b7697345})

[comment]: # ({9b9752b5-fe2867f2})
#### Change minimum number of online proxies

Change minimum number of online proxies required for the group to be online.

[Request](/manual/api#performing-requests):

```json
{
    "jsonrpc": "2.0",
    "method": "proxygroup.update",
    "params": {
        "proxy_groupid": "5",
        "min_online": "3"
    },
    "id": 1
}
```

Response:

```json
{
    "jsonrpc": "2.0",
    "result": {
        "proxy_groupids": [
            "5"
        ]
    },
    "id": 1
}
```

[comment]: # ({/9b9752b5-fe2867f2})

[comment]: # ({6117ba34-244e0b58})
### Source

CProxyGroup::update() in *ui/include/classes/api/services/CProxyGroup.php*.

[comment]: # ({/6117ba34-244e0b58})
