---
title: "Update a user"
url: "https://developers.vzconnect.com/apis/user-api/versions/8058c80f-08ad-4baf-8fda-034794ba017a/operations/PUT__users__employeeid_"
---

> Full API specification: https://developers.vzconnect.com/apis/user-api/versions/8058c80f-08ad-4baf-8fda-034794ba017a.md

# Update a user

`PUT` `/cmd/v1/users/{employeeId}`

Operation ID: `PUT__users__employeeid_`

Edits an existing user record within the REVEAL account. PUT methods do not return an object review; the response is limited to a set of standard HTTP codes.

## Path parameters

- `employeeId` (integer, required) - Employee ID is the unique identifier for the user within REVEAL. Must be an integer.

## Request body

Content types: `application/json`

## Responses

- `204` - Successfully updated the user.
- `400` - Bad request. The request body is invalid or the update conflicts with an existing user.
- `401` - Unauthorized. The request lacks valid authentication credentials.
- `404` - The specified user was not found, or the employee ID is not a valid integer.
- `500` - Internal server error. An unexpected error occurred on the server.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: User API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
paths:
  /cmd/v1/users/{employeeId}:
    put:
      tags:
        - User API
      summary: Update a user
      description: Edits an existing user record within the REVEAL account. PUT
        methods do not return an object review; the response is limited to a set
        of standard HTTP codes.
      operationId: PUT__users__employeeid_
      parameters:
        - name: employeeId
          in: path
          required: true
          description: Employee ID is the unique identifier for the user within REVEAL.
            Must be an integer.
          schema:
            type: integer
          example: 777099
      requestBody:
        description: The updated user details to apply. May include name, email, role,
          or other profile fields.
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UserInput"
            example:
              FirstName: Lonny
              LastName: Arking
              EmailAddress: user@example.com
              EmployeeId: 777099
              MobileNumber: null
              IsAdministrator: false
              IsRegionalAdministrator: false
              Role: Demo
              TimeZone: null
              Region: null
              Language: null
              IsDriver: false
              DriverNumber: null
      responses:
        "204":
          description: Successfully updated the user.
          content:
            application/json: {}
        "400":
          description: Bad request. The request body is invalid or the update conflicts
            with an existing user.
          content:
            application/json: {}
        "401":
          description: Unauthorized. The request lacks valid authentication credentials.
          content:
            application/json: {}
        "404":
          description: The specified user was not found, or the employee ID is not a valid
            integer.
          content:
            application/json: {}
        "500":
          description: Internal server error. An unexpected error occurred on the server.
          content:
            application/json: {}
      deprecated: false
      x-kong-route-defaults:
        strip_path: false
        paths:
          - ~/cmd/v1/users/[^/]+/?$
components:
  schemas:
    UserInput:
      type: object
      description: The request body fields provided when creating (POST) or editing
        (PUT) a user record.
      required:
        - FirstName
        - LastName
        - EmailAddress
        - EmployeeId
      properties:
        FirstName:
          type: string
          description: The first name of the user.
          example: Lonny
        LastName:
          type: string
          description: The last name of the user.
          example: Arking
        EmailAddress:
          type: string
          description: The email address for the user. The email address is also the
            REVEAL username login and is mandatory when creating a user record.
          example: user@example.com
        EmployeeId:
          type: integer
          description: Employee ID is the unique identifier for the user within REVEAL.
            Not a mandatory field within the REVEAL account, but required for
            the API.
          example: 777099
        MobileNumber:
          type: string
          nullable: true
          description: The phone number for the user.
          example: null
        IsAdministrator:
          type: boolean
          default: false
          description: Boolean field for true or false. Default is false. True indicates
            that the user is an Administrator for the referenced REVEAL account.
          example: true
        IsRegionalAdministrator:
          type: boolean
          default: false
          description: Boolean field for true or false. Default is false. Can only be set
            to true if the corresponding REVEAL account is enabled with Regional
            Administration permission.
          example: false
        Role:
          type: string
          nullable: true
          description: "The name of the role applied to the user. Required when creating a
            user: it must match the name of an existing role in the REVEAL
            account, including for Administrators and Regional Administrators."
          example: Demo
        TimeZone:
          type: string
          nullable: true
          description: The time zone selection for the user. Follows ISO time zone
            abbreviations. If NULL, defaults to the Account Preferences
            selection.
          example: null
        Region:
          type: string
          nullable: true
          description: The Region selection for the user. Follows ISO alpha 3 country codes.
          example: null
        Language:
          type: string
          nullable: true
          description: The Language selection for the user. Follows IETF language tags.
          example: null
        IsDriver:
          type: boolean
          default: false
          description: Boolean field for true or false. Default is false. If the user
            should also be a Driver, a unique Driver Number must also be
            provided.
          example: false
        DriverNumber:
          type: string
          nullable: true
          description: The Driver Number is the unique identifier used to reference the
            driver within the API. Required for the API when the user is a
            Driver.
          example: null
```
