---
title: "POST /api/v1/users/{userId}"
method: POST
path: "/api/v1/users/{userId}"
tags: ["Users"]
---

# POST /api/v1/users/{userId}

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

## Request

- Base URL: `https://api.immy.bot` (the document declares no server; this is the origin it was published from)
- URL: `https://api.immy.bot/api/v1/users/{userId}`
- Auth: none declared

## Path parameters

- `userId` integer, required

## Request body

- UpdateUserPayload
  - `id` integer
  - `isAdmin` boolean
  - `tenantId` integer
  - `canManageCrossTenantDeployments` boolean

## Response `200`

OK

- GetUserResponse
  - `id` integer
  - `email` string, nullable
  - `name` string, nullable
  - `tenantId` integer
  - `isAdmin` boolean
  - `isMsp` boolean
  - `companyName` string, nullable
  - `type` string, nullable
  - `azurePrincipalId` string, nullable
  - `isExpired` boolean
  - `expirationDateUTC` string, date-time, nullable
  - `personId` integer, nullable
  - `canManageCrossTenantDeployments` boolean
  - `groupCount` integer
  - `groups` string[], nullable
  - `directRoleCount` integer

---

[API](https://skmtc.dev/immy/apis/immy-bot-api-2.md) · [All operations](https://skmtc.dev/immy/apis/immy-bot-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/immy/apis/immy-bot-api-2/revisions/75b50268fa51?raw)
