AuthnAuthzAPI
Get Started
Get Started
  1. Profile Management
  • Overview
  • Registration & Onboarding
    • Register a new user
      POST
    • Verify email address
      POST
    • Resend verification code
      POST
  • Authentication
    • Login user
      POST
    • Logout user
      POST
    • Request a password reset email
      POST
    • Verify password reset token
      POST
    • Update password
      POST
    • Refresh access token
      POST
    • Get current authenticated user
      GET
  • OAuth Authentication
    • OAuth authentication
      GET
    • OAuth callback
      GET
  • Session Management
    • Get all sessions
      GET
    • Revoke session
      DELETE
    • Revoke all sessions
      DELETE
  • Profile Management
    • View profile information
      GET
    • Update profile information
      PATCH
  1. Profile Management

Update profile information

Developing
PATCH
/profile
Allows an authenticated user to update their own profile information. This is a partial update endpoint — only the fields included in the request body are modified. Any field omitted from the request retains its existing stored value. Currently supported fields are name and profile_picture.
This endpoint does not support updating security-sensitive fields (e.g. email, password, role, account status). Those are handled by dedicated endpoints with stronger verification requirements.

Request

Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
Body Params multipart/form-dataRequired

Responses

🟢200Success
application/json
Bodyapplication/json

🟠400Validation Error
🟠401Token Missing
🟠401Invalid Token
🟠401Token Expired
🟠403Account Not Exists
🟠403Account Soft Deleted
🟠403Account Deactivated
🟠403Account Locked
🟠403Account Not Verified
🟠401Session Not Found
🟠401Session Revoked
🟠401Session Expired
🟠413Pic Too Large
🟠429Rate Limit Exceeded
🔴500Internal Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'http://localhost:3000/api/v1/profile' \
--header 'Authorization: Bearer <token>' \
--form 'name=""' \
--form 'profile_picture=""'
Response Response Example
200 - Example
{
    "status": "success",
    "message": "Profile updated successfully.",
    "data": {
        "id": "7d32441461244ec75f9944407dbdab4bc14ba182",
        "name": "Evelyn Flatley",
        "profile_picture": "https://avatars.githubusercontent.com/u/83577504",
        "updated_at": "2026-07-30T15:21:39.653Z"
    }
}
Modified at 2026-07-30 15:08:48
Previous
View profile information
Built with