Skip to content

DataAPI SDK english MT.DataAPI Endpoint method updateUser

Taku AMANO edited this page Aug 28, 2013 · 2 revisions

updateUser

Update an user.

PUT https://your-host/your-mt-api.cgi/v1/users/:user_id Detail

Parameters

Name Type Required Description
userId Number | Object | Function yes User ID
userData Object | HTMLFormElement yes A user data
callback Function no

Returns

XMLHttpRequest: A XMLHttpRequest object

Example

api.updateUser(userId, userData, function(response) {
  if (response.error) {
    // Handle error
    return;
  }

  // Do stuff
});
Clone this wiki locally