SDK
SDK Dart Null Safety v3.x
2

UpdateSelf #

Updates the current user object in Kuzzle.

Arguments #

Future<KuzzleUser> updateSelf(Map<String, dynamic> body)
ArgumentTypeDescription
body
Map<String, dynamic>
Map representing the user content

Return #

A User representing the current user logged with the SDK.

Usage #

await kuzzle
  .auth
  .login(
    'local',
    {
      'username': 'foo',
      'password': 'bar'
    },
);
await kuzzle
  .auth
  .updateSelf(
    {
      'age': 42
    }
);