code: function (projectName, directory, params, callback) {
          return postApiCallWithFormData('project/' + projectName + '/change-directory', { name: directory }, params, callback);
      }
docs: Rename directory or modify its attributes. When renaming directory the path can not be changed (it means new_name parameter can not contain path, name only).
  @param projectName {String} Full directory path that should be modified (e.g. /MainPage/AboutUs).
  @param directory {String} New directory name.
  @param params {Object} New parameters for the directory.
  @param callback {Function} Callback to call on function completition.