code: public Response updateItems( HttpServletRequest request,
                                   String repositoryName,
                                   String workspaceName,
                                   String requestContent ) throws JSONException, RepositoryException {
          JSONObject requestBody = stringToJSONObject(requestContent);
          if (requestBody.length() == 0) {
              return Response.ok().build();
          }
          Session session = getSession(request, repositoryName, workspaceName);
          TreeMap<String, JSONObject> nodesByPath = createNodesByPathMap(requestBody);
          List<RestItem> result = updateMultipleNodes(request, session, nodesByPath);
          return createOkResponse(result);
      }
docs: Performs a bulk updating of items, using a single {@link Session}. If any of the items cannot be updated for whatever
  reason, the entire operation fails.
  
  @param request the servlet request; may not be null or unauthenticated
  @param repositoryName the URL-encoded repository name
  @param workspaceName the URL-encoded workspace name
  @param requestContent the JSON-encoded representation of the values and, possibly, properties to be set
  @return a {@code non-null} {@link Response}
  @throws JSONException if the body of the request is not a valid JSON object
  @throws RepositoryException if any of the JCR operations fail
  @see RestItemHandler#updateItem(javax.servlet.http.HttpServletRequest, String, String, String, String)