This function removes an API token from a cPanel account.
name required | string The API token to remove. Example: name=example |
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 revoke name='example'
{- "apiversion": 3,
- "func": "revoke",
- "module": "Tokens",
- "result": {
- "data": 1,
- "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}