PerfectWorks
  1. Users
PerfectWorks
  • Organizations
    • Register new organization
      POST
    • List user's organizations
      GET
    • Get current organization details
      GET
    • Update organization profile
      PUT
    • Get organization statistics
      GET
    • Get organization by slug (public)
      GET
    • Soft delete organization
      DELETE
    • Permanently delete organization
      DELETE
  • Files
    • Generate signed upload URL
      POST
    • Create file record
      POST
    • List files
      GET
    • Get file by ID
      GET
    • Update file
      PUT
    • Delete file
      DELETE
    • Generate download URL
      POST
    • Analyze file
      POST
    • Process file for accessibility
      POST
    • Convert file to different format
      POST
  • API Keys
    • Create a new API key
      POST
    • List user's API keys
      GET
    • Get API key by ID
      GET
    • Update API key description
      PUT
    • Delete API key
      DELETE
  • Referrers
    • Join referral program
    • Get referrer profile
    • Get referrer dashboard
  • Referrer Transactions
    • List referrer's transactions
    • Get transaction details
    • Request withdrawal from pending earnings
  • Referrer Campaigns
    • Create referral campaign
    • List referrer's campaigns
    • Get campaign details
    • Update campaign
    • End campaign
    • Get campaign analytics
  • Referral Links
    • Track referral click and redirect
  • Payments
    • Create a checkout session
    • Get checkout session details
    • Get available products
  • Users
    • Register new client user
      POST
    • Register system user
      POST
    • Get user profile
      GET
    • Update user profile
      PUT
    • Soft delete user account
      DELETE
    • Permanently delete user account
      DELETE
    • Switch active organization
      PUT
    • Get current active organization
      GET
  • Token Transactions
    • List organization token transactions
    • Get organization token balance
    • Get token transaction by ID
  • Organization Members
    • Invite new member to organization
    • List organization members
    • Get user's pending organization invitations
    • Get member details
    • Remove organization member
    • Join organization with pending invitation
  1. Users

Update user profile

PUT
/users/me
Update the current authenticated user's profile information.
Only accessible to authenticated users with Firebase JWT.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.perfectworks.io/api/v0/users/me' \
--header 'Content-Type: application/json' \
--data-raw '{
    "firstName": "John",
    "lastName": "Doe",
    "displayName": "johndoe",
    "phoneNumber": "+1234567890",
    "avatar": "https://example.com/avatar.jpg"
}'
Response Response Example
200 - Example 1
{
    "success": true,
    "message": "Operation completed successfully",
    "data": {
        "id": "123",
        "name": "Example"
    }
}

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Body Params application/json

Examples

Responses

🟢200OK
application/json
User profile updated successfully
Body

🟠400Bad Request
🟠401Unauthorized
🟠404Record Not Found
🔴500Server Error
Modified at 2025-08-22 18:48:44
Previous
Get user profile
Next
Soft delete user account