updatePhoneNumber()
Updates a PhoneNumber
with a given ID with attribute values provided in a params object.
- Name
primary?
- Type
boolean
- Description
Whether or not to set the phone number as the user's primary phone number.
- Name
verified?
- Type
boolean
- Description
Whether or not the phone number is verified.
updatePhoneNumber()
example
Let's start with a PhoneNumber
object that looks like this:
Let's update the phone number to be unverified:
As you can see in the response, the phone number is now unverified.
Backend API (BAPI) endpoint
This method in the SDK is a wrapper around the BAPI endpoint PATCH/phone_numbers/{phone_number_id}
. See the BAPI reference for more details.