This function renames a cPanel account's existing API token.
name required | string The API token's name. Example: name=example |
new_name required | string <= 50 characters The new name for the API token. Note: The name may only contain alphanumeric characters, dashes ( Example: new_name=newexample |
apiversion | integer The version of the API. |
func | string The name of the method called. |
module | string The name of the module called. |
object |
uapi --user=username Tokens rename name='example' new_name='newexample'
{- "apiversion": 3,
- "func": "rename",
- "module": "Tokens",
- "result": {
- "data": null,
- "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}