---
updatedAt: 2026-05-12T10:00:13.000Z
---

# Modify a user

This operation enables you to modify an existing user. <br><br>**NOTE:** **<** and **>** characters are not allowed in any updateable field.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "x-explorer-enabled": false,
  "info": {
    "title": "User API (Legacy)",
    "license": {
      "name": "(c) Copyright 2021 WhiteHat Security"
    },
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://sentinel.whitehatsec.com"
    }
  ],
  "paths": {
    "/api/user/{user_id}": {
      "put": {
        "tags": [
          "User API v1.0"
        ],
        "summary": "Modify a user",
        "description": "This operation enables you to modify an existing user. <br><br>**NOTE:** **<** and **>** characters are not allowed in any updateable field.",
        "operationId": "modifyUser",
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "description": "User ID.",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "format",
            "in": "query",
            "description": "Selects the requested response representation format.",
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string",
              "default": "application/xml",
              "example": "application/json",
              "enum": [
                "application/json",
                "application/xml"
              ]
            }
          }
        ],
        "requestBody": {
          "description": "Holds the sentinel user information for PUT operation.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserModifyPUTReqest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Provides information about the modified user.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserGetResponseObj"
                }
              },
              "application/xml": {
                "example": "XML preview is currently not supported."
              }
            }
          },
          "400": {
            "description": "BadRequestResponse indicates a request with invalid parameters.",
            "content": {}
          },
          "401": {
            "description": "UnauthorizedResponse signals an unauthorized API access.",
            "content": {}
          },
          "403": {
            "description": "ForbiddenResponse signals a request for a resource that does not exist or is not authorized.",
            "content": {}
          },
          "500": {
            "description": "GenericError generic error.",
            "content": {}
          }
        },
        "deprecated": false
      }
    }
  },
  "components": {
    "schemas": {
      "UserGetResponseObj": {
        "type": "object",
        "properties": {
          "last_name": {
            "type": "string"
          },
          "timezone": {
            "type": "string"
          },
          "last_viewed_messages": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "client_id": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "email_address": {
            "type": "string"
          },
          "client": {
            "type": "string"
          },
          "first_name": {
            "type": "string"
          },
          "show_cvss": {
            "type": "string"
          },
          "immediate_severity_email": {
            "type": "string"
          },
          "last_login": {
            "type": "string"
          },
          "monthly_email": {
            "type": "boolean"
          },
          "username": {
            "type": "string"
          },
          "action_items_email": {
            "type": "boolean"
          },
          "daily_email": {
            "type": "boolean"
          },
          "weekly_email": {
            "type": "boolean"
          },
          "expose_hostnames": {
            "type": "boolean"
          },
          "email_preferences": {
            "properties": {
              "sast_pre_scan_success": {
                "type": "number"
              },
              "sast_pre_scan_failure": {
                "type": "number"
              },
              "immediate_credential": {
                "type": "number"
              },
              "sast_scan_success": {
                "type": "number"
              },
              "sast_scan_failure": {
                "type": "number"
              },
              "immediate_schedule": {
                "type": "number"
              },
              "immediate_sca_scan_complete": {
                "type": "number"
              },
              "daily_closed_vuln": {
                "type": "number"
              },
              "immediate_open_vuln": {
                "type": "number"
              },
              "immediate_closed_vuln": {
                "type": "number"
              },
              "weekly_schedule": {
                "type": "number"
              },
              "immediate_manual_scan_complete": {
                "type": "number"
              },
              "weekly_credential": {
                "type": "number"
              }
            },
            "type": "object"
          },
          "company": {
            "type": "string"
          },
          "lockedout": {
            "type": "number"
          },
          "immediate_email": {
            "type": "boolean"
          },
          "href": {
            "type": "string"
          },
          "entity_role_id": {
            "type": "string"
          },
          "has_api_key": {
            "type": "number"
          },
          "zipcode": {
            "type": "string"
          },
          "phone": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "created_by": {
            "type": "string"
          },
          "creation_time": {
            "type": "string"
          },
          "fax": {
            "type": "string"
          },
          "job_title": {
            "type": "string"
          },
          "middle_initial": {
            "type": "string"
          },
          "mobile": {
            "type": "string"
          },
          "notes": {
            "type": "string"
          },
          "require_mfa": {
            "type": "string"
          },
          "state": {
            "type": "string"
          }
        }
      },
      "UserModifyPUTReqest": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string",
            "description": "The user's Sentinel role."
          },
          "address": {
            "type": "string",
            "description": "The user's mailing address."
          },
          "city": {
            "type": "string",
            "description": "The city in which the user resides or works."
          },
          "company": {
            "type": "string",
            "description": "The company the user works for."
          },
          "country": {
            "type": "string",
            "description": "The country in which the user resides or works."
          },
          "first_name": {
            "type": "string",
            "description": "The user's first name."
          },
          "last_name": {
            "type": "string",
            "description": "The user's last name."
          },
          "phone": {
            "type": "number",
            "description": "A phone number where the user can be reached."
          },
          "state": {
            "type": "string",
            "description": "The state in which the user resides or works."
          },
          "zipcode": {
            "type": "number",
            "description": "The zip code associated with the user's address."
          },
          "fax": {
            "type": "number",
            "description": "A fax number where the user or user's company can be reached."
          },
          "job_title": {
            "type": "string",
            "description": "The user's job title."
          },
          "notes": {
            "type": "string",
            "description": "Any additional notes about the user."
          },
          "middle_initial": {
            "type": "string",
            "description": "First initial of the user's middle name. NOTE: Only a single character is acceptable for this field. If more characters are used, the update will not be applied."
          },
          "timezone": {
            "type": "string",
            "description": "The user's time zone. Only valid time zones with the accepted timezone format are allowed. EXAMPLE: 'America/New_York'"
          }
        }
      }
    }
  },
  "x-readme": {
    "proxy-enabled": true
  }
}
```