loginProtectModifyUser — Modifying a user
This method allows you to modify an existing Login Protect user, including their username, phone number, email, and the 2FA status.
The API endpoint is: https://api.sitelock.com/v1/partner
Request format
-
SiteLockOnlineRequest: This element is used to delineate the full API request.
-
authentication: The partner’s username, password, and branding.
-
username: The partner’s API username.
-
password: The partner’s API password.
-
-
loginProtectModifyUser: The method name.
-
site_id: The ID of the site for which to modify the user.
-
email: The user’s email address to be modified.
-
username: The user’s username to be modified.
-
phone: The user’s phone number to be modified.
-
two_factor_auth: The user’s 2FA status to be modified.
-
-
Example request
<SiteLockOnlineRequest>
<authentication>
<user>Username</user>
<password>Password</password>
</authentication>
<loginProtectModifyUser>
<site_id>49030000</site_id>
<email>[email protected]</email>
<username>newusername</username>
<phone>1234567890</phone>
<two_factor_auth>enabled</two_factor_auth>
</loginProtectModifyUser>
</SiteLockOnlineRequest>
Response format
-
SiteLockOnlineResponse: This element is used to delineate the full API response.
-
loginProtectModifyUser: The method name.
-
message: The message returned by the API response.
-
status: The status of the API response.
-
error: An error element containing an error code and an error message.
-
-