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

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

# Update an external user

`PUT` `/cmd/v1/users/external/{externalId}`

Operation ID: `PUT__users_external_externalid`

Updates the details of an existing user identified by their external system ID. Use this endpoint to synchronize user profile changes from an external system into REVEAL. The ExternalId in the request body replaces the stored external ID; it is not checked against the ExternalId in the path.

## Path parameters

- `externalId` (string, required) - The unique identifier for the user in the external system, in the format scope:value (for example hr_system:emp-1042).

## Request body (required)

Content types: `application/json`

## Responses

- `204` - Successfully updated the external 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 external user was not found.
- `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/external/{externalId}:
    put:
      tags:
        - User API
      summary: Update an external user
      description: Updates the details of an existing user identified by their
        external system ID. Use this endpoint to synchronize user profile
        changes from an external system into REVEAL. The ExternalId in the
        request body replaces the stored external ID; it is not checked against
        the ExternalId in the path.
      operationId: PUT__users_external_externalid
      parameters:
        - name: externalId
          in: path
          required: true
          description: The unique identifier for the user in the external system, in the
            format scope:value (for example hr_system:emp-1042).
          schema:
            type: string
          example: hr_system:emp-1042
      requestBody:
        description: The updated external user details, including the required ExternalId.
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ExternalUserInput"
            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
              ExternalId: hr_system:emp-1042
      responses:
        "204":
          description: Successfully updated the external 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 external user was not found.
          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/external/[^/]+/?$
components:
  schemas:
    ExternalUserInput:
      type: object
      description: The request body fields provided when creating (POST) or editing
        (PUT) an external user record. Same fields as a user, plus the required
        ExternalId.
      required:
        - FirstName
        - LastName
        - EmailAddress
        - EmployeeId
        - ExternalId
      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: string
          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. Can be NULL if the user
            is an Administrator or a Regional Admin.
          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
        ExternalId:
          type: string
          pattern: ^(?=.{3,96}$)[a-zA-Z0-9_-]+:[a-zA-Z0-9_-]+$
          minLength: 3
          maxLength: 96
          description: The unique identifier for the user in the external system, in the
            format scope:value. 3 to 96 characters; the scope and the value may
            contain letters, digits, underscore and hyphen.
          example: hr_system:emp-1042
```
