Run the model using the Thymia Activity Plugin
Authentication
Request
When the user fell asleep for their last main sleep before the recording was made (as an ISO 8601 datetime). This should not include timezone information but it is assumed to be in the local timezone of the user in the recording so the time of day can be inferred.
When the user woke from their last main sleep before the recording was made (as an ISO 8601 datetime). This should not include timezone information but it is assumed to be in the local timezone of the user in the recording so the time of day can be inferred.
Boolean flag indicating if user data is to be deleted after the completion of the model run. If True, the recordings, model inputs and model results will be deleted 12 hrs after the model run completes. Attempts to retrieve results after this time will receive a 404 error. If you wish to be more specific about which types of data are deleted, see the data_to_delete field below.
An array of data types to indicate which data inputs should be deleted after completion of the model run.
To be used in combination with the delete_data boolean flag. Note:
- If
delete_datais set totrueanddata_to_deletevalue is omitted, all data will be deleted. - If
delete_datais set totrueanddata_to_deletevalue is set to one or more data types, only the specified data will be deleted.
The type of activity to show to users. If omitted, a default activity will be used. See the online docs for the latest list of activities to choose from.