@@ -219,7 +219,7 @@ private void checkForTempConsentAndUpload(Context context)
219
219
try
220
220
{
221
221
ConsentSignatureBody consent = loadConsentSignatureBody (context );
222
- uploadConsent (context , consent );
222
+ uploadConsent (context , BuildConfig . STUDY_SUBPOPULATION_GUID , consent );
223
223
}
224
224
catch (Exception e )
225
225
{
@@ -444,12 +444,12 @@ private ConsentSignatureBody loadConsentSignatureBody(Context context)
444
444
@ Override
445
445
public void uploadConsent (Context context , TaskResult consentResult )
446
446
{
447
- uploadConsent (context , createConsentSignatureBody (consentResult ));
447
+ uploadConsent (context , BuildConfig . STUDY_SUBPOPULATION_GUID , createConsentSignatureBody (consentResult ));
448
448
}
449
449
450
- private void uploadConsent (Context context , ConsentSignatureBody consent )
450
+ private void uploadConsent (Context context , String subpopulationGuid , ConsentSignatureBody consent )
451
451
{
452
- service .consentSignature (getStudyId () , consent )
452
+ service .consentSignature (subpopulationGuid , consent )
453
453
.compose (ObservableUtils .applyDefault ())
454
454
.subscribe (response -> {
455
455
if (response .code () == 201 ||
@@ -966,8 +966,9 @@ public interface BridgeService
966
966
Observable <Response <UserSessionInfo >> signIn (@ Body SignInBody body );
967
967
968
968
@ Headers ("Content-Type: application/json" )
969
- @ POST ("v3/subpopulations/{studyId}/consents/signature" )
970
- Observable <Response <BridgeMessageResponse >> consentSignature (@ Path ("studyId" ) String studyId , @ Body ConsentSignatureBody body );
969
+ @ POST ("v3/subpopulations/{subpopulationGuid}/consents/signature" )
970
+ Observable <Response <BridgeMessageResponse >> consentSignature (@ Path ("subpopulationGuid" ) String subpopulationGuid ,
971
+ @ Body ConsentSignatureBody body );
971
972
972
973
/**
973
974
* @return Response code <b>200</b> w/ message explaining instructions on how the user should
@@ -978,8 +979,9 @@ public interface BridgeService
978
979
Observable <Response <BridgeMessageResponse >> requestResetPassword (@ Body EmailBody body );
979
980
980
981
981
- @ POST ("v3/subpopulations/{studyId}/consents/signature/withdraw" )
982
- Observable <Response <BridgeMessageResponse >> withdrawConsent (@ Path ("studyId" ) String studyId , @ Body WithdrawalBody withdrawal );
982
+ @ POST ("v3/subpopulations/{subpopulationGuid}/consents/signature/withdraw" )
983
+ Observable <Response <BridgeMessageResponse >> withdrawConsent (@ Path ("subpopulationGuid" ) String subpopulationGuid ,
984
+ @ Body WithdrawalBody withdrawal );
983
985
984
986
/**
985
987
* @return Response code <b>200</b> w/ message explaining instructions on how the user should
0 commit comments