LWT JavaScript API
    Preparing search index...

    Fields the create and update endpoints accept.

    interface UserPayload {
        email: string;
        is_active: boolean;
        password: string;
        role: "user" | "admin";
        username: string;
    }
    Index
    email: string
    is_active: boolean
    password: string

    Empty on update means "leave the password alone".

    role: "user" | "admin"
    username: string