# Update user Partially updates an existing User. Only provided fields will be updated. Endpoint: PATCH /site/{siteId}/ahds/v1/user/{userId} Version: 1.0 Security: bearer ## Path parameters: - `siteId` (number, required) Site identifier - `userId` (string, required) User unique identifier (UUID) ## Request fields (application/json): - `code` (string) Practice-specific short code or identifier for the user. - `displayName` (string) Human-readable display name for the user. - `extensions` (object) Vendor- or practice-specific extensions. - `isActive` (boolean) Whether the user is active and can be used in workflows. - `isSalesperson` (boolean) Whether the user is a salesperson. - `isVeterinarian` (boolean) Whether the user is a veterinarian. ## Response 200 fields (application/json): - `code` (string, required) Practice-specific short code or identifier for the user. - `createdAt` (string, required) Timestamp when the user record was created. Example: "2025-01-01T00:00:00.000Z" - `displayName` (string, required) Human-readable display name for the user. - `extensions` (object, required) Vendor- or practice-specific extensions. - `isActive` (boolean, required) Whether the user is active and can be used in workflows. - `isSalesperson` (boolean, required) Whether the user is a salesperson. - `isVeterinarian` (boolean, required) Whether the user is a veterinarian. - `updatedAt` (string, required) Timestamp when the user record was last updated. Example: "2025-01-01T00:00:00.000Z" - `userId` (string, required) Canonical unique identifier for the user. Example: "123e4567-e89b-12d3-a456-426614174000" ## Response 400 fields ## Response 401 fields ## Response 404 fields