Skip to content

Update user info by internal services

PATCH
/internal/users

Update user’s information by internal services.

InternalUpdateUserRequest

object
accountStanding

They are the same thing, UserStatus will replace AccountStanding if both exists

string
blocked
authorId

ID of the user making the change (e.g., admin)

string
65b9fc0589526f00117cd4d2
email
string
ivan+rdh+fl@joingotu.com
emailStatus
string
Allowed values: not-verified verified existing-user
verified
firstName
string
Jane
isAdmin
boolean
lastActiveAt
string
2024-11-14 10:00:00
lastName
string
Doe
newEmail

They are the same thing, Email will replace NewEmail if both exists

string
ivan+rdh+fl@joingotu.com
newPhone

They are the same thing, Phone will replace NewPhone if both exists

string
+6282243350992
passwordHash
string
passwordHash
phone
string
+6282243350992
source
string
app
userId
string
65b9fc0589526f00117cd4d2
userStatus
string
blocked
userType
string
Allowed values: unassigned DNT HYG ADM
HYG

No Content

Bad request

object
error
string
some meaningful error message

Forbidden

object
error
string
some meaningful error message

Internal server error

object
error
string
some meaningful error message