inviteNewParticipantGroup

open suspend override fun inviteNewParticipantGroup(studyId: UUID, group: Set<AssignedParticipantRoles>): ParticipantGroupStatus

Create a new participant group of previously added participants and instantly send out invitations to participate in the study with the given studyId.

In case a group with the same participants has already been deployed and is still running (not stopped), the latest status for this group is simply returned.

Throws

when:

  • a study with studyId does not exist

  • group is empty

  • any of the participant roles specified in group does not exist

  • not all necessary participant roles part of the study have been assigned a participant

when the study is not yet ready for deployment.