Change phone numbers
Change phone numbers routes#
Add phone number#
Used to add a phone number
URL: /api/v1/user/myself/phoneNumber
Method: POST
Auth required: Yes
Data constraints
Data example
Success response#
Condition: Label and number is correct
Code: 200
Content example
Remove phone number#
Used to remove a phone number
URL: /api/v1/user/myself/phoneNumber/{id}
Method: DELETE
Auth required: Yes
Success response#
Condition: Label and number is correct
Code: 200
Content example
Error response#
Phone number not found#
Condition: Tried to remove a phone number which does exist
Code: 404
Content example
Phone number does not belong to your user#
Condition: Tried to remove a phone number which does not belong to your user
Code: 400
Content example