This endpoint allows users to update their personal information. Please use the following guidelines:

  • Method: PUT
  • Path: /en/api/user/update
  • Authentication: Requires valid JWT token in Authorization header

Request Parameters

Field Type Description
username string New username (optional)
email string Updated email address (optional)
avatar string Avatar URL (optional)
bio string Brief description (optional)

Example Request

PUT /en/api/user/update HTTP/1.1
Content-Type: application/json
Authorization: Bearer <token>

{
  "username": "new_user",
  "email": "user@example.com"
}

Response Examples

Success:

{
  "status": "success",
  "message": "Profile updated successfully",
  "user": {
    "id": 123,
    "username": "new_user"
  }
}

Error:

{
  "status": "error",
  "message": "Invalid credentials"
}

For more details about user management, visit our User Guide.

user_profile
account_settings