put https://app.hive.com/api/v1/users/
Update a user
Log in to see full request history
Responses
Update a user
xxxxxxxxxx
22var userId = "USER_ID";
var apiKey = "API_KEY";
var baseUrl = "https://app.hive.com/api/v1/";
var endpoint = "users/" + userId;
var qs = "?user_id=" + userId + "&api_key=" + apiKey;
var url = baseUrl + endpoint + qs;
​
// New data for user record
var data = {
profile: {
firstName: "Jane"
}
};
​
$.ajax({
method: "PUT",
url: url,
data: JSON.stringify(data),
contentType: "application/json"
}).done(function(data) {
console.log(data);
});
Try It!
to start a request and see the response here! Or choose an example: