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.
api required | string The Sitejet API token to add. Example: |
HTTP Request was successful.
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 --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
}
}