---
title: "Update hosting plan"
method: GET
path: "/editpkg"
tags: ["Packages", "Hosting Plans"]
---

# Update hosting plan

`GET /editpkg`

This function edits a hosting plan (package).

**Note:**

* The
[Access Control List (ACL)](https://go.cpanel.net/GuidetoWHMPluginsAccessControlLists)
restricts some of the function's parameters, which limit the features that WHM
users can access.
* This function applies any changes you make to **all** accounts that exist on
the hosting plan.
* This function **cannot** modify hosting plan names.

## Query parameters

- `name` string, required
- `_PACKAGE_EXTENSIONS` string
- `bwlimit` union
  - integer
  - unknown
  - 'unlimited'
- `cgi` 1 | 0
- `cpmod` string
- `digestauth` 1 | 0
- `featurelist` string
- `frontpage` 1 | 0
- `hasshell` 1 | 0
- `ip` 'y' | 'n'
- `language` string, ISO-3166-1 (alpha-2)
- `max_defer_fail_percentage` union
  - integer
  - 'unlimited'
- `max_email_per_hour` union
  - integer
  - 'unlimited'
- `max_emailacct_quota` union
  - integer
  - unknown
  - 'unlimited'
- `max_team_users` integer, nullable
- `maxaddon` union
  - integer
  - unknown
  - 'unlimited'
- `maxftp` union
  - integer
  - unknown
  - 'unlimited'
- `maxlst` union
  - integer
  - unknown
  - 'unlimited'
- `maxpark` union
  - integer
  - unknown
  - 'unlimited'
- `maxpop` union
  - integer
  - unknown
  - 'unlimited'
- `maxsql` union
  - integer
  - unknown
  - 'unlimited'
- `maxsub` union
  - integer
  - unknown
  - 'unlimited'
- `quota` union
  - integer
  - unknown
  - 'unlimited'

## Response `200`

HTTP Request was successful.

- object
  - `data` object
    - `pkg` string — The new hosting plan's name.
  - `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)
