Update rpm.versions system configuration

This function edits RPM data. When you call this function, it performs the same actions as the following command:

/usr/local/cpanel/scripts/update_local_rpm_versions --edit section.key value

For more information, read our rpm.versions system documentation.

Note:

After you call this function, we strongly recommend that you run the /usr/local/cpanel/scripts/check_cpanel_pkgs script.

SecurityBasicAuth
Request
query Parameters
key
required
string

The RPM's key.

Example: key=3rdparty
section
required
string

The RPM's section.

Example: section=rpm_groups
value
required
string

The RPM's value.

Example: value=cpanel-pcre
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/edit_rpm_version
Request samples
whmapi1 --output=jsonpretty \
  edit_rpm_version \
  section='rpm_groups' \
  key='3rdparty' \
  value='cpanel-pcre'
Response samples
application/json
{
  • "data": {
    • "status": 1
    },
  • "metadata": {
    • "command": "edit_rpm_version",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}