---
title: "PUT /api/v1/users/update/{userId}"
method: PUT
path: "/api/v1/users/update/{userId}"
tags: ["user-controller"]
---

# PUT /api/v1/users/update/{userId}

`PUT /api/v1/users/update/{userId}`

## Path parameters

- `userId` string, required

## Request body

- UpdateUser
  - `id` string
  - `firstName` string
  - `middleName` string
  - `lastName` string
  - `organizationId` string
  - `roleId` string
  - `routerUrl` string
  - `userType` 'USER_TYPE_OUTLOOK' | 'USER_TYPE_GMAIL' | 'USER_TYPE_SSO'
  - `gmailToken` string
  - `gmailRefreshToken` string
  - `gmailHistoryId` string
  - `accountRole` RoleInstance
    - `id` string
    - `name` string
    - `properties` RolePropertyInstance[]
      - `propName` string
      - `propValue` string
      - `attachmentName` string
      - `jobTypeFldJson` string
      - `allowedValuesResults` string[]
      - `attachment` boolean
  - `email` string
  - `username` string
  - `status` 'ACTIVE' | 'INACTIVE'
  - `requirePasswordReset` boolean
  - `profilePictureUrl` string
  - `failedLoginAttempts` integer
  - `graphToken` string
  - `graphTokenExpireDate` integer
  - `subscribedEmail` string
  - `isAuthorized` boolean
  - `mobile` string
  - `mobileCountryCode` string
  - `data` object
  - `isDelegatedUser` boolean
  - `delegatedUserEmail` string

## Response `200`

OK

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/gosure/apis/gosure-api.md) · [All operations](https://skmtc.net/gosure/apis/gosure-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gosure/gosure-api/revisions/785f532b1250/schema)
