SDK
SDK Golang v1.x
1

# UpdateSelf

Updates the current user object in Kuzzle.

# Arguments

Copied to clipboard!
func (a *Auth) UpdateSelf(data json.RawMessage, options types.QueryOptions) (*security.User, error)
Arguments Type Description
content
string
the new credentials
options
QueryOptions
QueryOptions object containing query options

# Options

Additional query options

Property Type Description Default
Queuable
bool
Make this request queuable or not true

# Return

A pointer to a security.User object and an error or nil

# Usage

Copied to clipboard!
kuzzle.Auth.Login("local", json.RawMessage("{\"username\":\"foo\",\"password\":\"bar\"}"), nil)
_, err := kuzzle.Auth.UpdateSelf(json.RawMessage("{\"foo\":\"bar\"}"), nil)
if err != nil {
  log.Fatal(err)
} else {
  fmt.Println("Success")
}