public interface ForResearchersApi
Modifier and Type | Method and Description |
---|---|
retrofit2.Call<Message> |
createActivityEventForParticipant(String userId,
CustomActivityEventRequest customActivityEventRequest)
Deprecated.
|
retrofit2.Call<HealthDataDocumentation> |
createOrUpdateHealthDataDocumentation(HealthDataDocumentation healthDataDocumentation)
Create or update health data documentation.
|
retrofit2.Call<IdentifierHolder> |
createParticipant(SignUp signUp)
Create a new study participant (user)
If the caller is a developer account, then the participant record will automatically be created as a test user (marked with the “test_user” data group).
|
retrofit2.Call<IdentifierHolder> |
createStudyParticipant(String studyId,
SignUp signUp)
Create a new study participant who will be enrolled (but not consented) in this study.
|
retrofit2.Call<Message> |
createStudyParticipantStudyActivityEvent(String studyId,
String userId,
StudyActivityEventRequest customActivityEventRequest,
Boolean showError,
Boolean updateBursts)
Create a new activity event for a participant in this study.
|
retrofit2.Call<Message> |
deleteAdherenceRecord(String studyId,
String userId,
String instanceGuid,
DateTime eventTimestamp,
DateTime startedOn)
Delete an adherence record
Delete an existing adherence record
|
retrofit2.Call<Message> |
deleteDemographic(String studyId,
String userId,
String demographicId)
Deletes a specific demographic (single category) for a particular user
Deletes a specific demographic (single category) for a particular user (study-level, done by researcher or study coordinator)
|
retrofit2.Call<Message> |
deleteDemographicUser(String studyId,
String userId)
Deletes all of a user's demographics
Deletes all of a user's demographics (study-level, done by researcher or study coordinator)
|
retrofit2.Call<Message> |
deleteParticipant(String userId)
Delete a study participant if the record has the `test_user` data group, or the account has not been used by the participant (the participant has never signed in to Bridge using the account) and it is only enrolled in one study.
|
retrofit2.Call<Message> |
deleteParticipantActivities(String userId)
Deprecated.
|
retrofit2.Call<Message> |
deleteStudyParticipant(String studyId,
String userId)
Delete a study participant if the record has the `test_user` data group, or the account has not been used by the participant (the participant has never signed in to Bridge using the account) and it is only enrolled in one study.
|
retrofit2.Call<Message> |
deleteStudyParticipantStudyActivityEvent(String studyId,
String userId,
String eventId,
Boolean showError)
Delete activity event for a study participant if it is mutable.
|
retrofit2.Call<Enrollment> |
enrollParticipant(String studyId,
Enrollment enrollment)
Enroll an account in a study as a participant.
|
retrofit2.Call<GeneratedPassword> |
generatePassword(String externalId,
Boolean createAccount)
Deprecated.
|
retrofit2.Call<ActivityEventList> |
getActivityEventsForParticipant(String userId)
Deprecated.
|
retrofit2.Call<AdherenceStatistics> |
getAdherenceStatistics(String studyId,
Integer adherenceThreshold)
Get summary stats of the adherence situation for all participants who are active in the study during the current week of the study.
|
retrofit2.Call<HealthDataDocumentationList> |
getAllHealthDataDocumentationForParentId(String parentId,
String offsetKey,
Integer pageSize)
Get all health data documentation by parentId.
|
retrofit2.Call<DemographicValuesValidationConfig> |
getDemographicsValidationConfig(String studyId,
String categoryName)
Fetch a DemographicValuesValidationConfig
Fetch an existing DemographicValuesValidationConfig which is used to configure demographics validation.
|
retrofit2.Call<DemographicUserResponse> |
getDemographicUser(String studyId,
String userId)
Fetches all demographics for a user
Fetches all demographics for a user (study-level, done by researcher/study-coordinator)
|
retrofit2.Call<DemographicUserResponseList> |
getDemographicUsers(String studyId,
Integer offsetBy,
Integer pageSize)
Fetches all study-level demographics for all users within a study
Fetches all study-level demographics for all users within a study (study-level, done by researcher/study-coordinator)
|
retrofit2.Call<EnrollmentDetailList> |
getEnrollments(String studyId,
String enrollmentFilter,
Boolean includeTesters,
Integer offsetBy,
Integer pageSize)
Get the enrollments in this study.
|
retrofit2.Call<EnrollmentDetailList> |
getEnrollmentsForUser(String userId)
Get enrollment records for this user
|
retrofit2.Call<ExternalIdentifierList> |
getExternalIdsForStudy(String studyId,
Integer offsetBy,
Integer pageSize,
String idFilter)
Get external IDs for a study
|
retrofit2.Call<HealthDataDocumentation> |
getHealthDataDocumentationForId(String identifier)
Get a health data documentation with the given identifier
This endpoint can be called by researchers and developers to get a specific documentation by identifier.
|
retrofit2.Call<SurveyList> |
getMostRecentSurveys(Boolean includeDeleted)
Deprecated.
|
retrofit2.Call<UploadSchemaList> |
getMostRecentUploadSchemas(Boolean includeDeleted)
Deprecated.
|
retrofit2.Call<ForwardCursorScheduledActivityList> |
getParticipantActivityHistory(String userId,
String activityGuid,
DateTime scheduledOnStart,
DateTime scheduledOnEnd,
String offsetKey,
Integer pageSize)
Deprecated.
|
retrofit2.Call<StudyParticipant> |
getParticipantByExternalId(String externalId,
Boolean consents)
Get a study participant (user) record using the external ID of the account
|
retrofit2.Call<StudyParticipant> |
getParticipantByHealthCode(String healthCode,
Boolean consents)
Get a study participant (user) record using the health code of the account
|
retrofit2.Call<StudyParticipant> |
getParticipantById(String userId,
Boolean consents)
Get a study participant (user) record
This endpoint can be called by researchers (all authenticated users can retrieve their own StudyParticipant record by using the `getUsersParticipantRecord` method, which should be used by administrative accounts as well, such as developers).
|
retrofit2.Call<ForwardCursorScheduledActivityList> |
getParticipantCompoundActivityHistory(String userId,
String taskId,
DateTime scheduledOnStart,
DateTime scheduledOnEnd,
String offsetKey,
Integer pageSize)
Deprecated.
|
retrofit2.Call<NotificationRegistrationList> |
getParticipantPushNotificationRegistrations(String userId)
Get a study participant's push notification registrations
Get all of a study participant's registrations for push notifications.
|
retrofit2.Call<RequestInfo> |
getParticipantRequestInfo(String userId)
Get information about the last request made by this participant
Retrieves information about the user agent headers and participant settings that were in effect the last time this participant contacted the Bridge server.
|
retrofit2.Call<AccountSummaryList> |
getParticipants(Integer offsetBy,
Integer pageSize,
String emailFilter,
String phoneFilter,
DateTime startTime,
DateTime endTime)
Get a paged list of study participants (users)
|
retrofit2.Call<ParticipantSchedule> |
getParticipantSchedule(String studyId,
String userId)
Get the caller’s scheduled activities in this study.
|
retrofit2.Call<ForwardCursorScheduledActivityList> |
getParticipantSurveyHistory(String userId,
String surveyGuid,
DateTime scheduledOnStart,
DateTime scheduledOnEnd,
String offsetKey,
Integer pageSize)
Deprecated.
|
retrofit2.Call<ForwardCursorScheduledActivityList> |
getParticipantTaskHistory(String userId,
String taskId,
DateTime scheduledOnStart,
DateTime scheduledOnEnd,
String offsetKey,
Integer pageSize)
Deprecated.
|
retrofit2.Call<UploadList> |
getParticipantUploads(String userId,
DateTime startTime,
DateTime endTime,
Integer pageSize,
String offsetKey)
Get a study participant's upload history
Retrieve information about the uploads from a user.
|
retrofit2.Call<SchedulePlanList> |
getSchedulePlans(Boolean includeDeleted)
Deprecated.
|
retrofit2.Call<OrganizationList> |
getSponsors(String studyId,
Integer offsetBy,
Integer pageSize)
Get the sponsors of this study.
|
retrofit2.Call<StudyList> |
getStudies(Integer offsetBy,
Integer pageSize,
Boolean includeDeleted)
Get a list of the studies in this app
|
retrofit2.Call<Study> |
getStudy(String studyId)
Get a study
Get a study for this app.
|
retrofit2.Call<StudyAdherenceReport> |
getStudyParticipantAdherenceReport(String studyId,
String userId)
Get a detailed report on a participant’s full schedule of activities.
|
retrofit2.Call<StudyParticipant> |
getStudyParticipantById(String studyId,
String userId,
Boolean consents)
Get a study participant.
|
retrofit2.Call<EnrollmentDetailList> |
getStudyParticipantEnrollments(String studyId,
String userId)
Get enrollment records for this user.
|
retrofit2.Call<EventStreamAdherenceReport> |
getStudyParticipantEventStreamAdherenceReport(String studyId,
String userId,
DateTime datetime,
Boolean activeOnly)
Get a detailed report on a participant’s adherence to the entire study protocol’s schedule.
|
retrofit2.Call<NotificationRegistrationList> |
getStudyParticipantNotificationRegistrations(String studyId,
String userId)
Get a study participant’s push notification registrations
Get all of a study participant’s registrations for push notifications.
|
retrofit2.Call<RequestInfo> |
getStudyParticipantRequestInfo(String studyId,
String userId)
Get information about the last request made by this participant
|
retrofit2.Call<AccountSummaryList> |
getStudyParticipants(String studyId,
AccountSummarySearch accountSummarySearch)
Search for account summaries of study participants.
|
retrofit2.Call<StudyActivityEventPagedList> |
getStudyParticipantStudyActivityEventHistory(String studyId,
String userId,
String eventId,
Integer offsetBy,
Integer pageSize)
Get the history of past timestamps for this event (for the caller).
|
retrofit2.Call<StudyActivityEventList> |
getStudyParticipantStudyActivityEvents(String studyId,
String userId)
Get activity events for the participants
|
retrofit2.Call<Timeline> |
getStudyParticipantTimeline(String studyId,
String userId)
Get the timeline that is being assigned to the specific study participant.
|
retrofit2.Call<UploadList> |
getStudyParticipantUploads(String studyId,
String userId,
DateTime startTime,
DateTime endTime,
Integer pageSize,
String offsetKey)
Get a study participant’s upload history
Retrieve information about the uploads from a user.
|
retrofit2.Call<ReportIndex> |
getStudyReportIndex(String identifier)
Get a report index
Get the index (or metadata) for a set of report records.
|
retrofit2.Call<Subpopulation> |
getSubpopulation(String subpopulationGuid)
Get a subpopulation
|
retrofit2.Call<UploadValidationStatus> |
getUploadStatus(String uploadId)
Get status of a single upload attempt
Caller must either be a participant getting a status of one of the participant's own uploads, or a reearcher.
|
retrofit2.Call<App> |
getUsersApp()
Get an app
Get the app of the currently signed in user account.
|
retrofit2.Call<ReportDataList> |
getUsersParticipantReportRecords(String userId,
String identifier,
LocalDate startDate,
LocalDate endDate)
Get participant report records
The report can be accessed if the participant is requesting their own report, or the caller is a researcher, worker, or admin, or the caller is a study coordinator for a study that includes the participant.
|
retrofit2.Call<ForwardCursorReportDataList> |
getUsersParticipantReportRecordsV4(String userId,
String identifier,
DateTime startTime,
DateTime endTime,
String offsetKey,
Integer pageSize)
Get participant report records
The report can be accessed if the participant is requesting their own report, or the caller is a researcher, worker, or admin, or the caller is a study coordinator for a study that includes the participant.
|
retrofit2.Call<WeeklyAdherenceReport> |
getWeeklyAdherenceReport(String studyId,
String userId)
Get a detailed report on a participant’s current week of scheduled activities.
|
retrofit2.Call<WeeklyAdherenceReportList> |
getWeeklyAdherenceReports(String studyId,
AdherenceReportSearch adherenceReportSearch)
Get the adherence for all study participants in their current week of the study.
|
retrofit2.Call<Message> |
requestParticipantRoster(ParticipantRosterRequest participantRosterRequest)
Request a roster of participants within an app, and optionally within a study if a studyId is provided.
|
retrofit2.Call<Message> |
resendParticipantConsentAgreement(String userId,
String subpopulationGuid)
Re-send the consent agreement for this subpopulation
When called, re-sends a signed consent agreement document to the participant's email address.
|
retrofit2.Call<Message> |
resendStudyParticipantConsentAgreement(String studyId,
String userId,
String guid)
Re-send the consent agreement for this study
When called, re-sends a signed consent agreement document to the participant’s email address.
|
retrofit2.Call<DemographicUserResponse> |
saveDemographicUser(String studyId,
String userId,
DemographicUser demographicUser)
Save/overwrite all demographics for a user
Save/overwrite all demographics for a user (study-level, posted on the user's behalf by researcher, study coordinator)
|
retrofit2.Call<DemographicUserResponse> |
saveDemographicUserAssessment(String studyId,
String userId,
DemographicUserAssessment demographicUserAssessment)
Save/overwrite all demographics for a user
Save/overwrite all demographics for a user (study-level, posted on the user's behalf by researcher, study coordinator), uses the assessment JSON model
|
retrofit2.Call<AccountSummaryList> |
searchAccountSummaries(AccountSummarySearch accountSummarySearch)
Search for account summaries (participants)
For developers, this API only returns test accounts (accounts marked with the “test_user” data group).
|
retrofit2.Call<AdherenceRecordList> |
searchForStudyParticipantAdherenceRecords(String studyId,
String userId,
AdherenceRecordsSearch adherenceRecordsSearch)
Search for adherence records.
|
retrofit2.Call<Message> |
sendInstallLinkMessage(String userId)
Send a message (SMS or email) to a participant explaining how to download and install the app
When called, sends either an SMS message or an email message (depending on whether the account has a verified email address or phone number.
|
retrofit2.Call<Message> |
sendNotificationToParticipant(String userId,
NotificationMessage notificationMessage)
Send a push notification to a single participant
Send a push notification to an individual participant (assuming they have registered for push notifications).
|
retrofit2.Call<Message> |
sendParticipantEmailVerification(String userId)
Resend an email verification email to this user
When called, resends the email to the user's email account, which contains a link they must click on to verify they control that email address.
|
retrofit2.Call<Message> |
sendParticipantPhoneVerification(String userId)
Resend a phone verification to this user
When called, resends the SMS message to the user's email account, which contains a code they must enter into your application to call and verify this phone number.
|
retrofit2.Call<Message> |
sendParticipantResetPassword(String userId)
Trigger a request to reset password for this user
When called, a reset password message will be sent to either the email address or the phone number for this account (preferencing the email address).
|
retrofit2.Call<Message> |
sendStudyParticipantEmailVerification(String studyId,
String userId)
Resend an email verification email to this user
When called, resends the email to the user's email account, which contains a link they must click on to verify they control that email address.
|
retrofit2.Call<Message> |
sendStudyParticipantNotification(String studyId,
String userId,
NotificationMessage notificationMessage)
Send a push notification to a single participant
Send a push notification to an individual participant (assuming they have registered for push notifications).
|
retrofit2.Call<Message> |
sendStudyParticipantPhoneVerification(String studyId,
String userId)
Resend a phone verification to this user
When called, resends the SMS message to the user’s email account, which contains a code they must enter into your application to call and verify this phone number.
|
retrofit2.Call<Message> |
sendStudyParticipantResetPassword(String studyId,
String userId)
Trigger a request to reset password for this user
When called, a reset password message will be sent to either the email address or the phone number for this account (with a preference for the email address).
|
retrofit2.Call<Message> |
signOutParticipant(String userId,
Boolean deleteReauthToken)
Sign the user out and delete their server session
This endpoint can be called by researchers, and by other administrators for their own account.
|
retrofit2.Call<Message> |
signOutStudyParticipant(String studyId,
String userId,
Boolean deleteReauthToken)
Sign the participant out and delete their server session
|
retrofit2.Call<Study> |
transitionStudyToAnalysis(String studyId)
Transition a study’s phase to “analysis.” This can only be done with a study that is currently “in flight.”
|
retrofit2.Call<Study> |
transitionStudyToCompleted(String studyId)
Transition a study’s phase to “completed.” This can only be done with a study that is currently in the “analysis” phase.
|
retrofit2.Call<Study> |
transitionStudyToDesign(String studyId)
Transition a study’s phase to “design.” This can only be done with a study that is currently in the “legacy” phase.
|
retrofit2.Call<Study> |
transitionStudyToInFlight(String studyId)
Transition a study’s phase to “in flight.” This can only be done with a study that is currently in the “recruitment” phase.
|
retrofit2.Call<Study> |
transitionStudyToRecruitment(String studyId)
Transition a study’s phase to “recruitment.” This can only be done with a study that is currently in the “design” phase.
|
retrofit2.Call<Study> |
transitionStudyToWithdrawn(String studyId)
Transition a study’s phase to “withdrawn.” This can be done with a study that is currently in “design,” “recruitment,” “in flight,” or “analysis” phases.
|
retrofit2.Call<Message> |
updateEnrollment(String studyId,
String userId,
Enrollment enrollment)
Update a participant's enrollment record for a study
Developers and Study Designers can only update test accounts.
|
retrofit2.Call<Message> |
updateParticipant(String userId,
StudyParticipant studyParticipant)
Update an existing study participant (user) record
This endpoint can be called by researchers, and by other administrators for their own account account.
|
retrofit2.Call<Message> |
updateStudyParticipant(String studyId,
String userId,
StudyParticipant studyParticipant)
Update an existing study participant (user) record
|
retrofit2.Call<Message> |
updateStudyParticipantAdherenceRecords(String studyId,
String userId,
AdherenceRecordUpdates adherenceRecordUpdates)
Update one or more adherence records for a participant
|
retrofit2.Call<VersionHolder> |
updateUsersApp(App app)
Update an app
Update the app of the currently signed in developer account.
|
retrofit2.Call<Enrollment> |
withdrawParticipant(String studyId,
String userId,
String withdrawalNote)
Withdraw a participant from the study
|
retrofit2.Call<Message> |
withdrawParticipantFromApp(String userId,
Withdrawal withdrawal)
Withdraw the participant from all studies in this app
Withdraw the user entirely from all studies in this app.
|
retrofit2.Call<Message> |
withdrawParticipantFromSubpopulation(String userId,
String subpopulationGuid,
Withdrawal withdrawal)
Withdraw the participant from the specified subpopulation
This endpoint will withdraw the user from consent to participate in one subpopulation of the app.
|
@Deprecated @Headers(value="Content-Type:application/json") @POST(value="v3/participants/{userId}/activityevents") retrofit2.Call<Message> createActivityEventForParticipant(@Path(value="userId") String userId, @Body CustomActivityEventRequest customActivityEventRequest)
userId
- (required)customActivityEventRequest
- (required)@Headers(value="Content-Type:application/json") @POST(value="v3/healthdatadocumentation") retrofit2.Call<HealthDataDocumentation> createOrUpdateHealthDataDocumentation(@Body HealthDataDocumentation healthDataDocumentation)
healthDataDocumentation
- Health data documentation submitted by the user (required)@Headers(value="Content-Type:application/json") @POST(value="v3/participants") retrofit2.Call<IdentifierHolder> createParticipant(@Body SignUp signUp)
signUp
- Sign up (required)@Headers(value="Content-Type:application/json") @POST(value="v5/studies/{studyId}/participants") retrofit2.Call<IdentifierHolder> createStudyParticipant(@Path(value="studyId") String studyId, @Body SignUp signUp)
studyId
- Study identifier (required)signUp
- Sign up (required)@Headers(value="Content-Type:application/json") @POST(value="v5/studies/{studyId}/participants/{userId}/activityevents") retrofit2.Call<Message> createStudyParticipantStudyActivityEvent(@Path(value="studyId") String studyId, @Path(value="userId") String userId, @Body StudyActivityEventRequest customActivityEventRequest, @Query(value="showError") Boolean showError, @Query(value="updateBursts") Boolean updateBursts)
studyId
- Study identifier (required)userId
- User ID (required)customActivityEventRequest
- (required)showError
- Return a 400 status if the submission cannot be persisted (optional, default to false)updateBursts
- If this event is an originating event for a study burst, update the study burst events (while following their update type rules) (optional, default to true)@Headers(value="Content-Type:application/json") @DELETE(value="v5/studies/{studyId}/participants/{userId}/adherence/{instanceGuid}/{eventTimestamp}/{startedOn}") retrofit2.Call<Message> deleteAdherenceRecord(@Path(value="studyId") String studyId, @Path(value="userId") String userId, @Path(value="instanceGuid") String instanceGuid, @Path(value="eventTimestamp") DateTime eventTimestamp, @Path(value="startedOn") DateTime startedOn)
studyId
- Study identifier (required)userId
- User ID (required)instanceGuid
- Instance GUID of the adherence record (required)eventTimestamp
- Event timestamp (ISO 8601) of the adherence record (required)startedOn
- Starting timestamp (ISO 8601) of the adherence record (required)@Headers(value="Content-Type:application/json") @DELETE(value="v5/studies/{studyId}/participants/{userId}/demographics/{demographicId}") retrofit2.Call<Message> deleteDemographic(@Path(value="studyId") String studyId, @Path(value="userId") String userId, @Path(value="demographicId") String demographicId)
studyId
- Study identifier (required)userId
- User ID (required)demographicId
- ID of a particular demographic for a specific category associated with a specific user (required)@Headers(value="Content-Type:application/json") @DELETE(value="v5/studies/{studyId}/participants/{userId}/demographics") retrofit2.Call<Message> deleteDemographicUser(@Path(value="studyId") String studyId, @Path(value="userId") String userId)
studyId
- Study identifier (required)userId
- User ID (required)@Headers(value="Content-Type:application/json") @DELETE(value="v3/participants/{userId}") retrofit2.Call<Message> deleteParticipant(@Path(value="userId") String userId)
userId
- User ID (required)@Deprecated @Headers(value="Content-Type:application/json") @DELETE(value="v3/participants/{userId}/activities") retrofit2.Call<Message> deleteParticipantActivities(@Path(value="userId") String userId)
userId
- User ID (required)@Headers(value="Content-Type:application/json") @DELETE(value="v5/studies/{studyId}/participants/{userId}") retrofit2.Call<Message> deleteStudyParticipant(@Path(value="studyId") String studyId, @Path(value="userId") String userId)
studyId
- Study identifier (required)userId
- User ID (required)@Headers(value="Content-Type:application/json") @DELETE(value="v5/studies/{studyId}/participants/{userId}/activityevents/{eventId}") retrofit2.Call<Message> deleteStudyParticipantStudyActivityEvent(@Path(value="studyId") String studyId, @Path(value="userId") String userId, @Path(value="eventId") String eventId, @Query(value="showError") Boolean showError)
studyId
- Study identifier (required)userId
- User ID (required)eventId
- An activity event key (required)showError
- Return a 400 status if the submission cannot be persisted (optional, default to false)@Headers(value="Content-Type:application/json") @POST(value="v5/studies/{studyId}/enrollments") retrofit2.Call<Enrollment> enrollParticipant(@Path(value="studyId") String studyId, @Body Enrollment enrollment)
studyId
- Study identifier (required)enrollment
- Enrollment information for this user (required)@Deprecated @Headers(value="Content-Type:application/json") @POST(value="v3/externalids/{externalId}/password") retrofit2.Call<GeneratedPassword> generatePassword(@Path(value="externalId") String externalId, @Query(value="createAccount") Boolean createAccount)
externalId
- User's external ID (required)createAccount
- If account has not been created for this external ID, create it (optional, default to true)@Deprecated @Headers(value="Content-Type:application/json") @GET(value="v3/participants/{userId}/activityevents") retrofit2.Call<ActivityEventList> getActivityEventsForParticipant(@Path(value="userId") String userId)
userId
- (required)@Headers(value="Content-Type:application/json") @GET(value="v5/studies/{studyId}/adherence/stats") retrofit2.Call<AdherenceStatistics> getAdherenceStatistics(@Path(value="studyId") String studyId, @Query(value="adherenceThreshold") Integer adherenceThreshold)
studyId
- Study identifier (required)adherenceThreshold
- The percentage cutoff to use to determine totals of compliant and noncompliant participants. (optional)@Headers(value="Content-Type:application/json") @GET(value="v3/healthdatadocumentation") retrofit2.Call<HealthDataDocumentationList> getAllHealthDataDocumentationForParentId(@Query(value="parentId") String parentId, @Query(value="offsetKey") String offsetKey, @Query(value="pageSize") Integer pageSize)
parentId
- The id used in place of appId, and in the future, studyId. (optional)offsetKey
- next page start key for pagination (optional)pageSize
- maximum number of records in each returned page (optional, default to 50)@Headers(value="Content-Type:application/json") @GET(value="v5/studies/{studyId}/participants/{userId}/demographics") retrofit2.Call<DemographicUserResponse> getDemographicUser(@Path(value="studyId") String studyId, @Path(value="userId") String userId)
studyId
- Study identifier (required)userId
- User ID (required)@Headers(value="Content-Type:application/json") @GET(value="v5/studies/{studyId}/participants/demographics") retrofit2.Call<DemographicUserResponseList> getDemographicUsers(@Path(value="studyId") String studyId, @Query(value="offsetBy") Integer offsetBy, @Query(value="pageSize") Integer pageSize)
studyId
- Study identifier (required)offsetBy
- next page start offset for pagination (optional, default to 0)pageSize
- maximum number of records in each returned page (optional, default to 50)@Headers(value="Content-Type:application/json") @GET(value="v5/studies/{studyId}/participants/demographics/validation/{categoryName}") retrofit2.Call<DemographicValuesValidationConfig> getDemographicsValidationConfig(@Path(value="studyId") String studyId, @Path(value="categoryName") String categoryName)
studyId
- Study identifier (required)categoryName
- Name of a demographics category. (required)@Headers(value="Content-Type:application/json") @GET(value="v5/studies/{studyId}/enrollments") retrofit2.Call<EnrollmentDetailList> getEnrollments(@Path(value="studyId") String studyId, @Query(value="enrollmentFilter") String enrollmentFilter, @Query(value="includeTesters") Boolean includeTesters, @Query(value="offsetBy") Integer offsetBy, @Query(value="pageSize") Integer pageSize)
studyId
- Study identifier (required)enrollmentFilter
- Filter enrollees (optional)includeTesters
- Include accounts with 'test_user' data group (optional, default to false)offsetBy
- next page start offset for pagination (optional, default to 0)pageSize
- maximum number of records in each returned page (optional, default to 50)@Headers(value="Content-Type:application/json") @GET(value="v3/participants/{userId}/enrollments") retrofit2.Call<EnrollmentDetailList> getEnrollmentsForUser(@Path(value="userId") String userId)
userId
- User ID (required)@Headers(value="Content-Type:application/json") @GET(value="v5/studies/{studyId}/externalids") retrofit2.Call<ExternalIdentifierList> getExternalIdsForStudy(@Path(value="studyId") String studyId, @Query(value="offsetBy") Integer offsetBy, @Query(value="pageSize") Integer pageSize, @Query(value="idFilter") String idFilter)
studyId
- Study identifier (required)offsetBy
- next page start offset for pagination (optional, default to 0)pageSize
- maximum number of records in each returned page (optional, default to 50)idFilter
- (optional)@Headers(value="Content-Type:application/json") @GET(value="v3/healthdatadocumentation/{identifier}") retrofit2.Call<HealthDataDocumentation> getHealthDataDocumentationForId(@Path(value="identifier") String identifier)
identifier
- identifier (required)@Deprecated @Headers(value="Content-Type:application/json") @GET(value="v3/surveys") retrofit2.Call<SurveyList> getMostRecentSurveys(@Query(value="includeDeleted") Boolean includeDeleted)
includeDeleted
- Should deleted items be returned in results? (optional, default to false)@Deprecated @Headers(value="Content-Type:application/json") @GET(value="v3/uploadschemas") retrofit2.Call<UploadSchemaList> getMostRecentUploadSchemas(@Query(value="includeDeleted") Boolean includeDeleted)
includeDeleted
- Should deleted upload schemas be returned in results? (optional, default to false)@Deprecated @Headers(value="Content-Type:application/json") @GET(value="v3/participants/{userId}/activities/{activityGuid}") retrofit2.Call<ForwardCursorScheduledActivityList> getParticipantActivityHistory(@Path(value="userId") String userId, @Path(value="activityGuid") String activityGuid, @Query(value="scheduledOnStart") DateTime scheduledOnStart, @Query(value="scheduledOnEnd") DateTime scheduledOnEnd, @Query(value="offsetKey") String offsetKey, @Query(value="pageSize") Integer pageSize)
userId
- User ID (required)activityGuid
- Activity GUID (required)scheduledOnStart
- Activities returned are at or after the timestamp. If scheduledOnStart is provided, scheduledOnEnd must be provided, and vice versa. Default range is 4 days in the future to 10 days in the past. (optional)scheduledOnEnd
- Activities returned are at or before the timestamp. If scheduledOnEnd is provided, scheduledOnStart must be provided, and vice versa. Default range is 4 days in the future to 10 days in the past. (optional)offsetKey
- next page start key for pagination (optional)pageSize
- maximum number of records in each returned page (optional, default to 50)@Headers(value="Content-Type:application/json") @GET(value="v3/participants/externalId:{externalId}") retrofit2.Call<StudyParticipant> getParticipantByExternalId(@Path(value="externalId") String externalId, @Query(value="consents") Boolean consents)
externalId
- User's external ID (required)consents
- Should consent histories be included with this participant record? (optional)@Headers(value="Content-Type:application/json") @GET(value="v3/participants/healthCode:{healthCode}") retrofit2.Call<StudyParticipant> getParticipantByHealthCode(@Path(value="healthCode") String healthCode, @Query(value="consents") Boolean consents)
healthCode
- User health code (required)consents
- Should consent histories be included with this participant record? (optional)@Headers(value="Content-Type:application/json") @GET(value="v3/participants/{userId}") retrofit2.Call<StudyParticipant> getParticipantById(@Path(value="userId") String userId, @Query(value="consents") Boolean consents)
userId
- User ID (required)consents
- Should consent histories be included with this participant record? (optional)@Deprecated @Headers(value="Content-Type:application/json") @GET(value="v3/participants/{userId}/activities/compoundactivities/{taskId}") retrofit2.Call<ForwardCursorScheduledActivityList> getParticipantCompoundActivityHistory(@Path(value="userId") String userId, @Path(value="taskId") String taskId, @Query(value="scheduledOnStart") DateTime scheduledOnStart, @Query(value="scheduledOnEnd") DateTime scheduledOnEnd, @Query(value="offsetKey") String offsetKey, @Query(value="pageSize") Integer pageSize)
userId
- User ID (required)taskId
- Task ID (required)scheduledOnStart
- Activities returned are at or after the timestamp. If scheduledOnStart is provided, scheduledOnEnd must be provided, and vice versa. Default range is 4 days in the future to 10 days in the past. (optional)scheduledOnEnd
- Activities returned are at or before the timestamp. If scheduledOnEnd is provided, scheduledOnStart must be provided, and vice versa. Default range is 4 days in the future to 10 days in the past. (optional)offsetKey
- next page start key for pagination (optional)pageSize
- maximum number of records in each returned page (optional, default to 50)@Headers(value="Content-Type:application/json") @GET(value="v3/participants/{userId}/notifications") retrofit2.Call<NotificationRegistrationList> getParticipantPushNotificationRegistrations(@Path(value="userId") String userId)
userId
- User ID (required)@Headers(value="Content-Type:application/json") @GET(value="v3/participants/{userId}/requestInfo") retrofit2.Call<RequestInfo> getParticipantRequestInfo(@Path(value="userId") String userId)
userId
- User ID (required)@Headers(value="Content-Type:application/json") @GET(value="v5/studies/{studyId}/participants/{userId}/schedule") retrofit2.Call<ParticipantSchedule> getParticipantSchedule(@Path(value="studyId") String studyId, @Path(value="userId") String userId)
studyId
- Study identifier (required)userId
- User ID (required)@Deprecated @Headers(value="Content-Type:application/json") @GET(value="v3/participants/{userId}/activities/surveys/{surveyGuid}") retrofit2.Call<ForwardCursorScheduledActivityList> getParticipantSurveyHistory(@Path(value="userId") String userId, @Path(value="surveyGuid") String surveyGuid, @Query(value="scheduledOnStart") DateTime scheduledOnStart, @Query(value="scheduledOnEnd") DateTime scheduledOnEnd, @Query(value="offsetKey") String offsetKey, @Query(value="pageSize") Integer pageSize)
userId
- User ID (required)surveyGuid
- Survey GUID (required)scheduledOnStart
- Activities returned are at or after the timestamp. If scheduledOnStart is provided, scheduledOnEnd must be provided, and vice versa. Default range is 4 days in the future to 10 days in the past. (optional)scheduledOnEnd
- Activities returned are at or before the timestamp. If scheduledOnEnd is provided, scheduledOnStart must be provided, and vice versa. Default range is 4 days in the future to 10 days in the past. (optional)offsetKey
- next page start key for pagination (optional)pageSize
- maximum number of records in each returned page (optional, default to 50)@Deprecated @Headers(value="Content-Type:application/json") @GET(value="v3/participants/{userId}/activities/tasks/{taskId}") retrofit2.Call<ForwardCursorScheduledActivityList> getParticipantTaskHistory(@Path(value="userId") String userId, @Path(value="taskId") String taskId, @Query(value="scheduledOnStart") DateTime scheduledOnStart, @Query(value="scheduledOnEnd") DateTime scheduledOnEnd, @Query(value="offsetKey") String offsetKey, @Query(value="pageSize") Integer pageSize)
userId
- User ID (required)taskId
- Task ID (required)scheduledOnStart
- Activities returned are at or after the timestamp. If scheduledOnStart is provided, scheduledOnEnd must be provided, and vice versa. Default range is 4 days in the future to 10 days in the past. (optional)scheduledOnEnd
- Activities returned are at or before the timestamp. If scheduledOnEnd is provided, scheduledOnStart must be provided, and vice versa. Default range is 4 days in the future to 10 days in the past. (optional)offsetKey
- next page start key for pagination (optional)pageSize
- maximum number of records in each returned page (optional, default to 50)@Headers(value="Content-Type:application/json") @GET(value="v3/participants/{userId}/uploads") retrofit2.Call<UploadList> getParticipantUploads(@Path(value="userId") String userId, @Query(value="startTime") DateTime startTime, @Query(value="endTime") DateTime endTime, @Query(value="pageSize") Integer pageSize, @Query(value="offsetKey") String offsetKey)
userId
- User ID (required)startTime
- (required)endTime
- (required)pageSize
- maximum number of records in each returned page (optional, default to 50)offsetKey
- next page start key for pagination (optional)@Headers(value="Content-Type:application/json") @GET(value="v3/participants") retrofit2.Call<AccountSummaryList> getParticipants(@Query(value="offsetBy") Integer offsetBy, @Query(value="pageSize") Integer pageSize, @Query(value="emailFilter") String emailFilter, @Query(value="phoneFilter") String phoneFilter, @Query(value="startTime") DateTime startTime, @Query(value="endTime") DateTime endTime)
offsetBy
- next page start offset for pagination (optional, default to 0)pageSize
- maximum number of records in each returned page (optional, default to 50)emailFilter
- A string (can be a substring of an email address) to filter returned records against. (optional)phoneFilter
- A string (can be a substring of a phone number) to filter returned records against. (optional)startTime
- The first day to include in reports that are returned (optional)endTime
- The last day to include in reports that are returned (optional)@Deprecated @Headers(value="Content-Type:application/json") @GET(value="v3/scheduleplans") retrofit2.Call<SchedulePlanList> getSchedulePlans(@Query(value="includeDeleted") Boolean includeDeleted)
includeDeleted
- Should deleted items be returned in results? (optional, default to false)@Headers(value="Content-Type:application/json") @GET(value="v5/studies/{studyId}/sponsors") retrofit2.Call<OrganizationList> getSponsors(@Path(value="studyId") String studyId, @Query(value="offsetBy") Integer offsetBy, @Query(value="pageSize") Integer pageSize)
studyId
- Study identifier (required)offsetBy
- next page start offset for pagination (optional, default to 0)pageSize
- maximum number of records in each returned page (optional, default to 50)@Headers(value="Content-Type:application/json") @GET(value="v5/studies") retrofit2.Call<StudyList> getStudies(@Query(value="offsetBy") Integer offsetBy, @Query(value="pageSize") Integer pageSize, @Query(value="includeDeleted") Boolean includeDeleted)
offsetBy
- next page start offset for pagination (optional, default to 0)pageSize
- maximum number of records in each returned page (optional, default to 50)includeDeleted
- Should deleted items be returned in results? (optional, default to false)@Headers(value="Content-Type:application/json") @GET(value="v5/studies/{studyId}") retrofit2.Call<Study> getStudy(@Path(value="studyId") String studyId)
studyId
- Study identifier (required)@Headers(value="Content-Type:application/json") @GET(value="v5/studies/{studyId}/participants/{userId}/adherence/study") retrofit2.Call<StudyAdherenceReport> getStudyParticipantAdherenceReport(@Path(value="studyId") String studyId, @Path(value="userId") String userId)
studyId
- Study identifier (required)userId
- User ID (required)@Headers(value="Content-Type:application/json") @GET(value="v5/studies/{studyId}/participants/{userId}") retrofit2.Call<StudyParticipant> getStudyParticipantById(@Path(value="studyId") String studyId, @Path(value="userId") String userId, @Query(value="consents") Boolean consents)
studyId
- Study identifier (required)userId
- User ID (required)consents
- Should consent histories be included with this participant record? (optional)@Headers(value="Content-Type:application/json") @GET(value="v5/studies/{studyId}/participants/{userId}/enrollments") retrofit2.Call<EnrollmentDetailList> getStudyParticipantEnrollments(@Path(value="studyId") String studyId, @Path(value="userId") String userId)
studyId
- Study identifier (required)userId
- User ID (required)@Headers(value="Content-Type:application/json") @GET(value="v5/studies/{studyId}/participants/{userId}/adherence/eventstream") retrofit2.Call<EventStreamAdherenceReport> getStudyParticipantEventStreamAdherenceReport(@Path(value="studyId") String studyId, @Path(value="userId") String userId, @Query(value="datetime") DateTime datetime, @Query(value="activeOnly") Boolean activeOnly)
studyId
- Study identifier (required)userId
- User ID (required)datetime
- The timestamp to use as “now” for the calculation of adherence. This timestamp will be adjusted to the participant’s `clientTimeZone` value if this value has been persisted for the participant. (optional, default to The date and time on the server at the time of the request)activeOnly
- Only return records that are currently actionable by the participant (optional, default to false)@Headers(value="Content-Type:application/json") @GET(value="v5/studies/{studyId}/participants/{userId}/notifications") retrofit2.Call<NotificationRegistrationList> getStudyParticipantNotificationRegistrations(@Path(value="studyId") String studyId, @Path(value="userId") String userId)
studyId
- Study identifier (required)userId
- User ID (required)@Headers(value="Content-Type:application/json") @GET(value="v5/studies/{studyId}/participants/{userId}/requestInfo") retrofit2.Call<RequestInfo> getStudyParticipantRequestInfo(@Path(value="studyId") String studyId, @Path(value="userId") String userId)
studyId
- Study identifier (required)userId
- User ID (required)@Headers(value="Content-Type:application/json") @GET(value="v5/studies/{studyId}/participants/{userId}/activityevents/{eventId}") retrofit2.Call<StudyActivityEventPagedList> getStudyParticipantStudyActivityEventHistory(@Path(value="studyId") String studyId, @Path(value="userId") String userId, @Path(value="eventId") String eventId, @Query(value="offsetBy") Integer offsetBy, @Query(value="pageSize") Integer pageSize)
studyId
- Study identifier (required)userId
- User ID (required)eventId
- An activity event key (required)offsetBy
- next page start offset for pagination (optional, default to 0)pageSize
- maximum number of records in each returned page (optional, default to 50)@Headers(value="Content-Type:application/json") @GET(value="v5/studies/{studyId}/participants/{userId}/activityevents") retrofit2.Call<StudyActivityEventList> getStudyParticipantStudyActivityEvents(@Path(value="studyId") String studyId, @Path(value="userId") String userId)
studyId
- Study identifier (required)userId
- User ID (required)@Headers(value="Content-Type:application/json") @GET(value="v5/studies/{studyId}/participants/{userId}/timeline") retrofit2.Call<Timeline> getStudyParticipantTimeline(@Path(value="studyId") String studyId, @Path(value="userId") String userId)
studyId
- Study identifier (required)userId
- User ID (required)@Headers(value="Content-Type:application/json") @GET(value="v5/studies/{studyId}/participants/{userId}/uploads") retrofit2.Call<UploadList> getStudyParticipantUploads(@Path(value="studyId") String studyId, @Path(value="userId") String userId, @Query(value="startTime") DateTime startTime, @Query(value="endTime") DateTime endTime, @Query(value="pageSize") Integer pageSize, @Query(value="offsetKey") String offsetKey)
studyId
- Study identifier (required)userId
- User ID (required)startTime
- (required)endTime
- (required)pageSize
- maximum number of records in each returned page (optional, default to 50)offsetKey
- next page start key for pagination (optional)@Headers(value="Content-Type:application/json") @POST(value="v5/studies/{studyId}/participants/search") retrofit2.Call<AccountSummaryList> getStudyParticipants(@Path(value="studyId") String studyId, @Body AccountSummarySearch accountSummarySearch)
studyId
- Study identifier (required)accountSummarySearch
- Account summary search parameters (required)@Headers(value="Content-Type:application/json") @GET(value="v3/reports/{identifier}/index") retrofit2.Call<ReportIndex> getStudyReportIndex(@Path(value="identifier") String identifier)
identifier
- identifier (required)@Headers(value="Content-Type:application/json") @GET(value="v3/subpopulations/{subpopulationGuid}") retrofit2.Call<Subpopulation> getSubpopulation(@Path(value="subpopulationGuid") String subpopulationGuid)
subpopulationGuid
- Subpopulation GUID (required)@Headers(value="Content-Type:application/json") @GET(value="v3/uploadstatuses/{uploadId}") retrofit2.Call<UploadValidationStatus> getUploadStatus(@Path(value="uploadId") String uploadId)
uploadId
- Upload ID (required)@Headers(value="Content-Type:application/json") @GET(value="v1/apps/self") retrofit2.Call<App> getUsersApp()
@Headers(value="Content-Type:application/json") @GET(value="v3/participants/{userId}/reports/{identifier}") retrofit2.Call<ReportDataList> getUsersParticipantReportRecords(@Path(value="userId") String userId, @Path(value="identifier") String identifier, @Query(value="startDate") LocalDate startDate, @Query(value="endDate") LocalDate endDate)
userId
- User ID (required)identifier
- identifier (required)startDate
- The first day to include in reports that are returned (required)endDate
- The last day to include in reports that are returned (required)@Headers(value="Content-Type:application/json") @GET(value="v4/participants/{userId}/reports/{identifier}") retrofit2.Call<ForwardCursorReportDataList> getUsersParticipantReportRecordsV4(@Path(value="userId") String userId, @Path(value="identifier") String identifier, @Query(value="startTime") DateTime startTime, @Query(value="endTime") DateTime endTime, @Query(value="offsetKey") String offsetKey, @Query(value="pageSize") Integer pageSize)
userId
- User ID (required)identifier
- identifier (required)startTime
- (required)endTime
- (required)offsetKey
- next page start key for pagination (optional)pageSize
- maximum number of records in each returned page (optional, default to 50)@Headers(value="Content-Type:application/json") @GET(value="v5/studies/{studyId}/participants/{userId}/adherence/weekly") retrofit2.Call<WeeklyAdherenceReport> getWeeklyAdherenceReport(@Path(value="studyId") String studyId, @Path(value="userId") String userId)
studyId
- Study identifier (required)userId
- User ID (required)@Headers(value="Content-Type:application/json") @POST(value="v5/studies/{studyId}/adherence/weekly") retrofit2.Call<WeeklyAdherenceReportList> getWeeklyAdherenceReports(@Path(value="studyId") String studyId, @Body AdherenceReportSearch adherenceReportSearch)
studyId
- Study identifier (required)adherenceReportSearch
- Search parameters for weekly adherence report (required)@Headers(value="Content-Type:application/json") @POST(value="v3/participants/emailRoster") retrofit2.Call<Message> requestParticipantRoster(@Body ParticipantRosterRequest participantRosterRequest)
participantRosterRequest
- (required)@Headers(value="Content-Type:application/json") @POST(value="v3/participants/{userId}/consents/{subpopulationGuid}/resendConsent") retrofit2.Call<Message> resendParticipantConsentAgreement(@Path(value="userId") String userId, @Path(value="subpopulationGuid") String subpopulationGuid)
userId
- User ID (required)subpopulationGuid
- Subpopulation GUID (required)@Headers(value="Content-Type:application/json") @POST(value="v5/studies/{studyId}/participants/{userId}/consents/{guid}/resendConsent") retrofit2.Call<Message> resendStudyParticipantConsentAgreement(@Path(value="studyId") String studyId, @Path(value="userId") String userId, @Path(value="guid") String guid)
studyId
- Study identifier (required)userId
- User ID (required)guid
- A guid (required)@Headers(value="Content-Type:application/json") @POST(value="v5/studies/{studyId}/participants/{userId}/demographics") retrofit2.Call<DemographicUserResponse> saveDemographicUser(@Path(value="studyId") String studyId, @Path(value="userId") String userId, @Body DemographicUser demographicUser)
studyId
- Study identifier (required)userId
- User ID (required)demographicUser
- (required)@Headers(value="Content-Type:application/json") @POST(value="v5/studies/{studyId}/participants/{userId}/demographics/assessment") retrofit2.Call<DemographicUserResponse> saveDemographicUserAssessment(@Path(value="studyId") String studyId, @Path(value="userId") String userId, @Body DemographicUserAssessment demographicUserAssessment)
studyId
- Study identifier (required)userId
- User ID (required)demographicUserAssessment
- (required)@Headers(value="Content-Type:application/json") @POST(value="v3/participants/search") retrofit2.Call<AccountSummaryList> searchAccountSummaries(@Body AccountSummarySearch accountSummarySearch)
accountSummarySearch
- Account summary search parameters (required)@Headers(value="Content-Type:application/json") @POST(value="v5/studies/{studyId}/participants/{userId}/adherence/search") retrofit2.Call<AdherenceRecordList> searchForStudyParticipantAdherenceRecords(@Path(value="studyId") String studyId, @Path(value="userId") String userId, @Body AdherenceRecordsSearch adherenceRecordsSearch)
studyId
- Study identifier (required)userId
- User ID (required)adherenceRecordsSearch
- The search criteria. (required)@Headers(value="Content-Type:application/json") @POST(value="v3/participants/{userId}/sendInstallLink") retrofit2.Call<Message> sendInstallLinkMessage(@Path(value="userId") String userId)
userId
- User ID (required)@Headers(value="Content-Type:application/json") @POST(value="v3/participants/{userId}/sendNotification") retrofit2.Call<Message> sendNotificationToParticipant(@Path(value="userId") String userId, @Body NotificationMessage notificationMessage)
userId
- User ID (required)notificationMessage
- (required)@Headers(value="Content-Type:application/json") @POST(value="v3/participants/{userId}/resendEmailVerification") retrofit2.Call<Message> sendParticipantEmailVerification(@Path(value="userId") String userId)
userId
- User ID (required)@Headers(value="Content-Type:application/json") @POST(value="v3/participants/{userId}/resendPhoneVerification") retrofit2.Call<Message> sendParticipantPhoneVerification(@Path(value="userId") String userId)
userId
- User ID (required)@Headers(value="Content-Type:application/json") @POST(value="v3/participants/{userId}/requestResetPassword") retrofit2.Call<Message> sendParticipantResetPassword(@Path(value="userId") String userId)
userId
- User ID (required)@Headers(value="Content-Type:application/json") @POST(value="v5/studies/{studyId}/participants/{userId}/resendEmailVerification") retrofit2.Call<Message> sendStudyParticipantEmailVerification(@Path(value="studyId") String studyId, @Path(value="userId") String userId)
studyId
- Study identifier (required)userId
- User ID (required)@Headers(value="Content-Type:application/json") @POST(value="v5/studies/{studyId}/participants/{userId}/sendNotification") retrofit2.Call<Message> sendStudyParticipantNotification(@Path(value="studyId") String studyId, @Path(value="userId") String userId, @Body NotificationMessage notificationMessage)
studyId
- Study identifier (required)userId
- User ID (required)notificationMessage
- (required)@Headers(value="Content-Type:application/json") @POST(value="v5/studies/{studyId}/participants/{userId}/resendPhoneVerification") retrofit2.Call<Message> sendStudyParticipantPhoneVerification(@Path(value="studyId") String studyId, @Path(value="userId") String userId)
studyId
- Study identifier (required)userId
- User ID (required)@Headers(value="Content-Type:application/json") @POST(value="v5/studies/{studyId}/participants/{userId}/requestResetPassword") retrofit2.Call<Message> sendStudyParticipantResetPassword(@Path(value="studyId") String studyId, @Path(value="userId") String userId)
studyId
- Study identifier (required)userId
- User ID (required)@Headers(value="Content-Type:application/json") @POST(value="v3/participants/{userId}/signOut") retrofit2.Call<Message> signOutParticipant(@Path(value="userId") String userId, @Query(value="deleteReauthToken") Boolean deleteReauthToken)
userId
- User ID (required)deleteReauthToken
- Should sign out also delete any extant reauthentication tokens? (optional, default to true)@Headers(value="Content-Type:application/json") @POST(value="v5/studies/{studyId}/participants/{userId}/signOut") retrofit2.Call<Message> signOutStudyParticipant(@Path(value="studyId") String studyId, @Path(value="userId") String userId, @Query(value="deleteReauthToken") Boolean deleteReauthToken)
studyId
- Study identifier (required)userId
- User ID (required)deleteReauthToken
- Should sign out also delete any extant reauthentication tokens? (optional, default to true)@Headers(value="Content-Type:application/json") @POST(value="v5/studies/{studyId}/analyze") retrofit2.Call<Study> transitionStudyToAnalysis(@Path(value="studyId") String studyId)
studyId
- Study identifier (required)@Headers(value="Content-Type:application/json") @POST(value="v5/studies/{studyId}/complete") retrofit2.Call<Study> transitionStudyToCompleted(@Path(value="studyId") String studyId)
studyId
- Study identifier (required)@Headers(value="Content-Type:application/json") @POST(value="v5/studies/{studyId}/design") retrofit2.Call<Study> transitionStudyToDesign(@Path(value="studyId") String studyId)
studyId
- Study identifier (required)@Headers(value="Content-Type:application/json") @POST(value="v5/studies/{studyId}/conduct") retrofit2.Call<Study> transitionStudyToInFlight(@Path(value="studyId") String studyId)
studyId
- Study identifier (required)@Headers(value="Content-Type:application/json") @POST(value="v5/studies/{studyId}/recruit") retrofit2.Call<Study> transitionStudyToRecruitment(@Path(value="studyId") String studyId)
studyId
- Study identifier (required)@Headers(value="Content-Type:application/json") @POST(value="v5/studies/{studyId}/withdraw") retrofit2.Call<Study> transitionStudyToWithdrawn(@Path(value="studyId") String studyId)
studyId
- Study identifier (required)@Headers(value="Content-Type:application/json") @POST(value="v5/studies/{studyId}/enrollments/{userId}") retrofit2.Call<Message> updateEnrollment(@Path(value="studyId") String studyId, @Path(value="userId") String userId, @Body Enrollment enrollment)
studyId
- Study identifier (required)userId
- User ID (required)enrollment
- Updated enrollment (required)@Headers(value="Content-Type:application/json") @POST(value="v3/participants/{userId}") retrofit2.Call<Message> updateParticipant(@Path(value="userId") String userId, @Body StudyParticipant studyParticipant)
userId
- User ID (required)studyParticipant
- Study participant (required)@Headers(value="Content-Type:application/json") @POST(value="v5/studies/{studyId}/participants/{userId}") retrofit2.Call<Message> updateStudyParticipant(@Path(value="studyId") String studyId, @Path(value="userId") String userId, @Body StudyParticipant studyParticipant)
studyId
- Study identifier (required)userId
- User ID (required)studyParticipant
- Study participant (required)@Headers(value="Content-Type:application/json") @POST(value="v5/studies/{studyId}/participants/{userId}/adherence") retrofit2.Call<Message> updateStudyParticipantAdherenceRecords(@Path(value="studyId") String studyId, @Path(value="userId") String userId, @Body AdherenceRecordUpdates adherenceRecordUpdates)
studyId
- Study identifier (required)userId
- User ID (required)adherenceRecordUpdates
- One ore more adherence records (required)@Headers(value="Content-Type:application/json") @POST(value="v1/apps/self") retrofit2.Call<VersionHolder> updateUsersApp(@Body App app)
app
- (required)@Headers(value="Content-Type:application/json") @DELETE(value="v5/studies/{studyId}/enrollments/{userId}") retrofit2.Call<Enrollment> withdrawParticipant(@Path(value="studyId") String studyId, @Path(value="userId") String userId, @Query(value="withdrawalNote") String withdrawalNote)
studyId
- Study identifier (required)userId
- User ID (required)withdrawalNote
- The reason given for a user’s withdrawal from a study. (optional)@Headers(value="Content-Type:application/json") @POST(value="v3/participants/{userId}/consents/withdraw") retrofit2.Call<Message> withdrawParticipantFromApp(@Path(value="userId") String userId, @Body Withdrawal withdrawal)
userId
- User ID (required)withdrawal
- (required)@Headers(value="Content-Type:application/json") @POST(value="v3/participants/{userId}/consents/{subpopulationGuid}/withdraw") retrofit2.Call<Message> withdrawParticipantFromSubpopulation(@Path(value="userId") String userId, @Path(value="subpopulationGuid") String subpopulationGuid, @Body Withdrawal withdrawal)
userId
- User ID (required)subpopulationGuid
- Subpopulation GUID (required)withdrawal
- (required)Copyright © 2023 Sage Bionetworks. All rights reserved.