Skip to main content
PATCH
/
v1
/
auth
/
me
Update current user profile
const options = {
  method: 'PATCH',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({name: '<string>', image: '<string>'})
};

fetch('http://localhost:8000/v1/auth/me', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "success": true,
  "data": {
    "id": "<string>",
    "email": "jsmith@example.com",
    "name": "<string>",
    "image": "<string>",
    "emailVerified": true,
    "createdAt": "2023-11-07T05:31:56Z",
    "role": "<string>"
  },
  "meta": {
    "requestId": "<string>",
    "timestamp": "<string>"
  }
}

Body

application/json
name
string
image
string

Response

Updated user profile

success
enum<boolean>
required
Available options:
true
data
object
required
meta
object
required