Skip to main content
PUT
/
api
/
profiles
/
me
Update Current Profile
curl --request PUT \
  --url https://api.example.com/api/profiles/me \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "full_name": "<string>",
  "company_name": "<string>"
}
'

Authentication

Authorization
string
required
Bearer token: Bearer <firebase_id_token>

Request

full_name
string
Updated full name
company_name
string
Updated organization name

Example Request

curl -X PUT https://api.sari-platform.com/api/profiles/me \
  -H "Authorization: Bearer <firebase_id_token>" \
  -H "Content-Type: application/json" \
  -d '{
    "full_name": "John Smith",
    "company_name": "New Company"
  }'

Response

Returns the updated profile object.

Example Response

{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "email": "user@example.com",
  "full_name": "John Smith",
  "company_name": "New Company",
  "role": "client",
  "registration_status": "approved",
  "client_id": "client_abc123",
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-17T14:00:00Z"
}

Errors

StatusDescription
400Invalid request body
401Invalid or expired token