Performs a partial content update on this object.

update(content, [options], [callback])

Arguments Type Description
content JSON Object Profile content
options JSON Object Optional parameters
callback function Optional callback handling the response


Option Type Description Default
queuable boolean Make this request queuable or not true

Return Value

Returns the Profile object to allow chaining.

Callback Response

Returns the updated version of this object.


Copied to clipboard!

JSONObject policy1 = new JSONObject().put("roleId", "myrole");

JSONObject updateContent = new JSONObject()
  .put("policies", new JSONArray().put(policy1));

profile.update(updateContent, new ResponseListener<Profile>() {
  public void onSuccess(Profile updatedProfile) {


  public void onError(JSONObject error) {