---
updatedAt: 2025-04-03T21:43:49.000Z
agentTools:
  projectIndex: https://developers.entuitiveworkforce.com/llms.txt
---

# Update User By Email

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "entuitive-compliance-api",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://dev.app.entuitivetracker.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/api/client/v1/user": {
      "patch": {
        "summary": "Update User By Email",
        "description": "",
        "operationId": "update-user-by-email",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "email"
                ],
                "properties": {
                  "email": {
                    "type": "string",
                    "description": "The user's email address. This field serves as the unique identifier to validate the user. It cannot be updated."
                  },
                  "fname": {
                    "type": "string",
                    "description": "The user's first name"
                  },
                  "lname": {
                    "type": "string",
                    "description": "The user's last name"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"message\": \"User updated successfully\",\n    \"user\": {\n        \"data\":  {\n            \"email\": \"user1@example.com\",\n            \"fname\": \"User Updated First Name\",\n            \"lname\": \"User Updated Last Name\",\n            \"profile_code\": \"C\",\n            \"phone\": null,\n            \"city\": null,\n            \"address\": null,\n            \"country_id\": null,\n            \"province_id\": null,\n            \"postal_code\": null,\n            \"notification_email\": null,\n            \"company_id\": 1,\n            \"company_name\": \"Company Name\",\n            \"created_on\": \"2024-08-09T10:13:36.000000Z\",\n            \"updated_on\": \"2024-08-09T10:13:36.000000Z\"\n        }  \n}\t"
                  }
                }
              }
            }
          },
          "404": {
            "description": "404",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"error\": \"Resource not found\",\n    \"message\": \"User not found\",\n}"
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```