reactivateAccount

Reactivates an Account that has been deactivated.

reactivateAccount

Reactivates an Account that has been deactivated.

Top ↑

Syntax

bool reactivateAccount( string api_key, int account_id );

Parameters

api_key (string)

The key required to access the API. See Getting Started for more information.

account_id (int)

The ID of the Account to reactivate.

Return Value

Returns true if reactivation is successful.

Examples

$api = new Api($url, 'YOURAPIKEY');

$account_id = 12345;

$result = $api->invokeMethod('reactivateAccount', $account_id);
{
    "id": 1,
    "method": "reactivateAccount",
    "params": [
        "YOURAPIKEY",
        12345
    ]
}
{
    "id": 1,
    "result": true,
    "error": null
}

Remarks

Reactivating an Account enables Account Users to access the system.

Error Codes

This method may return the following error codes in addition to the standard error codes:

Code Error Description
302 Undefined Method Error Reactivation has failed. Please try again later.
310 Invalid Method Parameters One or more of the parameters you have passed is invalid.
321 Administrative access denied You do not have permission to reactivate the Account.

See Also