POST
/
user
/
profile

Authorizations

authjs session token
string
cookie
required

Session token provided by AuthJS

Body

application/json
name
string
email
string
image
string
password
string

Password should be encrypted before sending

Response

200
application/json
Profile updated successfully
id
string
name
string
email
string
image
string
role
string
createdAt
string
updatedAt
string