public interface ForConsentedUsersApi
Modifier and Type | Method and Description |
---|---|
retrofit2.Call<Message> |
changeSharingScope(SharingScopeForm sharingScope)
Change the participant's sharing scope
|
retrofit2.Call<UploadValidationStatus> |
completeUploadSession(String uploadId,
Boolean synchronous,
Boolean redrive)
Notify Bridge an upload is complete
Notify Bridge an upload is complete.
|
retrofit2.Call<UserSessionInfo> |
createConsentSignature(String subpopulationGuid,
ConsentSignature consentSignature)
Consent to this subpopulation by submitting a signature
Agree to the terms of participant represented by this subpopulation, by submitting a signature to the Bridge server.
|
retrofit2.Call<Message> |
createCustomActivityEvent(CustomActivityEventRequest customActivityEventRequest)
Deprecated.
|
retrofit2.Call<GuidHolder> |
createNotificationRegistration(NotificationRegistration notificationRegistration)
Register a client to receive push notifications
Create a new registration.
|
retrofit2.Call<ParticipantFile> |
createParticipantFile(String fileId,
ParticipantFile participantFile)
Create a new participant file
|
retrofit2.Call<Message> |
createStudyActivityEvent(String studyId,
StudyActivityEventRequest studyActivityEventRequest,
Boolean showError,
Boolean updateBursts)
Create a new activity event for the caller in this study.
|
retrofit2.Call<Message> |
deleteCustomActivityEvent(String eventId)
Deprecated.
|
retrofit2.Call<Message> |
deleteDataByIdentifier(String identifier)
delete a participant data record
|
retrofit2.Call<Message> |
deleteNotificationRegistration(String guid)
Delete a push notification registration
Delete a registration record.
|
retrofit2.Call<Message> |
deleteParticipantFile(String fileId)
Delete a participant file
Delete a participant file
|
retrofit2.Call<Message> |
deleteStudyActivityEvent(String studyId,
String eventId,
Boolean showError)
Delete an activity event (for the caller) if it is mutable.
|
retrofit2.Call<ActivityEventList> |
getActivityEvents()
Deprecated.
|
retrofit2.Call<ForwardCursorScheduledActivityList> |
getActivityHistory(String activityGuid,
DateTime scheduledOnStart,
DateTime scheduledOnEnd,
String offsetKey,
Integer pageSize)
Deprecated.
|
retrofit2.Call<ForwardCursorStringList> |
getAllDataForSelf(String offsetKey,
Integer pageSize)
Get list of identifiers for participant data
|
retrofit2.Call<HealthDataRecordEx3List> |
getAllRecordsEx3ForSelf(DateTime createdOnStart,
DateTime createdOnEnd,
Integer pageSize,
String offsetKey)
Retrieves all records from the Exporter 3 implementation for the current user and time range - For developers to validate uploads from the app.
|
retrofit2.Call<ForwardCursorScheduledActivityList> |
getCompoundActivityHistory(String taskId,
DateTime scheduledOnStart,
DateTime scheduledOnEnd,
String offsetKey,
Integer pageSize)
Deprecated.
|
retrofit2.Call<AppConfig> |
getConfigForApp(String appId)
Get the config for the current version of the app making the request.
|
retrofit2.Call<ConsentSignature> |
getConsentSignature(String subpopulationGuid)
Get the participant's consent signature for the subpopulation
|
retrofit2.Call<ParticipantData> |
getDataByIdentifierForSelf(String identifier)
Get user's data based on the given identifier
Get the participant data record based on the given identifier.
|
retrofit2.Call<NotificationRegistration> |
getNotificationRegistration(String guid)
Get a push notification registration
Get a single push notification registration by its GUID.
|
retrofit2.Call<NotificationRegistrationList> |
getNotificationRegistrations()
Get all of a user's notification registrations
Return all the registrations for this user.
|
retrofit2.Call<okhttp3.ResponseBody> |
getParticipantFile(String fileId)
Get a participant file
|
retrofit2.Call<ParticipantFileList> |
getParticipantFiles(String offsetKey,
Integer pageSize)
Get a list of participant files from the user
|
retrofit2.Call<ReportIndex> |
getParticipantReportIndex(String identifier)
Get a single report index for participant reports
|
retrofit2.Call<ReportIndexList> |
getParticipantReportIndices()
Get list of report indices for participants
|
retrofit2.Call<ReportDataList> |
getParticipantReportRecords(String identifier,
LocalDate startDate,
LocalDate endDate)
Get a participant report
Get the records for a specific participant report.
|
retrofit2.Call<ForwardCursorReportDataList> |
getParticipantReportRecordsV4(String identifier,
DateTime startTime,
DateTime endTime,
Integer pageSize,
String offsetKey)
Get a participant report
Get the records for a specific participant report.
|
retrofit2.Call<ParticipantSchedule> |
getParticipantScheduleForSelf(String studyId,
String clientTimeZone)
Get the caller’s scheduled activities in this study.
|
retrofit2.Call<Survey> |
getPublishedSurveyVersion(String surveyGuid)
Deprecated.
|
retrofit2.Call<HealthDataRecordEx3> |
getRecordEx3ById(String recordId,
String download)
Retrieves the record for the given ID from the Exporter 3 implemention, provides a dowload link for the record if requested - For developers to validate uploads from the app.
|
retrofit2.Call<ScheduledActivityList> |
getScheduledActivities(String offset,
Integer daysAhead,
Integer minimumPerSchedule)
Deprecated.
|
retrofit2.Call<ScheduledActivityListV4> |
getScheduledActivitiesByDateRange(DateTime startTime,
DateTime endTime)
Deprecated.
|
retrofit2.Call<ScheduleList> |
getSchedulesV1()
Deprecated.
|
retrofit2.Call<Study> |
getStudy(String studyId)
Get a study
Get a study for this app.
|
retrofit2.Call<StudyActivityEventPagedList> |
getStudyActivityEventHistory(String studyId,
String eventId,
Integer offsetBy,
Integer pageSize)
Get the history of past timestamps for this event (for the caller).
|
retrofit2.Call<StudyActivityEventList> |
getStudyActivityEvents(String studyId)
Get the activity events for this study (for the caller).
|
retrofit2.Call<ReportIndexList> |
getStudyReportIndices()
Get list of report indices for studies
|
retrofit2.Call<ReportDataList> |
getStudyReportRecords(String identifier,
LocalDate startDate,
LocalDate endDate)
Get study report records
Any member of an organization sponsoring a study, or any app-scoped administrative user, can access a study report record.
|
retrofit2.Call<ForwardCursorReportDataList> |
getStudyReportRecordsV4(String identifier,
DateTime startTime,
DateTime endTime,
String offsetKey,
Integer pageSize)
Get study report records
Any member of an organization sponsoring a study, or any app-scoped administrative user, can access a study report.
|
retrofit2.Call<Survey> |
getSurvey(String surveyGuid,
DateTime createdOn)
Deprecated.
|
retrofit2.Call<ForwardCursorScheduledActivityList> |
getSurveyHistory(String surveyGuid,
DateTime scheduledOnStart,
DateTime scheduledOnEnd,
String offsetKey,
Integer pageSize)
Deprecated.
|
retrofit2.Call<ForwardCursorScheduledActivityList> |
getTaskHistory(String taskId,
DateTime scheduledOnStart,
DateTime scheduledOnEnd,
String offsetKey,
Integer pageSize)
Deprecated.
|
retrofit2.Call<Timeline> |
getTimelineForSelf(String studyId,
DateTime ifModifiedSince)
Get the caller’s timeline of scheduled assessments in this study.
|
retrofit2.Call<SubscriptionStatusList> |
getTopicSubscriptions(String guid)
Get subscription status for all topics using a device registration
For every topic in the app, get a status object describing whether or not the caller is subscribed to that topic.
|
retrofit2.Call<UploadViewEx3> |
getUploadEx3(String uploadId,
Boolean fetchTimeline)
API to get an upload for Exporter 3.0, optionally with timeline metadata.
|
retrofit2.Call<UploadViewEx3> |
getUploadEx3ForStudy(String studyId,
String uploadId,
Boolean fetchTimeline,
Boolean fetchAdherence)
API to get an upload in a study for Exporter 3.0, optionally with timeline metadata and adherence records.
|
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<StudyParticipant> |
getUsersParticipantRecord(Boolean consents)
Get user's participant record
Get the current user's participant record.
|
retrofit2.Call<EventStreamAdherenceReport> |
getUsersStudyParticipantEventStreamAdherenceReport(String studyId,
DateTime datetime,
Boolean activeOnly)
Get a detailed report on the caller’s adherence to the entire study protocol’s schedule.
|
retrofit2.Call<ForwardCursorReportDataList> |
getUsersStudyParticipantReport(String studyId,
String identifier,
DateTime startTime,
DateTime endTime,
String offsetKey,
Integer pageSize)
Get a series of report records for a specific date and time range for the caller (this API uses dates and times and not just dates; use a standard time of day portion like “T00:00:00.000Z” if a time portion is unnecessary, being sure to create and retrieve records with the same set time).
|
retrofit2.Call<OAuthAccessToken> |
requestOAuthAccessToken(String vendorId,
OAuthAuthorizationToken oauthAuthorizationToken)
Request an access token from a given OAuth 2.0 provider.
|
retrofit2.Call<UploadSession> |
requestUploadSession(UploadRequest uploadRequest)
Request an upload session
|
retrofit2.Call<Message> |
resendConsentAgreement(String subpopulationGuid)
Email or SMS the consent agreement to the participant
Although this method is to \"resend\" a consent agreement, if you have the automatic delivery of a signed consent disabled, this may be the method through which a user requests the consent for the first time, should they wish to retrieve a signed copy.
|
retrofit2.Call<Message> |
saveDataForSelf(String identifier,
ParticipantData participantData)
Save a participant data record
Save a participant record.
|
retrofit2.Call<DemographicUserResponse> |
saveDemographicUserSelf(String studyId,
DemographicUser demographicUser)
Save/overwrite all demographics for a user
Save/overwrite all demographics for a user (study-level, posted by the user)
|
retrofit2.Call<DemographicUserResponse> |
saveDemographicUserSelfAppLevel(DemographicUser demographicUser)
Save/overwrite all demographics for a user
Save/overwrite all demographics for a user (app-level, posted by the user)
|
retrofit2.Call<DemographicUserResponse> |
saveDemographicUserSelfAssessment(String studyId,
DemographicUserAssessment demographicUser)
Save/overwrite all demographics for a user
Save/overwrite all demographics for a user (study-level, posted by the user), uses the assessment JSON model
|
retrofit2.Call<DemographicUserResponse> |
saveDemographicUserSelfAssessmentAppLevel(DemographicUserAssessment demographicUserAssessment)
Save/overwrite all demographics for a user
Save/overwrite all demographics for a user (app-level, posted by the user), uses the assessment JSON model
|
retrofit2.Call<Message> |
saveParticipantReportRecordsV4(String identifier,
ReportData reportData)
Save a participant report record
Save a report record.
|
retrofit2.Call<Message> |
saveUsersStudyParticipantReportRecord(String studyId,
String identifier,
ReportData reportData)
Add a participant report for a single date and time for the caller (this API uses dates and times and not just dates; use a standard time of day portion like “T00:00:00.000Z” if a time portion is unnecessary, being sure to create and retrieve records with the same set time).
|
retrofit2.Call<AdherenceRecordList> |
searchForAdherenceRecords(String studyId,
AdherenceRecordsSearch adherenceRecordsSearch)
Search for adherence records.
|
retrofit2.Call<Message> |
sendDataToUser(DateRange dateRange)
Make user's data available for download via email or an SMS message
Asynchronously request the uploaded data for this user, in a given time range (inclusive).
|
retrofit2.Call<HealthDataRecord> |
submitHealthData(HealthDataSubmission healthDataSubmission)
Upload health data
Synchronous health data API.
|
retrofit2.Call<SubscriptionStatusList> |
subscribeToTopics(String guid,
SubscriptionRequest subscriptionRequest)
Subscribe to a set of the topics using a device registration
Provide a registration GUID and a set of topic GUIDs.
|
retrofit2.Call<Message> |
updateAdherenceRecords(String studyId,
AdherenceRecordUpdates adherenceRecordUpdates)
Create or update one or more adherence records.
|
retrofit2.Call<GuidHolder> |
updateNotificationRegistration(String guid,
NotificationRegistration notificationRegistration)
Update a push notification registration
Update an existing device registration with a new token that has been assigned by the client operating system.
|
retrofit2.Call<Message> |
updateScheduledActivities(List<ScheduledActivity> scheduledActivity)
Deprecated.
|
retrofit2.Call<UserSessionInfo> |
updateUsersIdentifiers(IdentifierUpdate updateIdentifier)
Allows the caller to add additional identifier fields to an account (email, phone).
|
retrofit2.Call<UserSessionInfo> |
updateUsersParticipantRecord(StudyParticipant studyParticipant)
Update user's participant record
Update the current user's participant record.
|
retrofit2.Call<UserSessionInfo> |
withdrawConsentFromSubpopulation(String subpopulationGuid,
Withdrawal withdrawal)
Withdraw participant from this subpopulation consent group
This withdraws the user from only one subpopulation.
|
retrofit2.Call<Message> |
withdrawFromApp(Withdrawal withdrawal)
Withdraw user from all studies in app
Withdraw the user entirely from all studies in this app.
|
@Headers(value="Content-Type:application/json") @POST(value="v3/users/self/dataSharing") retrofit2.Call<Message> changeSharingScope(@Body SharingScopeForm sharingScope)
sharingScope
- Sharing scope (required)@Headers(value="Content-Type:application/json") @POST(value="v3/uploads/{uploadId}/complete") retrofit2.Call<UploadValidationStatus> completeUploadSession(@Path(value="uploadId") String uploadId, @Query(value="synchronous") Boolean synchronous, @Query(value="redrive") Boolean redrive)
uploadId
- Upload ID (required)synchronous
- True if this API call should wait for upload validation to finish before returning. (optional, default to false)redrive
- True if this API call should allow completing uploads that are already complete. This is to allow redrives and backfills. (optional, default to false)@Headers(value="Content-Type:application/json") @POST(value="v3/subpopulations/{subpopulationGuid}/consents/signature") retrofit2.Call<UserSessionInfo> createConsentSignature(@Path(value="subpopulationGuid") String subpopulationGuid, @Body ConsentSignature consentSignature)
subpopulationGuid
- Subpopulation GUID (required)consentSignature
- A consent signature (required)@Deprecated @Headers(value="Content-Type:application/json") @POST(value="v1/activityevents") retrofit2.Call<Message> createCustomActivityEvent(@Body CustomActivityEventRequest customActivityEventRequest)
customActivityEventRequest
- (required)@Headers(value="Content-Type:application/json") @POST(value="v3/notifications") retrofit2.Call<GuidHolder> createNotificationRegistration(@Body NotificationRegistration notificationRegistration)
notificationRegistration
- (required)@Headers(value="Content-Type:application/json") @POST(value="v3/participants/self/files/{fileId}") retrofit2.Call<ParticipantFile> createParticipantFile(@Path(value="fileId") String fileId, @Body ParticipantFile participantFile)
fileId
- (required)participantFile
- The participant file metadata (required)@Headers(value="Content-Type:application/json") @POST(value="v5/studies/{studyId}/participants/self/activityevents") retrofit2.Call<Message> createStudyActivityEvent(@Path(value="studyId") String studyId, @Body StudyActivityEventRequest studyActivityEventRequest, @Query(value="showError") Boolean showError, @Query(value="updateBursts") Boolean updateBursts)
studyId
- Study identifier (required)studyActivityEventRequest
- (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)@Deprecated @Headers(value="Content-Type:application/json") @DELETE(value="v1/activityevents/{eventId}") retrofit2.Call<Message> deleteCustomActivityEvent(@Path(value="eventId") String eventId)
eventId
- An activity event key (required)@Headers(value="Content-Type:application/json") @DELETE(value="v3/users/self/data/{identifier}") retrofit2.Call<Message> deleteDataByIdentifier(@Path(value="identifier") String identifier)
identifier
- identifier (required)@Headers(value="Content-Type:application/json") @DELETE(value="v3/notifications/{guid}") retrofit2.Call<Message> deleteNotificationRegistration(@Path(value="guid") String guid)
guid
- A guid (required)@Headers(value="Content-Type:application/json") @DELETE(value="v3/participants/self/files/{fileId}") retrofit2.Call<Message> deleteParticipantFile(@Path(value="fileId") String fileId)
fileId
- (required)@Headers(value="Content-Type:application/json") @DELETE(value="v5/studies/{studyId}/participants/self/activityevents/{eventId}") retrofit2.Call<Message> deleteStudyActivityEvent(@Path(value="studyId") String studyId, @Path(value="eventId") String eventId, @Query(value="showError") Boolean showError)
studyId
- Study identifier (required)eventId
- An activity event key (required)showError
- Return a 400 status if the submission cannot be persisted (optional, default to false)@Deprecated @Headers(value="Content-Type:application/json") @GET(value="v1/activityevents") retrofit2.Call<ActivityEventList> getActivityEvents()
@Deprecated @Headers(value="Content-Type:application/json") @GET(value="v3/activities/{activityGuid}") retrofit2.Call<ForwardCursorScheduledActivityList> getActivityHistory(@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)
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/users/self/data") retrofit2.Call<ForwardCursorStringList> getAllDataForSelf(@Query(value="offsetKey") String offsetKey, @Query(value="pageSize") Integer pageSize)
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/self/exporter3/healthdata") retrofit2.Call<HealthDataRecordEx3List> getAllRecordsEx3ForSelf(@Query(value="createdOnStart") DateTime createdOnStart, @Query(value="createdOnEnd") DateTime createdOnEnd, @Query(value="pageSize") Integer pageSize, @Query(value="offsetKey") String offsetKey)
createdOnStart
- Start time (ISO 8601) for a createdOn date-time range (optional)createdOnEnd
- End time (ISO 8601) for a createdOn date-time range (optional)pageSize
- maximum number of records in each returned page (optional, default to 50)offsetKey
- next page start key for pagination (optional)@Deprecated @Headers(value="Content-Type:application/json") @GET(value="v4/activities/compoundactivities/{taskId}") retrofit2.Call<ForwardCursorScheduledActivityList> getCompoundActivityHistory(@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)
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="v1/apps/{appId}/appconfig") retrofit2.Call<AppConfig> getConfigForApp(@Path(value="appId") String appId)
appId
- App ID (required)@Headers(value="Content-Type:application/json") @GET(value="v3/subpopulations/{subpopulationGuid}/consents/signature") retrofit2.Call<ConsentSignature> getConsentSignature(@Path(value="subpopulationGuid") String subpopulationGuid)
subpopulationGuid
- Subpopulation GUID (required)@Headers(value="Content-Type:application/json") @GET(value="v3/users/self/data/{identifier}") retrofit2.Call<ParticipantData> getDataByIdentifierForSelf(@Path(value="identifier") String identifier)
identifier
- identifier (required)@Headers(value="Content-Type:application/json") @GET(value="v3/notifications/{guid}") retrofit2.Call<NotificationRegistration> getNotificationRegistration(@Path(value="guid") String guid)
guid
- A guid (required)@Headers(value="Content-Type:application/json") @GET(value="v3/notifications") retrofit2.Call<NotificationRegistrationList> getNotificationRegistrations()
@Headers(value="Content-Type:application/json") @GET(value="v3/participants/self/files/{fileId}") retrofit2.Call<okhttp3.ResponseBody> getParticipantFile(@Path(value="fileId") String fileId)
fileId
- (required)@Headers(value="Content-Type:application/json") @GET(value="v3/participants/self/files") retrofit2.Call<ParticipantFileList> getParticipantFiles(@Query(value="offsetKey") String offsetKey, @Query(value="pageSize") Integer pageSize)
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/reports/{identifier}/index") retrofit2.Call<ReportIndex> getParticipantReportIndex(@Path(value="identifier") String identifier)
identifier
- identifier (required)@Headers(value="Content-Type:application/json") @GET(value="v3/participants/reports") retrofit2.Call<ReportIndexList> getParticipantReportIndices()
@Headers(value="Content-Type:application/json") @GET(value="v3/users/self/reports/{identifier}") retrofit2.Call<ReportDataList> getParticipantReportRecords(@Path(value="identifier") String identifier, @Query(value="startDate") LocalDate startDate, @Query(value="endDate") LocalDate endDate)
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/users/self/reports/{identifier}") retrofit2.Call<ForwardCursorReportDataList> getParticipantReportRecordsV4(@Path(value="identifier") String identifier, @Query(value="startTime") DateTime startTime, @Query(value="endTime") DateTime endTime, @Query(value="pageSize") Integer pageSize, @Query(value="offsetKey") String offsetKey)
identifier
- identifier (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="v5/studies/{studyId}/participants/self/schedule") retrofit2.Call<ParticipantSchedule> getParticipantScheduleForSelf(@Path(value="studyId") String studyId, @Query(value="clientTimeZone") String clientTimeZone)
studyId
- Study identifier (required)clientTimeZone
- Participant's time zone. Must be an IANA time zone name. (required)@Deprecated @Headers(value="Content-Type:application/json") @GET(value="v3/surveys/{surveyGuid}/revisions/published") retrofit2.Call<Survey> getPublishedSurveyVersion(@Path(value="surveyGuid") String surveyGuid)
surveyGuid
- Survey GUID (required)@Headers(value="Content-Type:application/json") @GET(value="v3/participants/self/exporter3/healthdata/{recordId}") retrofit2.Call<HealthDataRecordEx3> getRecordEx3ById(@Path(value="recordId") String recordId, @Query(value="download") String download)
recordId
- Health data record ID (required)download
- If the user requires to download their record. (optional, default to false)@Deprecated @Headers(value="Content-Type:application/json") @GET(value="v3/activities") retrofit2.Call<ScheduledActivityList> getScheduledActivities(@Query(value="offset") String offset, @Query(value="daysAhead") Integer daysAhead, @Query(value="minimumPerSchedule") Integer minimumPerSchedule)
offset
- The user's time zone offset (e.g. +07:00). Scheduled activities will be returned in the timezone submitted at the time of the request. (required)daysAhead
- Retrieve activities that are scheduled in the future for the indicated number of days past today. (required)minimumPerSchedule
- Force a look-ahead on repeating activities until at least the indicated number of activities are scheduled (this is applied to the each schedule in the system that applies to this user). The system will then return either the activities for N days, or the minimum number of activities, whichever is the greatest in number. This setting can help to expose infrequent tasks (weekly, monthly, etc.) to users. (optional)@Deprecated @Headers(value="Content-Type:application/json") @GET(value="v4/activities") retrofit2.Call<ScheduledActivityListV4> getScheduledActivitiesByDateRange(@Query(value="startTime") DateTime startTime, @Query(value="endTime") DateTime endTime)
startTime
- (required)endTime
- (required)@Deprecated @Headers(value="Content-Type:application/json") @GET(value="v4/schedules") retrofit2.Call<ScheduleList> getSchedulesV1()
@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/self/activityevents/{eventId}") retrofit2.Call<StudyActivityEventPagedList> getStudyActivityEventHistory(@Path(value="studyId") String studyId, @Path(value="eventId") String eventId, @Query(value="offsetBy") Integer offsetBy, @Query(value="pageSize") Integer pageSize)
studyId
- Study identifier (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/self/activityevents") retrofit2.Call<StudyActivityEventList> getStudyActivityEvents(@Path(value="studyId") String studyId)
studyId
- Study identifier (required)@Headers(value="Content-Type:application/json") @GET(value="v3/reports") retrofit2.Call<ReportIndexList> getStudyReportIndices()
@Headers(value="Content-Type:application/json") @GET(value="v3/reports/{identifier}") retrofit2.Call<ReportDataList> getStudyReportRecords(@Path(value="identifier") String identifier, @Query(value="startDate") LocalDate startDate, @Query(value="endDate") LocalDate endDate)
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/reports/{identifier}") retrofit2.Call<ForwardCursorReportDataList> getStudyReportRecordsV4(@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)
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)@Deprecated @Headers(value="Content-Type:application/json") @GET(value="v3/surveys/{surveyGuid}/revisions/{createdOn}") retrofit2.Call<Survey> getSurvey(@Path(value="surveyGuid") String surveyGuid, @Path(value="createdOn") DateTime createdOn)
surveyGuid
- Survey GUID (required)createdOn
- Created on timestamp (ISO 8601) (required)@Deprecated @Headers(value="Content-Type:application/json") @GET(value="v4/activities/surveys/{surveyGuid}") retrofit2.Call<ForwardCursorScheduledActivityList> getSurveyHistory(@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)
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="v4/activities/tasks/{taskId}") retrofit2.Call<ForwardCursorScheduledActivityList> getTaskHistory(@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)
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="v5/studies/{studyId}/participants/self/timeline") retrofit2.Call<Timeline> getTimelineForSelf(@Path(value="studyId") String studyId, @Header(value="If-Modified-Since") DateTime ifModifiedSince)
studyId
- Study identifier (required)ifModifiedSince
- ISO 8601 timestamp value (optional)@Headers(value="Content-Type:application/json") @GET(value="v3/notifications/{guid}/subscriptions") retrofit2.Call<SubscriptionStatusList> getTopicSubscriptions(@Path(value="guid") String guid)
guid
- A guid (required)@Headers(value="Content-Type:application/json") @GET(value="v3/uploads/{uploadId}/exporter3") retrofit2.Call<UploadViewEx3> getUploadEx3(@Path(value="uploadId") String uploadId, @Query(value="fetchTimeline") Boolean fetchTimeline)
uploadId
- Upload ID (required)fetchTimeline
- True if this API should fetch timeline metadata corresponding to this upload (optional, default to false)@Headers(value="Content-Type:application/json") @GET(value="v5/studies/{studyId}/uploads/{uploadId}/exporter3") retrofit2.Call<UploadViewEx3> getUploadEx3ForStudy(@Path(value="studyId") String studyId, @Path(value="uploadId") String uploadId, @Query(value="fetchTimeline") Boolean fetchTimeline, @Query(value="fetchAdherence") Boolean fetchAdherence)
studyId
- Study identifier (required)uploadId
- Upload ID (required)fetchTimeline
- True if this API should fetch timeline metadata corresponding to this upload (optional, default to false)fetchAdherence
- True if this API should fetch adherence records corresponding to this upload (optional, default to false)@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="v3/participants/self") retrofit2.Call<StudyParticipant> getUsersParticipantRecord(@Query(value="consents") Boolean consents)
consents
- Should consent histories be included with this participant record? (optional)@Headers(value="Content-Type:application/json") @GET(value="v5/studies/{studyId}/participants/self/adherence/eventstream") retrofit2.Call<EventStreamAdherenceReport> getUsersStudyParticipantEventStreamAdherenceReport(@Path(value="studyId") String studyId, @Query(value="datetime") DateTime datetime, @Query(value="activeOnly") Boolean activeOnly)
studyId
- Study identifier (required)datetime
- The timestamp to use as “now” for the calculation of adherence. This timestamp will be adjusted to the caller’s `clientTimeZone` value if this value has been persisted. (optional, default to The date and time on the server at the time of the request)activeOnly
- Only return records that are currently active and actionable for the participant. (optional, default to false)@Headers(value="Content-Type:application/json") @GET(value="v5/studies/{studyId}/participants/self/reports/{identifier}") retrofit2.Call<ForwardCursorReportDataList> getUsersStudyParticipantReport(@Path(value="studyId") String studyId, @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)
studyId
- Study identifier (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") @POST(value="v3/oauth/{vendorId}") retrofit2.Call<OAuthAccessToken> requestOAuthAccessToken(@Path(value="vendorId") String vendorId, @Body OAuthAuthorizationToken oauthAuthorizationToken)
vendorId
- OAuth 2.0 provider ID (required)oauthAuthorizationToken
- (required)@Headers(value="Content-Type:application/json") @POST(value="v3/uploads") retrofit2.Call<UploadSession> requestUploadSession(@Body UploadRequest uploadRequest)
uploadRequest
- An upload request (required)@Headers(value="Content-Type:application/json") @POST(value="v3/subpopulations/{subpopulationGuid}/consents/signature/resend") retrofit2.Call<Message> resendConsentAgreement(@Path(value="subpopulationGuid") String subpopulationGuid)
subpopulationGuid
- Subpopulation GUID (required)@Headers(value="Content-Type:application/json") @POST(value="v3/users/self/data/{identifier}") retrofit2.Call<Message> saveDataForSelf(@Path(value="identifier") String identifier, @Body ParticipantData participantData)
identifier
- identifier (required)participantData
- (required)@Headers(value="Content-Type:application/json") @POST(value="v5/studies/{studyId}/participants/self/demographics") retrofit2.Call<DemographicUserResponse> saveDemographicUserSelf(@Path(value="studyId") String studyId, @Body DemographicUser demographicUser)
studyId
- Study identifier (required)demographicUser
- (required)@Headers(value="Content-Type:application/json") @POST(value="v3/participants/self/demographics") retrofit2.Call<DemographicUserResponse> saveDemographicUserSelfAppLevel(@Body DemographicUser demographicUser)
demographicUser
- (required)@Headers(value="Content-Type:application/json") @POST(value="v5/studies/{studyId}/participants/self/demographics/assessment") retrofit2.Call<DemographicUserResponse> saveDemographicUserSelfAssessment(@Path(value="studyId") String studyId, @Body DemographicUserAssessment demographicUser)
studyId
- Study identifier (required)demographicUser
- (required)@Headers(value="Content-Type:application/json") @POST(value="v3/participants/self/demographics/assessment") retrofit2.Call<DemographicUserResponse> saveDemographicUserSelfAssessmentAppLevel(@Body DemographicUserAssessment demographicUserAssessment)
demographicUserAssessment
- (required)@Headers(value="Content-Type:application/json") @POST(value="v4/users/self/reports/{identifier}") retrofit2.Call<Message> saveParticipantReportRecordsV4(@Path(value="identifier") String identifier, @Body ReportData reportData)
identifier
- identifier (required)reportData
- (required)@Headers(value="Content-Type:application/json") @POST(value="v5/studies/{studyId}/participants/self/reports/{identifier}") retrofit2.Call<Message> saveUsersStudyParticipantReportRecord(@Path(value="studyId") String studyId, @Path(value="identifier") String identifier, @Body ReportData reportData)
studyId
- Study identifier (required)identifier
- identifier (required)reportData
- (required)@Headers(value="Content-Type:application/json") @POST(value="v5/studies/{studyId}/participants/self/adherence/search") retrofit2.Call<AdherenceRecordList> searchForAdherenceRecords(@Path(value="studyId") String studyId, @Body AdherenceRecordsSearch adherenceRecordsSearch)
studyId
- Study identifier (required)adherenceRecordsSearch
- The search criteria. (required)@Headers(value="Content-Type:application/json") @POST(value="v3/users/self/sendData") retrofit2.Call<Message> sendDataToUser(@Body DateRange dateRange)
dateRange
- startDate and endDate of the request. (required)@Headers(value="Content-Type:application/json") @POST(value="v3/healthdata") retrofit2.Call<HealthDataRecord> submitHealthData(@Body HealthDataSubmission healthDataSubmission)
healthDataSubmission
- Health data submitted by the user (required)@Headers(value="Content-Type:application/json") @POST(value="v3/notifications/{guid}/subscriptions") retrofit2.Call<SubscriptionStatusList> subscribeToTopics(@Path(value="guid") String guid, @Body SubscriptionRequest subscriptionRequest)
guid
- A guid (required)subscriptionRequest
- (required)@Headers(value="Content-Type:application/json") @POST(value="v5/studies/{studyId}/participants/self/adherence") retrofit2.Call<Message> updateAdherenceRecords(@Path(value="studyId") String studyId, @Body AdherenceRecordUpdates adherenceRecordUpdates)
studyId
- Study identifier (required)adherenceRecordUpdates
- One ore more adherence records (required)@Headers(value="Content-Type:application/json") @POST(value="v3/notifications/{guid}") retrofit2.Call<GuidHolder> updateNotificationRegistration(@Path(value="guid") String guid, @Body NotificationRegistration notificationRegistration)
guid
- A guid (required)notificationRegistration
- (required)@Deprecated @Headers(value="Content-Type:application/json") @POST(value="v4/activities") retrofit2.Call<Message> updateScheduledActivities(@Body List<ScheduledActivity> scheduledActivity)
scheduledActivity
- (required)@Headers(value="Content-Type:application/json") @POST(value="v3/participants/self/identifiers") retrofit2.Call<UserSessionInfo> updateUsersIdentifiers(@Body IdentifierUpdate updateIdentifier)
updateIdentifier
- Information to authenticate and update an account identifier (required)@Headers(value="Content-Type:application/json") @POST(value="v3/participants/self") retrofit2.Call<UserSessionInfo> updateUsersParticipantRecord(@Body StudyParticipant studyParticipant)
studyParticipant
- Study participant (required)@Headers(value="Content-Type:application/json") @POST(value="v3/subpopulations/{subpopulationGuid}/consents/signature/withdraw") retrofit2.Call<UserSessionInfo> withdrawConsentFromSubpopulation(@Path(value="subpopulationGuid") String subpopulationGuid, @Body Withdrawal withdrawal)
subpopulationGuid
- Subpopulation GUID (required)withdrawal
- (required)@Headers(value="Content-Type:application/json") @POST(value="v3/consents/withdraw") retrofit2.Call<Message> withdrawFromApp(@Body Withdrawal withdrawal)
withdrawal
- (required)Copyright © 2024 Sage Bionetworks. All rights reserved.