Allow the current authenticated user to change their name, email, and phone number. Name and email cannot be empty if provided.
POST
/me/change-info
curl \
--request POST 'https://my.nethesis.it/backend/api/me/change-info' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"name": "John Doe",
"email": "john.doe@example.com",
"phone": "+39 333 123456"
}'
Request examples
{
"name": "John Doe",
"email": "john.doe@example.com",
"phone": "+39 333 123456"
}
Response examples (200)
{
"code": 200,
"message": "user information changed successfully",
"data": {}
}
Response examples (400)
{
"code": 400,
"message": "validation failed",
"data": {
"type": "validation_error",
"errors": [
{
"key": "name",
"message": "name cannot be empty",
"value": ""
}
]
}
}
Response examples (401)
{
"code": 401,
"message": "invalid token",
"data": {}
}
Response examples (500)
{
"code": 500,
"message": "internal server error",
"data": {}
}