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

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

# Deactivate a user

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

Operation ID: `PUT__users__employeeid__deactivate`

Flags a user as deactivated within a REVEAL account. REVEAL allows for both deactivated and deleted object row states, however only the deactivation option is made available through the API. 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 (required)

Content types: `application/json`

## Responses

- `204` - Successfully deactivated the user.
- `400` - Bad request. The request body is invalid.
- `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}/deactivate:
    put:
      tags:
        - User API
      summary: Deactivate a user
      description: Flags a user as deactivated within a REVEAL account. REVEAL allows
        for both deactivated and deleted object row states, however only the
        deactivation option is made available through the API. PUT methods do
        not return an object review; the response is limited to a set of
        standard HTTP codes.
      operationId: PUT__users__employeeid__deactivate
      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: Required request body. Set Deactivate to true to deactivate the
          user. If Deactivate is false the request makes no change and still
          returns 204.
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/DeactivateInput"
            example:
              Deactivate: true
      responses:
        "204":
          description: Successfully deactivated the user.
          content:
            application/json: {}
        "400":
          description: Bad request. The request body is invalid.
          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/[^/]+/deactivate/?$
components:
  schemas:
    DeactivateInput:
      type: object
      description: The request body used to flag a user as deactivated.
      required:
        - Deactivate
      properties:
        Deactivate:
          type: boolean
          description: Set to true to flag the user as deactivated within the REVEAL
            account.
          example: true
```
