---
title: "Update a user"
method: PUT
path: "/api/users/{user_id}"
tags: ["Users - Admin"]
---

# Update a user

`PUT /api/users/{user_id}`

Updates a user's information.

Allowed fields:
- Nome: User's full name
- email: User's email address
- contact_number: Phone number
- username: Login username
- superior: ID of the user's manager
- pontodevenda: Point of sale ID (reassign POS)
- website_photo_url: Profile photo URL
- website_role: Role displayed on website
- website_description: Bio/description for website
- website_visible: Whether visible on website (bit)

Payroll fields (written to the linked Cliente row, not Utilizadores; a
client is created + linked lazily if the user doesn't have one yet):
- nif: Tax ID (int; blank clears it)
- iban: Salary IBAN ("IBAN Vencimento")
- iban_alimentar: Food-allowance IBAN ("IBAN Alimentação")

## Path parameters

- `user_id` integer, required

## Headers

- `x-api-token` string, nullable

## Request body

- object

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/multigest/apis/multigest-protected-api.md) · [All operations](https://skmtc.dev/multigest/apis/multigest-protected-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/multigest/multigest-protected-api/revisions/4b44eb76b3ee/schema)
