---
title: "PATCH /api/v1/user-accounts/{userId}"
method: PATCH
path: "/api/v1/user-accounts/{userId}"
tags: ["Users"]
---

# PATCH /api/v1/user-accounts/{userId}

`PATCH /api/v1/user-accounts/{userId}`

## Request

- Base URL: `https://app.distr.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://app.distr.sh/api/v1/user-accounts/{userId}`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer

Partially update a user account

## Path parameters

- `userId` string, required

## Request body

- object
  - `name` string, nullable
  - `userRole` string, nullable

## Response `200`

OK

- ApiUserAccountResponse
  - `activated` boolean
  - `createdAt` string, date-time
  - `customerOrganizationId` string, nullable
  - `email` string
  - `emailVerified` boolean
  - `id` string
  - `imageId` string, nullable
  - `imageUrl` string, nullable
  - `joinedOrgAt` string, date-time
  - `mfaEnabled` boolean
  - `name` string
  - `partnerOrganizationId` string, nullable
  - `userRole` string

---

[API](https://skmtc.dev/distr/apis/distr-api-reference.md) - [All operations](https://skmtc.dev/distr/apis/distr-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/distr/apis/distr-api-reference/revisions/7dcafe205f83?raw)
