public interface ParticipantDataApi
Modifier and Type | Method and Description |
---|---|
retrofit2.Call<Message> |
deleteAllParticipantDataForAdmin(String appId,
String userId)
Delete all participant data
Endpoint for admin to delete all participant data for the given participant.
|
retrofit2.Call<Message> |
deleteDataByIdentifier(String identifier)
delete a participant data record
|
retrofit2.Call<Message> |
deleteDataForAdmin(String appId,
String userId,
String identifier)
Delete a participant data
Endpoint for admin to delete a participnt data.
|
retrofit2.Call<ForwardCursorStringList> |
getAllDataForAdminWorker(String appId,
String userId,
String offsetKey,
Integer pageSize)
Get list of identifiers for participant data
Endpoint for worker or admin to get a list of participant data identifiers.
|
retrofit2.Call<ForwardCursorStringList> |
getAllDataForSelf(String offsetKey,
Integer pageSize)
Get list of identifiers for participant data
|
retrofit2.Call<ParticipantData> |
getDataByIdentifierForAdminWorker(String appId,
String userId,
String identifier)
Get participant data by identifier
Endpoint for worker or admin to get a participant data.
|
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<Message> |
saveDataForAdminWorker(String appId,
String userId,
String identifier,
ParticipantData participantData)
Save a participant data
Endpoint for worker or admin to save a participant data.
|
retrofit2.Call<Message> |
saveDataForSelf(String identifier,
ParticipantData participantData)
Save a participant data record
Save a participant record.
|
@Headers(value="Content-Type:application/json") @DELETE(value="v1/apps/{appId}/participants/{userId}/data") retrofit2.Call<Message> deleteAllParticipantDataForAdmin(@Path(value="appId") String appId, @Path(value="userId") String userId)
appId
- App ID (required)userId
- User ID (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="v1/apps/{appId}/participants/{userId}/data/{identifier}") retrofit2.Call<Message> deleteDataForAdmin(@Path(value="appId") String appId, @Path(value="userId") String userId, @Path(value="identifier") String identifier)
appId
- App ID (required)userId
- User ID (required)identifier
- identifier (required)@Headers(value="Content-Type:application/json") @GET(value="v1/apps/{appId}/participants/{userId}/data") retrofit2.Call<ForwardCursorStringList> getAllDataForAdminWorker(@Path(value="appId") String appId, @Path(value="userId") String userId, @Query(value="offsetKey") String offsetKey, @Query(value="pageSize") Integer pageSize)
appId
- App ID (required)userId
- User ID (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="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="v1/apps/{appId}/participants/{userId}/data/{identifier}") retrofit2.Call<ParticipantData> getDataByIdentifierForAdminWorker(@Path(value="appId") String appId, @Path(value="userId") String userId, @Path(value="identifier") String identifier)
appId
- App ID (required)userId
- User ID (required)identifier
- identifier (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") @POST(value="v1/apps/{appId}/participants/{userId}/data/{identifier}") retrofit2.Call<Message> saveDataForAdminWorker(@Path(value="appId") String appId, @Path(value="userId") String userId, @Path(value="identifier") String identifier, @Body ParticipantData participantData)
appId
- App ID (required)userId
- User ID (required)identifier
- identifier (required)participantData
- (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)Copyright © 2023 Sage Bionetworks. All rights reserved.