updateUser( currentPassword:string, authorization:string, options:UpdateUserOptions, ):Promise< |{ code:"Ok"; data:{ me:{ boxes:string[]; email:string; emailIsConfirmed:boolean; integrations?:Record<string,unknown>; language:"de_DE"|"en_US"; name:string; role:"user"|"admin"; sharedBoxes?:string[]; }; }; message:|"User successfully saved." |"User successfully saved. E-Mail changed. Please confirm your new address. Until confirmation, sign in using your old address" |"User successfully saved. Password changed. Please sign in with your new password"; } |{ code:"Ok"; message:"User not updated. No changed properties supplied."; }, >
Returns Promise< |{ code:"Ok"; data:{ me:{ boxes:string[]; email:string; emailIsConfirmed:boolean; integrations?:Record<string,unknown>; language:"de_DE"|"en_US"; name:string; role:"user"|"admin"; sharedBoxes?:string[]; }; }; message:|"User successfully saved." |"User successfully saved. E-Mail changed. Please confirm your new address. Until confirmation, sign in using your old address" |"User successfully saved. Password changed. Please sign in with your new password"; } |{ code:"Ok"; message:"User not updated. No changed properties supplied."; }, >
See
https://docs.opensensemap.org/#api-Users-updateUser