- Introduction
- Changelog Release
- Local Development
- Authentication
- file-controller
- internal-controller
- User
- facebookCallbackUserInfoGET
- updateUserAccountPOST
- deleteAllSessionOfUserDELETE
- getUserBasicInfoGET
- getUserIntroGET
- updateUserIntroPOST
- testGetUserFromFirebaseByEmailGET
- testGetUserFromFirebaseNoPasswordGET
- testGetUserFromFirebasePasswordGET
- getProfilePictureGET
- storeUserFcmTokenPOST
- updateFeedbackAskdoctorGET
- updateUserIntroV2POST
updateUserAccount
POST
/users/account
User
Request
Body Params application/json
email
string
optional
phoneNumber
string
optional
Example
{
"email": "string",
"phoneNumber": "string"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/users/account' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "string",
"phoneNumber": "string"
}'
Responses
🟢200OK
application/json
Body
data
object (UserIntroResponse)
optional
createdAt
string <date-time>
optional
dateOfBirth
string <date-time>
optional
deletedAt
string <date-time>
optional
email
string
optional
emailVerified
boolean
optional
feedbackAskDoctor
boolean
optional
fromCognito
boolean
optional
id
string
optional
image
object (ImageResponse)
optional
initialHeight
number <double>
optional
initialWeight
number <double>
optional
isBannedFromCommunity
boolean
optional
isRegisterFirstBaby
boolean
optional
name
string
optional
phoneNumber
string
optional
phoneNumberVerified
boolean
optional
photoProfile
string
optional
provider
string
optional
totalChildProfile
integer <int32>
optional
totalPregnancyHistory
integer <int32>
optional
updatedAt
string <date-time>
optional
version
integer <int32>
optional
Example
{
"data": {
"createdAt": "2019-08-24T14:15:22Z",
"dateOfBirth": "2019-08-24T14:15:22Z",
"deletedAt": "2019-08-24T14:15:22Z",
"email": "string",
"emailVerified": true,
"feedbackAskDoctor": true,
"fromCognito": true,
"id": "string",
"image": {
"id": 0,
"url": "string"
},
"initialHeight": 0,
"initialWeight": 0,
"isBannedFromCommunity": true,
"isRegisterFirstBaby": true,
"name": "string",
"phoneNumber": "string",
"phoneNumberVerified": true,
"photoProfile": "string",
"provider": "string",
"totalChildProfile": 0,
"totalPregnancyHistory": 0,
"updatedAt": "2019-08-24T14:15:22Z",
"version": 0
}
}
🟠400Bad Request
🟠401Unauthorized
🔴500Internal Server Error
Modified at 2023-01-25 06:06:06