setProtocol

abstract suspend fun setProtocol(studyId: UUID, protocol: StudyProtocolSnapshot): StudyStatus

Specify the study protocol to use for the study with the specified studyId.

Throws

when:

  • a study with studyId does not exist

  • the provided protocol snapshot is invalid

  • the protocol contains errors preventing it from being used in deployments

when the study protocol can no longer be set since the study went 'live'.