code: public ApiSuccessResponse reject(String mediatype, String id, RejectData rejectData) throws ApiException {
          ApiResponse<ApiSuccessResponse> resp = rejectWithHttpInfo(mediatype, id, rejectData);
          return resp.getData();
      }
docs: Reject an incoming interaction
  Reject the specified interaction.
  @param mediatype The media channel. (required)
  @param id The ID of the interaction to reject. (required)
  @param rejectData Request parameters. (optional)
  @return ApiSuccessResponse
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body