PATCH
/
profile-update
Update profile
curl --request PATCH \
  --url https://aarwcjjzhlmkgdwrisyt.supabase.co/functions/v1/profile-update \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "first_name": "Ade",
  "username": "adejohnson",
  "bio": "Escrow enthusiast",
  "avatar_url": "https://cdn.example.com/avatars/ade.jpg",
  "storage_path": "avatars/a1b2c3d4/profile.jpg"
}
'
{
  "success": true,
  "status": 123,
  "error": "<string>",
  "details": [
    {
      "field": "<string>",
      "message": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

JWT access token obtained from /auth-verify (login context) or /auth-signup. Set the bearer_token environment variable in your API client to apply it globally.

Body

application/json

All fields optional. Send only what needs to change. Phone number cannot be updated via API.

first_name
string
Required string length: 1 - 100
last_name
string
Required string length: 1 - 100
username
string

Letters, numbers, and underscores only

Required string length: 3 - 30
Pattern: ^[a-zA-Z0-9_]+$
address
string
Maximum string length: 500
marital_status
enum<string>
Available options:
single,
married,
divorced,
widowed
bio
string
Maximum string length: 300
avatar_url
string<uri>
storage_path
string

Supabase Storage path for the avatar file

Response

Profile updated — full profile returned