curl --request PUT \
--url http://localhost:3091/v1/api/users/profile \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"firstName": "<string>",
"lastName": "<string>",
"pseudo": "<string>",
"phone": "<string>",
"nationality": "<string>",
"dateOfBirth": "<string>"
}
'{
"id": 123,
"firstName": "<string>",
"lastName": "<string>",
"pseudo": "<string>",
"phone": "<string>",
"nationality": "<string>",
"dateOfBirth": "<string>",
"email": "<string>",
"stripeConnectedAccountId": "<string>",
"enabled": true,
"walletBalance": 123,
"pendingWithdrawalAmount": 123,
"totalEarned": 123,
"totalWithdrawn": 123,
"autoWithdrawalEnabled": true,
"autoWithdrawalThreshold": 123,
"rating": 123,
"tripCount": 123,
"deliveryCount": 123,
"memberSince": "<string>"
}Updates the authenticated user’s profile with the provided fields.
curl --request PUT \
--url http://localhost:3091/v1/api/users/profile \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"firstName": "<string>",
"lastName": "<string>",
"pseudo": "<string>",
"phone": "<string>",
"nationality": "<string>",
"dateOfBirth": "<string>"
}
'{
"id": 123,
"firstName": "<string>",
"lastName": "<string>",
"pseudo": "<string>",
"phone": "<string>",
"nationality": "<string>",
"dateOfBirth": "<string>",
"email": "<string>",
"stripeConnectedAccountId": "<string>",
"enabled": true,
"walletBalance": 123,
"pendingWithdrawalAmount": 123,
"totalEarned": 123,
"totalWithdrawn": 123,
"autoWithdrawalEnabled": true,
"autoWithdrawalThreshold": 123,
"rating": 123,
"tripCount": 123,
"deliveryCount": 123,
"memberSince": "<string>"
}JWT access token from POST /v1/api/auth/login
Profile updated successfully