Users

Update user phone

PUThttps://api.firstleeward.com/v0/users/:id/phone

Updates the phone number for a user. Phone number must be in E.164 format and unique within the project.

Authorizations

Authorizationstring · headerrequired

API key as Bearer token, e.g. Bearer YOUR_API_KEY

Headers

Leeward-Versionenum<string>required

API version (YYYY-MM-DD). Available option: 2026-09-18

Path Parameters

idstring<uuid>required

Body

application/json

phoneNumberstringrequired

Phone number in E.164 format (e.g., +14155552671)

Response

204Response for status 204
400Response for status 400
Option 1 · PhoneNumberAlreadyExistsError
errorobjectrequired
Show child attributes
codestringrequired
messagestringrequired
detailobject | nullrequired
Option 2 · InvalidPhoneNumberError
errorobjectrequired
Show child attributes
codestringrequired
messagestringrequired
detailobject | nullrequired
Option 3 · UserPhoneCountryRestrictedError
errorobjectrequired
Show child attributes
codestringrequired
messagestringrequired
detailobject | nullrequired
404User not found
errorobjectrequired
Show child attributes
codestringrequired
messagestringrequired
detailobject | nullrequired