Appwrite icon

Appwrite

Interact with Appwrite API

Actions181

Users → Update Phone Verification

AI-generated

Overview

This node interacts with the Appwrite API to update the phone verification status of a user. It is useful in scenarios where you need to programmatically mark a user's phone number as verified or unverified, such as during user management workflows or automated verification processes.

Use Case Examples

  1. Mark a user's phone as verified after successful verification via SMS.
  2. Revoke phone verification status if a phone number is changed or deemed invalid.

Properties

Name Meaning
User ID The unique identifier of the user whose phone verification status is to be updated.
Phone Verified Boolean flag indicating whether the user's phone should be marked as verified (true) or not (false).

Output

JSON

  • userId - The ID of the user whose phone verification status was updated.
  • phoneVerified - The updated phone verification status of the user.

Dependencies

  • Appwrite API key credential for authentication

Troubleshooting

  • Ensure the User ID provided is valid and exists in the Appwrite user database to avoid errors.
  • Verify that the API key credential has sufficient permissions to update user phone verification status.
  • Common errors include authentication failures due to invalid API keys or insufficient permissions, and invalid user ID errors if the user does not exist.

Discussion