code: public boolean setMethodArguments(String pathName, String methodName, Integer ordinal, Object... arguments) {
          try {
              BasicNameValuePair[] params = new BasicNameValuePair[arguments.length + 2];
              int x = 0;
              for (Object argument : arguments) {
                  params[x] = new BasicNameValuePair("arguments[]", argument.toString());
                  x++;
              }
              params[x] = new BasicNameValuePair("profileIdentifier", this._profileName);
              params[x + 1] = new BasicNameValuePair("ordinal", ordinal.toString());
  
              JSONObject response = new JSONObject(doPost(BASE_PATH + uriEncode(pathName) + "/" + methodName, params));
  
              return true;
          } catch (Exception e) {
              e.printStackTrace();
          }
  
          return false;
      }
docs: Set the method arguments for an enabled method override
  
  @param pathName Path name
  @param methodName Fully qualified method name
  @param ordinal 1-based index of the override within the overrides of type methodName
  @param arguments Array of arguments to set(specify all arguments)
  @return true if success, false otherwise