code: public void updateRepeatNumber(int overrideId, int pathId, Integer ordinal, Integer repeatNumber, String clientUUID) {
          if (ordinal == null) {
              ordinal = 1;
          }
  
          try {
              // get ID of the ordinal
              int enabledId = getEnabledEndpoint(pathId, overrideId, ordinal, clientUUID).getId();
              updateRepeatNumber(enabledId, repeatNumber);
          } catch (Exception e) {
              e.printStackTrace();
          }
      }
docs: Update the repeat number for a given enabled override
  
  @param overrideId - override ID to update
  @param pathId - path ID to update
  @param ordinal - can be null, Index of the enabled override to edit if multiple of the same are enabled
  @param repeatNumber - number of times to repeat
  @param clientUUID - clientUUID