This function adds an existing Sitejet API token to a cPanel user.
Note:
You can create a Sitejet API token with the Sitejet:create_account
function.
uapi --output=jsonpretty \ --user=username \ Sitejet \ add_api_token \ api_token='d35d8ea651007ccd25f96486cdcdXXXX'
{- "apiversion": 3,
- "func": "add_api_token",
- "module": "Sitejet",
- "result": {
- "data": { },
- "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}