Update Customer Profile - MarcoLagalla/marette_backend GitHub Wiki

Name Update Customer Profile
Description allows updating profile information
URL profile/<int:id>/customer/update
Allowed methods POST
Authorizations IsAuthenticated

Parameters

Parameter Type Description
<int:id> integer user's ID (not customer id)

POST


Performs an update of the updatable fields for the customer's profile.

Field Type Required Unique Comments
avatar image no no
phone numeric yes yes valid phone number
first_name string no yes
last_name string no yes
birth_date string_date no yes valid birth date

Authorization token is needed

If all parameters are valid, returns --> HTTP_200_OK or otherwise --> HTTP_400_BAD_REQUEST

⚠️ **GitHub.com Fallback** ⚠️