v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
Tokens
API Token Management

Update cPanel API token's name

This function renames a cPanel account's existing API token.

get/Tokens/rename

Query parameters

namestring required
Example:example

The API token's name.

new_namestring required
Example:newexample

The new name for the API token.

Note:

The name may only contain alphanumeric characters, dashes (-), and underscores (_).

Response

HTTP Request was successful.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "rename",
  "module": "Tokens",
  "result": {
    "status": 1
  }
}