SDK
SDK Dart v1.x
2

# UpdateSelf

Updates the current user object in Kuzzle.

# Arguments

Copied to clipboard!
Future<KuzzleUser> updateSelf(Map<String, dynamic> body)
Argument Type Description
body
Map<String, dynamic>
Map representing the user content

# Return

A User representing the current user logged with the SDK.

# Usage

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