Skip to main content
PUT
Update a user's phone number
Admin-only endpoint to update the phone number stored in a user’s personal information.

Request

Headers

Request Body

Request Body Schema

Response

200 OK - Successfully updated phone number

400 Bad Request

401 Unauthorized

404 Not Found

500 Internal Server Error

Example

Notes

  • This is an admin-only endpoint - requires administrative privileges
  • Phone numbers should be in E.164 format (e.g., +1-555-555-5555)
  • The user ID must be a valid MongoDB ObjectId
  • Phone numbers should be validated for proper format
  • Only administrators can update other users’ phone numbers

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
payload
object

Response

Successfully updated phone number

message
string
data
object