User update

Method user_update is used for updating users details on your company account. You cannot update a user’s email address trough the API.

Return value

This method returns a string with the status.

Arguments

  1. api_keys (required)
  2. user_id (required)
  3. UserParamsIn (required)

Example code

 1 require 'soap/wsdlDriver'
 2 
 3 server = SOAP::WSDLDriverFactory.new("https://testing.maventa.com/apis/bravo/wsdl").create_rpc_driver
 4 
 5 api_keys = Hash.new
 6 api_keys[:vendor_api_key] = "" # Partner software API key
 7 api_keys[:user_api_key] = "" # User API key
 8 api_keys[:company_uuid] = "" # UUID of current company
 9 
10 user = Hash.new
11 user[:first_name]            = 'Test'
12 user[:last_name]             = 'Person2'
13 user[:phone]                 = '123-555-12345'
14 
15 puts server.user_update(api_keys, "10f1626d-ceb6-414e-9120-bebd9d78524f", user)

Also available in: HTML TXT