Metadata
What is Metadata?
Using Metadata
// Note: This is the recommended approach, in order to avoid Invalid_JSON errors.
// create an instance of Metadata and attach the key-value pairs using 'put'
val metadata = Metadata()
.put("identificationReason", "postnatal care visit")
.put("childPresent", true)
.put("childAge", 3)
// pass the Metadata object to the request data
simprintsLauncher.launch(SimprintsRequest.Enrol(
projectId = "Project ID",
userId = "User ID",
moduleId = "Module ID",
metadata = metadata,
))
Invalid JSON object
Subject Age metadata parameter
Last updated
Was this helpful?