---
title: "PUT /user/id/{id}"
method: PUT
path: "/user/id/{id}"
tags: ["user"]
---

# PUT /user/id/{id}

`PUT /user/id/{id}`

## Request

- Base URL: `https://www.weclapp.com/api/nullapi/v2`
- URL: `https://www.weclapp.com/api/nullapi/v2/user/id/{id}`
- Auth: API key in header `AuthenticationToken`
- TypeScript: <https://skmtc.dev/weclapp/apis/weclapp-api/docs/user/id/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

update user

## Path parameters

- `id` string, required

## Query parameters

- `dryRun` boolean

## Request body

- User
  - `id` string
  - `version` string
  - `canEditDashboard` boolean
  - `createdDate` integer
  - `customAttributes` CustomAttribute[]
    - `attributeDefinitionId` string
    - `booleanValue` boolean
    - `dateValue` integer
    - `entityId` string
    - `entityReferences` EntityReference[]
      - `entityId` string
      - `entityName` string
    - `numberValue` string, number
    - `selectedValueId` string
    - `selectedValues` OnlyId[]
      - `id` string
    - `stringValue` string
  - `email` string, required
  - `faxNumber` string
  - `firstName` string
  - `imageId` string
  - `lastModifiedDate` integer
  - `lastName` string
  - `licenses` string[]
  - `mobilePhoneNumber` string
  - `phoneNumber` string
  - `status` 'ACTIVE' | 'DEPARTURE' | 'NOT_ACTIVE'
  - `superUser` boolean
  - `title` string
  - `userRoles` OnlyId[]
    - `id` string
  - `username` string

## Response `200`

user update response

- User
  - `id` string
  - `version` string
  - `canEditDashboard` boolean
  - `createdDate` integer
  - `customAttributes` CustomAttribute[]
    - `attributeDefinitionId` string
    - `booleanValue` boolean
    - `dateValue` integer
    - `entityId` string
    - `entityReferences` EntityReference[]
      - `entityId` string
      - `entityName` string
    - `numberValue` string, number
    - `selectedValueId` string
    - `selectedValues` OnlyId[]
      - `id` string
    - `stringValue` string
  - `email` string, required
  - `faxNumber` string
  - `firstName` string
  - `imageId` string
  - `lastModifiedDate` integer
  - `lastName` string
  - `licenses` string[]
  - `mobilePhoneNumber` string
  - `phoneNumber` string
  - `status` 'ACTIVE' | 'DEPARTURE' | 'NOT_ACTIVE'
  - `superUser` boolean
  - `title` string
  - `userRoles` OnlyId[]
    - `id` string
  - `username` string

## Other responses

- `default`: error response

## Changes

- **2026-11-07** `0e021229755d`: 1 info
  - added the new optional `query` request parameter `dryRun`
- **2022-06-29** `a926aad6dc0c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/weclapp/apis/weclapp-api/changes/user/id/:id/put.md)

---

[API](https://skmtc.dev/weclapp/apis/weclapp-api.md) - [All operations](https://skmtc.dev/weclapp/apis/weclapp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/weclapp/apis/weclapp-api/revisions/0e021229755d?raw)
