https://developer.zendesk.com/rest_api/docs/core/users#update-many-users
486967
def users_update_many(self, data, external_ids=None, ids=None, **kwargs):
        ""
        api_path = "/api/v2/users/update_many.json"
        api_query = {}
        if "query" in kwargs.keys():
            api_query.update(kwargs["query"])
            del kwargs["query"]
        if external_ids:
            api_query.update({
                "external_ids": external_ids,
            })
        if ids:
            api_query.update({
                "ids": ids,
            })
        return self.call(api_path, query=api_query, method="PUT", data=data, **kwargs)
1198795
public function updateUser( $user, $fields = array() )
    {
        /** @var \eZ\Publish\API\Repository\Repository $repository */
        $repository = $this->getRepository();
        $contentService = $repository->getContentService();
        $userService = $repository->getUserService();

        $userUpdateStruct = $userService->newUserUpdateStruct();
        $contentUpdateStruct = $contentService->newContentUpdateStruct();
        foreach ( $fields as $fieldName => $fieldValue )
        {
            switch ( $fieldName )
            {
                case 'password':
                    // TODO: throw, not impl.
                    break;
                case 'email':
                    // TODO: throw, not impl.
                    break;
                default:
                    $contentUpdateStruct->setField( $fieldName, $fieldValue, 'eng-GB' );
                    break;
            }
        }
        $userUpdateStruct->contentUpdateStruct = $contentUpdateStruct;

        $repository->sudo(
            function() use( $user, $userUpdateStruct, $userService )
            {
                $userService->updateUser( $user, $userUpdateStruct );
            }
        );
    }
120668
def update_group_admin(self, group_id, users=[]):
        
        data = {
            'groupId': group_id,
            'users': users,
        }
        return _fix_group(self.post('updateGroupAdmin', data))
1134541
function (done) {
      var index = 'users:' + user._id + ':clients'
      Client.__client.zrevrange(index, 0, -1, function (err, ids) {
        if (err) { return done(err) }
        done(null, ids)
      })
    }
920773
function update(req, res, next) {
  var params = {
    appId: req.params.id || req.body._id,
    forms: req.body.forms || []
  };
  forms.updateAppForms(req.connectionOptions, params, formsResultHandlers(constants.resultTypes.formProjects, req, next));
}
576714
def update(self, params, path, **kwargs):
        
        self.client.request('POST', params, path, **kwargs)
306583
def views_update_many(self, data, **kwargs):
        ""
        api_path = "/api/v2/views/update_many.json"
        return self.call(api_path, method="PUT", data=data, **kwargs)
701683
function updateProjectAssignment(req, res, next) {
  var projectId = req.params.projectId;
  var username = req.params.username;
  var dataStore = req.app.dataStore;

  // Get the project REST resource - /projects/{projectId}
  var resource = new swagger.Resource('/projects', projectId, null);
  dataStore.get(resource, function(err, resource) {
    if (resource) {
      var members = resource.data.assigned;
      var currentlyAssigned = members.indexOf(username) >= 0;

      // Add/remove the employee
      if (req.method === 'PUT' && !currentlyAssigned) {
        members.push(username);
      }
      else if (req.method === 'DELETE' && currentlyAssigned) {
        members.splice(members.indexOf(username), 1);
      }

      // Save changes
      dataStore.save(resource, next);
    }
    else {
      // The project ID does not exist, so respond with an HTTP 404 (Not Found)
      res.sendStatus(404);
    }
  });
}
1310640
def user_update(object_id, input_params={}, always_retry=False, **kwargs):
    
    return DXHTTPRequest('/%s/update' % object_id, input_params, always_retry=always_retry, **kwargs)
158129
def update_user(update_user_params)
        if @user.update_attributes(update_user_params)
          render json: @user, except: [:password_digest]
        else
          render_errors 400, @user.errors.full_messages
        end
      end
1357961
def visitor_update(self, visitor_id, data, **kwargs):
        ""
        api_path = "/api/v2/visitors/{visitor_id}"
        api_path = api_path.format(visitor_id=visitor_id)
        return self.call(api_path, method="PUT", data=data, **kwargs)
1007342
def cli(ctx, group_id, users=None):
    
    return ctx.gi.groups.update_group_admin(group_id, users=users)
783987
def users_create_many(self, data, **kwargs):
        ""
        api_path = "/api/v2/users/create_many.json"
        return self.call(api_path, method="POST", data=data, **kwargs)
734808
function update(req, res, next) {
  var body = req.body;
  delete body.username;

  db.users.update(req.params.user, body, function(err, user) {
    if(err) { return next(err); }
    res.json(201, user);
  });
}
21022
def update(self, uid):
        '''
        
        '''
        if self.userinfo.role[1] >= '3':
            pass
        else:
            return False
        post_data = self.get_post_data()

        post_data['user_name'] = self.get_current_user()

        if self.is_p:
            if MLink.update(uid, post_data):
                output = {
                    'addinfo ': 1,
                }
            else:
                output = {
                    'addinfo ': 0,
                }
            return json.dump(output, self)
        else:
            if MLink.update(uid, post_data):
                self.redirect('/link/list')
517066
def update(self, request, pk=None, parent_lookup_organization=None):
        ''''''
        user = get_object_or_404(User, pk=pk)
        org = get_object_or_404(
            SeedOrganization, pk=parent_lookup_organization)
        self.check_object_permissions(request, org)
        org.users.add(user)
        return Response(status=status.HTTP_204_NO_CONTENT)
950995
@POST
  @Path("{id}")
  @RolesAllowed({"ROLE_ADMIN"})
  public Response update(@PathParam("id") Long id,
                         @Context UriInfo uriInfo,
                         @Context SecurityContext securityContext,
                         DUser user) {
    checkNotNull(id);
    // Username and email will never be updated, no need to check format

    user = userService.update(id, user, securityContext.isUserInRole(OAuth2UserResource.ROLE_ADMIN));

    UriBuilder uriBuilder = uriInfo.getBaseUriBuilder()
        .path("api/users")
        .path(user.getId().toString());

    return Response.ok()
        .location(uriBuilder.build())
        .entity(user.getId())
        .build();
  }