subscribe

suspend fun subscribe(cohortId: String? = null, subscriptionId: String? = null): SubscriptionWithQuestionnaires

Use this function to subscribe the device to your(one of your) cohort(s).

Return

Object containing the SubscriptionWithQuestionnaires object.

Parameters

cohortId

UUID of the cohort to subscribe tom will be assigned a random subscription ID

subscriptionId

UUID of the subscription, this subscription must already exist in the cohort.