---
search:
  tags:
    - Users
    - PUT
seo:
  description: >-
    Any signed in user. Patches a user; an admin may move the role, branch, and…
    Reference for the PUT /api/v1/users/{userId} endpoint in the PharmaFlow API.
sidebar:
  label: Update a user
  badge: PUT
title: Update a user
type: openapi-operation
---
Any signed in user. Patches a user; an admin may move the role, branch, and active flag. A pharmacist may edit only their own name and phone, and the password is refused here.

`PUT /api/v1/users/{userId}`
