---
title: "Update an user entity"
method: POST
path: "/users/{userId}"
tags: ["users"]
---

# Update an user entity

`POST /users/{userId}`

## Path parameters

- `userId` integer, required

## Request body

- UserDbDto
  - `id` integer
  - `userName` string, required
  - `email` string, email, required
  - `firstName` string
  - `lastName` string
  - `organization` string
  - `description` string
  - `avatar` string
  - `avatarId` string
  - `notification` boolean
  - `termsOfUseConsent` boolean
  - `marketingConsent` boolean
  - `lastAccess` string, date-time
  - `dateCreated` string, date-time
  - `lastUpdated` string, date-time
  - `deleted` boolean

## Response `204`

OK - No content

## Other responses

- `400` — Bad request
- `403` — Operation not allowed

---

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