Update Business Profile - MarcoLagalla/marette_backend GitHub Wiki
Name | Update Business Profile |
---|---|
Description | allows updating profile information |
URL | profile/int:id/business/update |
Allowed methods | POST |
Authorizations | IsAuthenticated |
Parameter | Type | Description |
---|---|---|
<int:id> |
integer | user's ID (not business id) |
Performs an update of the updatable fields for the business's profile.
Field | Type | Required | Unique | Comments |
---|---|---|---|---|
avatar |
image | no | no | |
city |
string | yes | yes | |
address |
string | yes | yes | |
n_civ |
string | yes | yes | |
cap |
string | yes | yes | valid cap (5 digits) |
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