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