---
title: "Update user and profile fields (admin only)"
method: PATCH
path: "/api/admin/users/{id}"
tags: ["Admin"]
---

# Update user and profile fields (admin only)

`PATCH /api/admin/users/{id}`

## Request

- Base URL: `https://api.rewritelifestyle.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.rewritelifestyle.ai/api/admin/users/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` number, required

## Request body

- AdminUpdateUserDto
  - `email` string
  - `role` 'client' | 'coach' | 'lead' | 'member' | 'pc'
  - `is_admin` boolean
  - `is_super_admin` boolean
  - `can_view_dashboard_beta` boolean
  - `is_active` boolean
  - `is_enrolled` boolean
  - `is_bnpl` boolean
  - `can_handle_leads` boolean
  - `reward_pool_member` boolean
  - `is_internal` boolean
  - `email_verified` boolean
  - `phone_verified` boolean
  - `is_founder` boolean: Toggling true claims a founder slot (sets users.is_founder + increments counter); toggling false releases it. Idempotent.
  - `timezone` string
  - `water_goal_oz` number
  - `first_name` string
  - `last_name` string
  - `phone` string
  - `city` string
  - `state` string
  - `country` string: ISO 3166-1 alpha-2 country code
  - `postal_code` string
  - `birth_date` string
  - `occupation` string
  - `activity_level` string
  - `surgery_type` string
  - `surgery_date` string
  - `starting_weight` number
  - `goal_weight` number
  - `program_status` 'pending' | 'active' | 'completed' | 'dropped'

## Response `200`

- unknown

## Changes

- **2026-10-30** `2a7a7e7231fc`: 1 info
  - added the new optional request property `can_view_dashboard_beta`
- **2026-10-19** `0c72870a5acb`: 1 info
  - added the new optional request property `reward_pool_member`
- **2026-09-22** `57a3d382c7e5`: 2 info
  - added the new optional request property `can_handle_leads`
  - added the new `pc` enum value to the request property `role`

[Operation history](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/changes/api/admin/users/:id/patch.md)

---

[API](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api.md) - [All operations](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/revisions/28695827f27a?raw)
