{"openapi":"3.1.0","info":{"title":"Carp-webservices API","description":"The [C]openh[A]gen [R]esearch [P]latform (CARP) enables researchers to run mobile health (mHealth) studies where data is collected on participant's smartphones and wearable devices. Data is securely uploaded and managed in a hosting infrastructure managed by the Technical University of Denmark.\nCARP is a platform for running research studies in the health domain – also known as Digital Phenotyping. Such studies range from technical feasibility studies of novel technology to large-scale clinical studies. The platform is very versatile both in terms of support for different types of health domains, as well as in terms of technical support and configuration.\nCARP Webservices API primarily provides the REST API (Spring/Kotlin) consumed by clients for the CARP project.\nThe architecture is a modular monolith, with loosely coupled services and endpoints separated by feature-type (i.e auth, data points, study, protocols, deployments, documents, collections, consent documents, file). Shared services can be found under the common directory, and are again separated in directories by type (rather than controllers, models, views, services, factories, presenters, etc). Overall, the CARP Webservice API architecture is divided into three layers; API Gateway, Security, Services, and Persistence layer.\nCopyright 2024 Copenhagen Research Platform (CARP) at the Technical University of Denmark (DTU).","version":"2.6.0"},"servers":[{"url":"https://dev.carp.dk"}],"security":[{"bearer":[]}],"paths":{"/api/studies/{study-id}/self-signup":{"get":{"tags":["self-signup-admin-controller"],"description":"Current self-signup config/status for the study (short code, enabled, cap, current count), or null if self-signup has never been enabled.","operationId":"getConfig","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SelfSignupConfigResponseDto"}}}}}},"put":{"tags":["self-signup-admin-controller"],"summary":"Enable or reconfigure self-signup","description":"Enables Kahoot-style self-signup for the study, or reconfigures it if already enabled or ended before. The study must be live and the given participant role must exist on its protocol. A short code is generated once, on first enable, and is never regenerated by later calls - it survives an enable -> end -> re-enable cycle. maxParticipants is a lifetime cap and may be raised or lowered on a later call.","operationId":"enable","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnableSelfSignupRequestDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SelfSignupConfigResponseDto"}}}}}},"delete":{"tags":["self-signup-admin-controller"],"description":"Ends self-signup for the study: flips it disabled. The short code and cumulative participant count are kept, so re-enabling later resumes under the same code.","operationId":"end","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SelfSignupConfigResponseDto"}}}}}}},"/api/studies/{study-id}/documents/{document-id}":{"get":{"tags":["document-controller"],"operationId":"getOne","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}},{"name":"document-id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}}}},"put":{"tags":["document-controller"],"operationId":"update","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}},{"name":"document-id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDocumentRequestDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Document"}}}}}},"delete":{"tags":["document-controller"],"operationId":"delete","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}},{"name":"document-id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK"}}}},"/api/studies/{study-id}/documents/{document-id}/append":{"put":{"tags":["document-controller"],"operationId":"append","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}},{"name":"document-id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDocumentRequestDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Document"}}}}}}},"/api/studies/{study-id}/collections/id/{collection-id}":{"get":{"tags":["collection-controller"],"operationId":"getByStudyIdAndCollectionId","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}},{"name":"collection-id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Collection"}}}}}},"put":{"tags":["collection-controller"],"operationId":"update_1","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}},{"name":"collection-id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionUpdateRequestDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Collection"}}}}}},"delete":{"tags":["collection-controller"],"operationId":"delete_1","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}},{"name":"collection-id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK"}}}},"/api/study-service":{"post":{"tags":["study-controller"],"description":"\n        The request body should be a serialized StudyServiceRequest (string).\n        The response body will also be serialized (string). The request-response mappings are as follows:\n        \n        - CreateStudy -> StudyStatus\n        - SetInternalDescription -> StudyStatus\n        - GetStudyDetails -> StudyDetails\n        - GetStudyStatus -> StudyStatus\n        - GetStudiesOverview -> StudyStatus[]\n        - SetInvitation -> StudyStatus\n        - SetProtocol -> StudyStatus\n        - RemoveProtocol -> StudyStatus\n        - GoLive -> StudyStatus\n        - Remove -> Boolean\n    ","operationId":"studies","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CreateStudy"},{"$ref":"#/components/schemas/SetInternalDescription"},{"$ref":"#/components/schemas/GetStudyDetails"},{"$ref":"#/components/schemas/GetStudyStatus"},{"$ref":"#/components/schemas/GetStudiesOverview"},{"$ref":"#/components/schemas/SetInvitation"},{"$ref":"#/components/schemas/SetProtocol"},{"$ref":"#/components/schemas/RemoveProtocol"},{"$ref":"#/components/schemas/GoLive"},{"$ref":"#/components/schemas/Remove"}]}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/StudyStatus"},{"$ref":"#/components/schemas/StudyStatus"},{"$ref":"#/components/schemas/StudyDetails"},{"$ref":"#/components/schemas/StudyStatus"},{"type":"array","items":{"$ref":"#/components/schemas/StudyStatus"}},{"$ref":"#/components/schemas/StudyStatus"},{"$ref":"#/components/schemas/StudyStatus"},{"$ref":"#/components/schemas/StudyStatus"},{"$ref":"#/components/schemas/StudyStatus"},{"type":"boolean"}]}}}}}}},"/api/studies/{study-id}/researchers/add":{"post":{"tags":["study-controller"],"operationId":"addResearcher","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}},{"name":"email","in":"query","required":true,"schema":{"type":"string"}},{"name":"role","in":"query","required":true,"schema":{"type":"string","enum":["UNKNOWN","PARTICIPANT","RESEARCH_ASSISTANT","RESEARCHER","CARP_ADMIN","SYSTEM_ADMIN"]}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{}}}}},"/api/studies/{study-id}/participants/add":{"post":{"tags":["study-controller"],"operationId":"addParticipants","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddParticipantsRequestDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{}}}}},"/api/studies/{study-id}/participants/accounts":{"post":{"tags":["study-controller"],"summary":"Query participant accounts","description":"Returns a paged participant-centered view for a study. Supports search by participant ID or account identity, sorting, and filtering by deployment state.","operationId":"queryParticipantAccounts","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParticipantAccountsRequestDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ParticipantAccountsResponseDto"}}}}}}},"/api/studies/{study-id}/images":{"post":{"tags":["file-controller"],"operationId":"uploadS3","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"image":{"type":"string","format":"binary"}},"required":["image"]}}}},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"201":{"description":"Created","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/studies/{study-id}/files":{"get":{"tags":["file-controller"],"operationId":"getAll","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}},{"name":"query","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/File"}}}}}}},"post":{"tags":["file-controller"],"operationId":"create","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}},{"name":"metadata","in":"query","required":false,"schema":{"type":"string"}},{"name":"deployment_id","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}},"application/octet-stream":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/File"}}}}}}},"/api/studies/{study-id}/exports/summaries":{"post":{"tags":["export-controller"],"operationId":"exportSummary","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummaryRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"202":{"description":"Accepted","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Export"}}}}}}},"/api/studies/{study-id}/exports/anonymous-participants":{"post":{"tags":["export-controller"],"operationId":"exportAnonymousParticipants","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnonymousParticipantRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"202":{"description":"Accepted","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Export"}}}}}}},"/api/studies/{study-id}/documents":{"get":{"tags":["document-controller"],"operationId":"getAll_1","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Document"}}}}}}},"post":{"tags":["document-controller"],"operationId":"create_1","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDocumentRequestDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Document"}}}}}}},"/api/studies/{study-id}/collections":{"get":{"tags":["collection-controller"],"operationId":"getAll_2","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}},{"name":"query","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Collection"}}}}}}},"post":{"tags":["collection-controller"],"operationId":"create_2","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionCreateRequestDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"201":{"description":"Created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Collection"}}}}}}},"/api/studies/{study-id}/collections/**":{"get":{"tags":["document-controller"],"description":"Get a document by its path e.g. .../collections/foo/bar/baz","operationId":"getByDocumentPath","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}},"post":{"tags":["document-controller"],"description":"Create a document by its path e.g. .../collections/foo/bar/baz","operationId":"createByDocumentPath","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/api/self-signup/{short-code}":{"post":{"tags":["self-signup-controller"],"description":"Public, unauthenticated self-signup by short code. Creates one new anonymous account, deployment, and participant for the study the code belongs to, and returns its magic link. Fails with 404 for an unknown code, 409 if self-signup is disabled or full, or 429 if the caller's address is sending too many requests.","operationId":"signUp","parameters":[{"name":"short-code","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SelfSignupResultDto"}}}}}}},"/api/recruitment-service":{"post":{"tags":["study-controller"],"description":"\n        The request body should be a serialized RecruitmentServiceRequest (string).\n        The response body will also be serialized (string). The request-response mappings are as follows:\n        \n        - AddParticipantByEmailAddress -> Participant\n        - AddParticipantByUsername -> Participant\n        - GetParticipant -> Participant\n        - GetParticipants -> Participant[]\n        - InviteNewParticipantGroup -> ParticipantGroupStatus\n        - GetParticipantGroupStatusList -> ParticipantGroupStatus[]\n        - StopParticipantGroup -> ParticipantGroupStatus\n    ","operationId":"recruitments","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/AddParticipantByEmailAddress"},{"$ref":"#/components/schemas/AddParticipantByUsername"},{"$ref":"#/components/schemas/GetParticipant"},{"$ref":"#/components/schemas/GetParticipants"},{"$ref":"#/components/schemas/InviteNewParticipantGroup"},{"$ref":"#/components/schemas/GetParticipantGroupStatusList"},{"$ref":"#/components/schemas/StopParticipantGroup"}]}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Participant"},{"$ref":"#/components/schemas/Participant"},{"$ref":"#/components/schemas/Participant"},{"type":"array","items":{"$ref":"#/components/schemas/Participant"}},{"$ref":"#/components/schemas/ParticipantGroupStatus"},{"type":"array","items":{"$ref":"#/components/schemas/ParticipantGroupStatus"}},{"$ref":"#/components/schemas/ParticipantGroupStatus"}]}}}}}}},"/api/protocol-service":{"post":{"tags":["protocol-controller"],"description":"\n        The request body should be a serialized ProtocolServiceRequest (string).\n        The response body will also be serialized (string). The request-response mappings are as follows:\n        \n        - Add -> Unit\n        - AddVersion -> Unit\n        - UpdateParticipantDataConfiguration -> StudyProtocolSnapshot\n        - GetBy -> StudyProtocolSnapshot\n        - GetAllForOwner -> StudyProtocolSnapshot[]\n        - GetVersionHistoryFor -> ProtocolVersion[]\n    ","operationId":"protocols","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Add"},{"$ref":"#/components/schemas/AddVersion"},{"$ref":"#/components/schemas/UpdateParticipantDataConfiguration"},{"$ref":"#/components/schemas/GetBy"},{"$ref":"#/components/schemas/GetAllForOwner"},{"$ref":"#/components/schemas/GetVersionHistoryFor"}]}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Unit"},{"$ref":"#/components/schemas/Unit"},{"$ref":"#/components/schemas/StudyProtocolSnapshot"},{"$ref":"#/components/schemas/StudyProtocolSnapshot"},{"type":"array","items":{"$ref":"#/components/schemas/StudyProtocolSnapshot"}},{"type":"array","items":{"$ref":"#/components/schemas/ProtocolVersion"}}]}}}}}}},"/api/protocol-factory-service":{"post":{"tags":["protocol-controller"],"description":"\n        The request body should be a serialized ProtocolFactoryServiceRequest (string).\n        The response body will also be serialized (string). The request-response mappings are as follows:\n        \n        - CreateCustomProtocol -> Unit\n    ","operationId":"protocolFactory","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CreateCustomProtocol"}]}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Unit"}]}}}}}}},"/api/participation-service":{"post":{"tags":["study-deployment-controller"],"description":"\n        The request body should be a serialized ParticipationServiceRequest (string).\n        The response body will also be serialized (string). The request-response mappings are as follows:\n        \n        - GetActiveParticipationInvitations -> ActiveParticipationInvitation[]\n        - GetParticipantData -> ParticipantData\n        - GetParticipantDataList -> ParticipantData[]\n        - SetParticipantData -> ParticipantData\n    ","operationId":"participation","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/GetActiveParticipationInvitations"},{"$ref":"#/components/schemas/GetParticipantData"},{"$ref":"#/components/schemas/GetParticipantDataList"},{"$ref":"#/components/schemas/SetParticipantData"}]}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"oneOf":[{"type":"array","items":{"$ref":"#/components/schemas/ActiveParticipationInvitation"}},{"$ref":"#/components/schemas/ParticipantData"},{"type":"array","items":{"$ref":"#/components/schemas/ParticipantData"}},{"$ref":"#/components/schemas/ParticipantData"}]}}}}}}},"/api/email/send-generic":{"post":{"tags":["email-controller"],"operationId":"sendGeneric","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericEmailRequestDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK"}}}},"/api/deployments/{deployment-id}/consent-documents":{"get":{"tags":["consent-document-controller"],"operationId":"getAll_3","parameters":[{"name":"deployment-id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConsentDocument"}}}}}},"deprecated":true},"post":{"tags":["consent-document-controller"],"operationId":"create_3","parameters":[{"name":"deployment-id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"201":{"description":"Created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ConsentDocument"}}}}},"deprecated":true}},"/api/deployment-service":{"post":{"tags":["study-deployment-controller"],"description":"\n        The request body should be a serialized DeploymentServiceRequest (string).\n        The response body will also be serialized (string). The request-response mappings are as follows:\n        \n        - CreateStudyDeployment -> StudyDeploymentStatus\n        - RemoveStudyDeployments -> UUID[]\n        - GetStudyDeploymentStatus -> StudyDeploymentStatus\n        - GetStudyDeploymentStatusList -> StudyDeploymentStatus[]\n        - RegisterDevice -> StudyDeploymentStatus\n        - UnregisterDevice -> StudyDeploymentStatus\n        - GetDeviceDeploymentFor -> PrimaryDeviceDeployment\n        - DeviceDeployed -> StudyDeploymentStatus\n        - Stop -> StudyDeploymentStatus\n    ","operationId":"deployments","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CreateStudyDeployment"},{"$ref":"#/components/schemas/RemoveStudyDeployments"},{"$ref":"#/components/schemas/GetStudyDeploymentStatus"},{"$ref":"#/components/schemas/GetStudyDeploymentStatusList"},{"$ref":"#/components/schemas/RegisterDevice"},{"$ref":"#/components/schemas/UnregisterDevice"},{"$ref":"#/components/schemas/GetDeviceDeploymentFor"},{"$ref":"#/components/schemas/DeviceDeployed"},{"$ref":"#/components/schemas/Stop"}]}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/StudyDeploymentStatus"},{"type":"array","items":{"$ref":"#/components/schemas/UUID"}},{"$ref":"#/components/schemas/StudyDeploymentStatus"},{"type":"array","items":{"$ref":"#/components/schemas/StudyDeploymentStatus"}},{"$ref":"#/components/schemas/StudyDeploymentStatus"},{"$ref":"#/components/schemas/StudyDeploymentStatus"},{"$ref":"#/components/schemas/PrimaryDeviceDeployment"},{"$ref":"#/components/schemas/StudyDeploymentStatus"},{"$ref":"#/components/schemas/StudyDeploymentStatus"}]}}}}}}},"/api/deployment-service/statistics":{"post":{"tags":["study-deployment-controller"],"operationId":"statistics","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentStatisticsRequestDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/DeploymentStatisticsResponseDto"}}}}},"deprecated":true}},"/api/data-stream-service":{"post":{"tags":["data-stream-controller"],"description":"\n        The request body should be a serialized DataStreamServiceRequest (string).\n        The response body will also be serialized (string). The request-response mappings are as follows:\n        \n        - OpenDataStreams -> Unit\n        - AppendToDataStreams -> Unit\n        - GetDataStream -> DataStreamBatch\n        - CloseDataStreams -> Unit\n        - RemoveDataStreams -> UUID[]\n    ","operationId":"invoke","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/OpenDataStreams"},{"$ref":"#/components/schemas/AppendToDataStreams"},{"$ref":"#/components/schemas/GetDataStream"},{"$ref":"#/components/schemas/CloseDataStreams"},{"$ref":"#/components/schemas/RemoveDataStreams"}]}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Unit"},{"$ref":"#/components/schemas/Unit"},{"$ref":"#/components/schemas/DataStreamBatch"},{"$ref":"#/components/schemas/Unit"},{"type":"array","items":{"$ref":"#/components/schemas/UUID"}}]}}}}}}},"/api/data-stream-service/query-by-time":{"post":{"tags":["data-stream-controller"],"description":"\n        Retrieve a data stream by local update time. Behaves like the core getDataStream, but selects\n        data points whose local `updated_at` timestamp falls within the inclusive [from, to] window\n        instead of a sequence-id range.\n\n        The request body is a serialized core DataStreamId (the same type used by getDataStream).\n        `from` and `to` are ISO-8601 instants passed as query parameters. The response body is a\n        serialized DataStreamBatch.\n    ","operationId":"queryDataStreamByTime","parameters":[{"name":"from","in":"query","description":"Inclusive start of the updated_at window, as an ISO-8601 instant (e.g. 2026-08-01T00:00:00Z).","required":true,"schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","description":"Inclusive end of the updated_at window, as an ISO-8601 instant (e.g. 2026-08-05T00:00:00Z).","required":true,"schema":{"type":"string","format":"date-time"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataStreamId"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/DataStreamBatch"}}}},"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}}}}},"/api/data-stream-service-zip":{"post":{"tags":["data-stream-controller"],"description":"\n        Same as data-stream-service, but take ByteArray instead of JSON string, the ByteArray should be a compressed DataStreamServiceRequest via Gzip.\n        \n        The request-response mappings are as follows:\n        \n        - OpenDataStreams -> Unit\n        - AppendToDataStreams -> Unit\n        - GetDataStream -> DataStreamBatch\n        - CloseDataStreams -> Unit\n        - RemoveDataStreams -> UUID[]\n    ","operationId":"handleCompressedData","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/OpenDataStreams"},{"$ref":"#/components/schemas/AppendToDataStreams"},{"$ref":"#/components/schemas/GetDataStream"},{"$ref":"#/components/schemas/CloseDataStreams"},{"$ref":"#/components/schemas/RemoveDataStreams"}]}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Unit"},{"$ref":"#/components/schemas/Unit"},{"$ref":"#/components/schemas/DataStreamBatch"},{"$ref":"#/components/schemas/Unit"},{"type":"array","items":{"$ref":"#/components/schemas/UUID"}}]}}}}}}},"/api/accounts/role":{"post":{"tags":["account-controller"],"operationId":"role","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/accounts/invite":{"post":{"tags":["account-controller"],"operationId":"invite","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"201":{"description":"Created","content":{}}}}},"/api/studies/{study-id}/researchers":{"get":{"tags":["study-controller"],"operationId":"getResearchers","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Account"}}}}}}},"delete":{"tags":["study-controller"],"operationId":"removeResearcher","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}},{"name":"email","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"type":"boolean"}}}}}}},"/api/studies/{study-id}/research-assistants":{"get":{"tags":["study-controller"],"operationId":"getResearcherAssistants","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Account"}}}}}}}},"/api/studies/{study-id}/participantGroup/status":{"get":{"tags":["study-controller"],"summary":"Participant group status","description":"Returns participant-group deployment status for a study. When both page and size are given, returns one page of matching groups plus a total; otherwise returns all groups. Supports search (deployment id / account identity) and a status filter.","operationId":"getParticipantGroupStatus","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"query","in":"query","required":false,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/studies/{study-id}/participantGroup/counts":{"get":{"tags":["study-controller"],"summary":"Participant group status counts","description":"Aggregate counts of participant-group deployment statuses for the study overview.","operationId":"getParticipantGroupCounts","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/DeploymentStatusCountsDto"}}}}}}},"/api/studies/{study-id}/inactive_deployments":{"get":{"tags":["study-controller"],"operationId":"getInactiveParticipants","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":-1}},{"name":"last_update","in":"query","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InactiveDeploymentInfo"}}}}}}}},"/api/studies/{study-id}/files/{file-id}":{"get":{"tags":["file-controller"],"operationId":"getOne_1","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}},{"name":"file-id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/File"}}}}}},"delete":{"tags":["file-controller"],"operationId":"delete_2","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}},{"name":"file-id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"204":{"description":"No Content"}}}},"/api/studies/{study-id}/files/{file-id}/download":{"get":{"tags":["file-controller"],"description":"Ensure the JWT token is refreshed, before accessing this endpoint.","operationId":"download","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}},{"name":"file-id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"multipart/form-data":{"schema":{"type":"string","format":"binary"}},"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}}}}},"/api/studies/{study-id}/exports":{"get":{"tags":["export-controller"],"operationId":"poll","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Export"}}}}}}}},"/api/studies/{study-id}/exports/{export-id}":{"get":{"tags":["export-controller"],"description":"Download the export file.","operationId":"download_1","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}},{"name":"export-id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string","format":"binary"}}}}}},"delete":{"tags":["export-controller"],"operationId":"delete_3","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}},{"name":"export-id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"204":{"description":"No Content"}}}},"/api/studies/{study-id}/collections/{collection-name}":{"get":{"tags":["collection-controller"],"description":"Gets a collection by studyId and collectionName","operationId":"getByStudyIdAndCollectionName","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}},{"name":"collection-name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Collection"}}}}}}},"/api/studies/{study-id}/collections/deployments/{deployment-id}":{"get":{"tags":["collection-controller"],"description":"Gets a collection by studyId and deploymentId","operationId":"getByStudyIdAndDeploymentId","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}},{"name":"deployment-id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Collection"}}}}}}}},"/api/studies/studies-overview":{"get":{"tags":["study-controller"],"operationId":"getStudiesOverview","responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StudyOverview"}}}}}}}},"/api/protocols/{protocol-id}/latest":{"get":{"tags":["protocol-controller"],"operationId":"getSingleProtocolOverview","parameters":[{"name":"protocol-id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/api/protocols-overview":{"get":{"tags":["protocol-controller"],"operationId":"getProtocolsOverview","responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProtocolOverview"}}}}}}}},"/api/internal/statistics/overview":{"get":{"tags":["statistics-controller"],"operationId":"getOverview","responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/StatisticsOverviewDto"}}}}}}},"/api/internal/statistics/locations":{"get":{"tags":["statistics-controller"],"operationId":"getLocationDataUploads","responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LocationCoordinatesDto"}}}}}}}},"/api/deployments/{deployment-id}/data-points":{"get":{"tags":["data-point-controller"],"operationId":"getAll_4","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"query","in":"query","required":false,"schema":{"type":"string"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string"}},{"name":"deployment-id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DataPoint"}}}}}},"deprecated":true}},"/api/deployments/{deployment-id}/data-points/{data-point-id}":{"get":{"tags":["data-point-controller"],"operationId":"getOne_2","parameters":[{"name":"deployment-id","in":"path","required":true,"schema":{"type":"string"}},{"name":"data-point-id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/DataPoint"}}}}},"deprecated":true},"delete":{"tags":["data-point-controller"],"operationId":"delete_4","parameters":[{"name":"deployment-id","in":"path","required":true,"schema":{"type":"string"}},{"name":"data-point-id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK"}},"deprecated":true}},"/api/deployments/{deployment-id}/data-points/count":{"get":{"tags":["data-point-controller"],"operationId":"count","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string"}},{"name":"deployment-id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"type":"integer","format":"int64"}}}}},"deprecated":true}},"/api/deployments/{deployment-id}/consent-documents/{consent-id}":{"get":{"tags":["consent-document-controller"],"operationId":"getOne_3","parameters":[{"name":"deployment-id","in":"path","required":true,"schema":{"type":"string"}},{"name":"consent-id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ConsentDocument"}}}}},"deprecated":true},"delete":{"tags":["consent-document-controller"],"operationId":"delete_5","parameters":[{"name":"deployment-id","in":"path","required":true,"schema":{"type":"string"}},{"name":"consent-id","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK"}},"deprecated":true}},"/api/studies/{study-id}/consent-documents":{"get":{"tags":["consent-document-controller"],"operationId":"getAll_5","parameters":[{"name":"study-id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConsentDocument"}}}}}},"deprecated":true}},"/api/data-stream-service/summary":{"get":{"tags":["data-stream-controller"],"operationId":"getDataStreamsSummary","parameters":[{"name":"studyId","in":"query","required":true,"schema":{"type":"string"}},{"name":"deploymentId","in":"query","required":false,"schema":{"type":"string"}},{"name":"participantId","in":"query","required":false,"schema":{"type":"string"}},{"name":"scope","in":"query","required":true,"schema":{"type":"string"}},{"name":"type","in":"query","required":true,"schema":{"type":"string"}},{"name":"from","in":"query","required":true,"schema":{"type":"string"}},{"name":"to","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/DataStreamsSummaryDto"}}}}}}},"/api/accounts/{account-id}":{"get":{"tags":["account-controller"],"operationId":"info","parameters":[{"name":"account-id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Account"}}}}}}},"/api/accounts/redirect-uris":{"get":{"tags":["account-controller"],"operationId":"redirectUris","responses":{"400":{"description":"Bad Request","content":{"*/*":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CarpErrorResponse"},{"type":"object"}]}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"405":{"description":"Method Not Allowed","content":{"*/*":{"schema":{"type":"object"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"409":{"description":"Conflict","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"429":{"description":"Too Many Requests","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CarpErrorResponse"}}}},"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}}}}}}}},"components":{"schemas":{"CarpErrorResponse":{"type":"object","properties":{"statusCode":{"type":"integer","format":"int32"},"exception":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}}},"EnableSelfSignupRequestDto":{"type":"object","properties":{"maxParticipants":{"type":"integer","format":"int32"},"participantRoleName":{"type":"string","minLength":1},"clientId":{"type":"string","minLength":1},"redirectUri":{"type":"string","minLength":1},"subdomain":{"type":["string","null"]},"expirationSeconds":{"type":"integer","format":"int64","maximum":2592000}},"required":["clientId","participantRoleName","redirectUri"]},"SelfSignupConfigResponseDto":{"type":"object","properties":{"shortCode":{"type":"string"},"enabled":{"type":"boolean"},"participantRoleName":{"type":"string"},"maxParticipants":{"type":"integer","format":"int32"},"currentParticipantCount":{"type":"integer","format":"int32"}}},"JsonNode":{"type":"object","properties":{"integralNumber":{"type":"boolean"},"missingNode":{"type":"boolean"},"floatingPointNumber":{"type":"boolean"},"nodeType":{"type":"string","enum":["ARRAY","BINARY","BOOLEAN","MISSING","NULL","NUMBER","OBJECT","POJO","STRING"]},"string":{"type":"boolean"},"textual":{"type":"boolean","deprecated":true},"boolean":{"type":"boolean"},"binary":{"type":"boolean"},"valueNode":{"type":"boolean"},"container":{"type":"boolean"},"object":{"type":"boolean"},"pojo":{"type":"boolean"},"short":{"type":"boolean"},"int":{"type":"boolean"},"long":{"type":"boolean"},"double":{"type":"boolean"},"bigDecimal":{"type":"boolean"},"bigInteger":{"type":"boolean"},"number":{"type":"boolean"},"array":{"type":"boolean"},"empty":{"type":"boolean"},"null":{"type":"boolean"},"float":{"type":"boolean"},"embeddedValue":{"type":"boolean"}}},"UpdateDocumentRequestDto":{"type":"object","properties":{"name":{"type":["string","null"],"minLength":1},"data":{"oneOf":[{"$ref":"#/components/schemas/JsonNode"},{"type":"null"}]}},"required":["data","name"]},"Document":{"type":"object","properties":{"createdBy":{"type":["string","null"]},"createdAt":{"type":["string","null"],"format":"date-time"},"updatedBy":{"type":["string","null"]},"updatedAt":{"type":["string","null"],"format":"date-time"},"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"collectionId":{"type":["integer","null"],"format":"int32"},"data":{"oneOf":[{"$ref":"#/components/schemas/JsonNode"},{"type":"null"}]}},"required":["collectionId","name"]},"CollectionUpdateRequestDto":{"type":"object","properties":{"name":{"type":"string","minLength":1}},"required":["name"]},"Collection":{"type":"object","properties":{"createdBy":{"type":["string","null"]},"createdAt":{"type":["string","null"],"format":"date-time"},"updatedBy":{"type":["string","null"]},"updatedAt":{"type":["string","null"],"format":"date-time"},"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"studyId":{"type":"string"},"studyDeploymentId":{"type":["string","null"]},"documentId":{"type":["integer","null"],"format":"int32"},"documents":{"type":["array","null"],"items":{"$ref":"#/components/schemas/Document"}}},"required":["name","studyId"]},"AddParticipantsRequestDto":{"type":"object","properties":{"emails":{"type":"array","items":{"type":"string"}}}},"ParticipantAccountsRequestDto":{"type":"object","properties":{"page":{"type":["integer","null"],"format":"int32","minimum":0},"size":{"type":["integer","null"],"format":"int32","minimum":1},"search":{"type":["string","null"]},"sortDirection":{"type":["string","null"],"enum":["asc","desc"]},"sortBy":{"type":["string","null"],"enum":["accountIdentity","isDeployed"]},"deployed":{"type":"boolean"}}},"Instant":{"type":"object","properties":{"epochSeconds":{"type":"integer","format":"int64"},"nanosecondsOfSecond":{"type":"integer","format":"int32"}}},"ParticipantAccountSummaryDto":{"type":"object","properties":{"participantId":{"type":"string"},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"accountIdentity":{"type":["string","null"]},"invitedOn":{"oneOf":[{"$ref":"#/components/schemas/Instant"},{"type":"null"}]},"carpUser":{"type":"boolean"},"deployed":{"type":"boolean"}}},"ParticipantAccountsResponseDto":{"type":"object","properties":{"page":{"type":["integer","null"],"format":"int32"},"size":{"type":["integer","null"],"format":"int32"},"total":{"type":"integer","format":"int32"},"content":{"type":"array","items":{"$ref":"#/components/schemas/ParticipantAccountSummaryDto"}}}},"File":{"type":"object","properties":{"createdBy":{"type":["string","null"]},"createdAt":{"type":["string","null"],"format":"date-time"},"updatedBy":{"type":["string","null"]},"updatedAt":{"type":["string","null"],"format":"date-time"},"id":{"type":"integer","format":"int32"},"fileName":{"type":"string"},"relativePath":{"type":"string"},"originalName":{"type":"string"},"metadata":{"oneOf":[{"$ref":"#/components/schemas/JsonNode"},{"type":"null"}]},"studyId":{"type":"string"},"ownerId":{"type":["string","null"]},"deploymentId":{"type":["string","null"]}},"required":["fileName","originalName","relativePath","studyId"]},"SummaryRequest":{"type":"object","properties":{"deploymentIds":{"type":["array","null"],"items":{"$ref":"#/components/schemas/UUID"},"uniqueItems":true},"activeDeploymentsOnly":{"type":["boolean","null"]}}},"UUID":{"type":"object","properties":{"stringRepresentation":{"type":"string"}}},"Export":{"type":"object","properties":{"createdBy":{"type":["string","null"]},"createdAt":{"type":["string","null"],"format":"date-time"},"updatedBy":{"type":["string","null"]},"updatedAt":{"type":["string","null"],"format":"date-time"},"id":{"type":"string"},"fileName":{"type":"string"},"status":{"type":"string","enum":["UNKNOWN","IN_PROGRESS","AVAILABLE","ERROR","EXPIRED"]},"studyId":{"type":"string"},"type":{"type":"string","enum":["UNKNOWN","STUDY_DATA","DEPLOYMENT_DATA","ANONYMOUS_PARTICIPANTS"]},"relativePath":{"type":"string"}}},"AnonymousParticipantRequest":{"type":"object","properties":{"amountOfAccounts":{"type":"integer","format":"int32"},"expirationSeconds":{"type":"integer","format":"int64"},"clientId":{"type":"string","minLength":1},"redirectUri":{"type":"string","minLength":1},"participantRoleName":{"type":"string","minLength":1},"subdomain":{"type":["string","null"]},"useFastPipeline":{"type":"boolean"},"expirationSecondsValidForPipeline":{"type":"boolean"}},"required":["clientId","participantRoleName","redirectUri"]},"CreateDocumentRequestDto":{"type":"object","properties":{"name":{"type":"string","minLength":1},"collectionId":{"type":["integer","null"],"format":"int32"},"collections":{"type":["array","null"],"items":{"$ref":"#/components/schemas/Collection"}},"data":{"oneOf":[{"$ref":"#/components/schemas/JsonNode"},{"type":"null"}]}},"required":["collectionId","name"]},"CollectionCreateRequestDto":{"type":"object","properties":{"name":{"type":"string","minLength":1},"deploymentId":{"type":["string","null"]}},"required":["name"]},"SelfSignupResultDto":{"type":"object","properties":{"magicLink":{"type":"string"}}},"GenericEmailRequestDto":{"type":"object","properties":{"recipient":{"type":"string","format":"email"},"subject":{"type":"string","minLength":1},"message":{"type":"string","minLength":1},"cc":{"type":"array","items":{"type":"string"}}},"required":["message","subject"]},"ConsentDocument":{"type":"object","properties":{"createdBy":{"type":["string","null"]},"createdAt":{"type":["string","null"],"format":"date-time"},"updatedBy":{"type":["string","null"]},"updatedAt":{"type":["string","null"],"format":"date-time"},"id":{"type":"integer","format":"int32"},"deploymentId":{"type":["string","null"]},"data":{"oneOf":[{"$ref":"#/components/schemas/JsonNode"},{"type":"null"}]}}},"DeploymentStatisticsRequestDto":{"type":"object","properties":{"deploymentIds":{"type":"array","items":{"type":"string"},"minItems":1}},"required":["deploymentIds"]},"DeploymentStatisticsResponseDto":{"type":"object","properties":{"statistics":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/StatisticsDto"}}}}},"StatisticsDto":{"type":"object","properties":{"count":{"type":"integer","format":"int32"},"uploads":{"type":"object","additionalProperties":{"type":"integer","format":"int32"}}}},"AccountRequest":{"type":"object","properties":{"emailAddress":{"type":"string","format":"email","minLength":1},"role":{"type":"string","enum":["UNKNOWN","PARTICIPANT","RESEARCH_ASSISTANT","RESEARCHER","CARP_ADMIN","SYSTEM_ADMIN"]}},"required":["emailAddress"]},"Account":{"type":"object","properties":{"id":{"type":["string","null"]},"username":{"type":["string","null"]},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"email":{"type":["string","null"]},"role":{"type":["string","null"],"enum":["UNKNOWN","PARTICIPANT","RESEARCH_ASSISTANT","RESEARCHER","CARP_ADMIN","SYSTEM_ADMIN"]},"carpClaims":{"type":["array","null"],"items":{"oneOf":[{"$ref":"#/components/schemas/CollectionOwner"},{"$ref":"#/components/schemas/FileOwner"},{"$ref":"#/components/schemas/InDeployment"},{"$ref":"#/components/schemas/LimitedManageStudy"},{"$ref":"#/components/schemas/ManageStudy"},{"$ref":"#/components/schemas/ProtocolOwner"},{"$ref":"#/components/schemas/VirtualClaim"},{"$ref":"#/components/schemas/ManageDeployment"}]},"uniqueItems":true},"identity":{"$ref":"#/components/schemas/AccountIdentity"},"fullName":{"type":["string","null"]}}},"AccountIdentity":{},"Claim":{"type":"object","properties":{"value":{}}},"CollectionOwner":{"allOf":[{"$ref":"#/components/schemas/Claim"},{"type":"object","properties":{"collectionId":{"type":"integer","format":"int32"},"value":{"type":"string"}}}]},"FileOwner":{"allOf":[{"$ref":"#/components/schemas/Claim"},{"type":"object","properties":{"fileId":{"type":"integer","format":"int32"},"value":{"type":"string"}}}]},"InDeployment":{"allOf":[{"$ref":"#/components/schemas/Claim"},{"type":"object","properties":{"deploymentId":{"$ref":"#/components/schemas/UUID"},"value":{"type":"string"}}}]},"LimitedManageStudy":{"allOf":[{"$ref":"#/components/schemas/Claim"},{"type":"object","properties":{"studyId":{"$ref":"#/components/schemas/UUID"},"value":{"type":"string"}}}]},"ManageDeployment":{"allOf":[{"$ref":"#/components/schemas/VirtualClaim"},{"type":"object","properties":{"deploymentId":{"$ref":"#/components/schemas/UUID"}}}]},"ManageStudy":{"allOf":[{"$ref":"#/components/schemas/Claim"},{"type":"object","properties":{"studyId":{"$ref":"#/components/schemas/UUID"},"value":{"type":"string"}}}]},"ProtocolOwner":{"allOf":[{"$ref":"#/components/schemas/Claim"},{"type":"object","properties":{"protocolId":{"$ref":"#/components/schemas/UUID"},"value":{"type":"string"}}}]},"VirtualClaim":{"allOf":[{"$ref":"#/components/schemas/Claim"}]},"DeploymentStatusCountsDto":{"type":"object","properties":{"invited":{"type":"integer","format":"int32"},"deployingDevices":{"type":"integer","format":"int32"},"running":{"type":"integer","format":"int32"},"stopped":{"type":"integer","format":"int32"},"total":{"type":"integer","format":"int32"}}},"InactiveDeploymentInfo":{"type":"object","properties":{"deploymentId":{"$ref":"#/components/schemas/UUID"},"dateOfLastDataUpload":{"oneOf":[{"$ref":"#/components/schemas/Instant"},{"type":"null"}]}}},"StudyOverview":{"type":"object","properties":{"studyId":{"$ref":"#/components/schemas/UUID"},"name":{"type":"string"},"createdOn":{"$ref":"#/components/schemas/Instant"},"studyProtocolId":{"oneOf":[{"$ref":"#/components/schemas/UUID"},{"type":"null"}]},"canSetInvitation":{"type":"boolean"},"canSetStudyProtocol":{"type":"boolean"},"canDeployToParticipants":{"type":"boolean"},"description":{"type":["string","null"]},"createdBy":{"type":["string","null"]}}},"ApplicationData":{"type":"object","properties":{"data":{"type":"string"}}},"AssignedTo":{},"DataTypeMetaData":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/NamespacedId"},"displayName":{"type":"string"},"timeType":{"type":"string","enum":["POINT","TIME_SPAN"]}}},"DataTypeSamplingSchemeObject":{"type":"object","properties":{"dataType":{"$ref":"#/components/schemas/DataTypeMetaData"},"default":{"$ref":"#/components/schemas/SamplingConfiguration"}}},"DeviceConfigurationObjectObject":{"type":"object","properties":{"roleName":{"type":"string"},"supportedDataTypes":{"type":"array","items":{"$ref":"#/components/schemas/NamespacedId"},"uniqueItems":true},"dataTypeSamplingSchemes":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/DataTypeSamplingSchemeObject"},"properties":{"keyOf":{"$ref":"#/components/schemas/Function1DataTypeSamplingSchemeObjectNamespacedId"},"values":{"type":"array","items":{"$ref":"#/components/schemas/DataTypeSamplingSchemeObject"}},"empty":{"type":"boolean"},"size":{"type":"integer","format":"int32"},"entries":{"type":"array","items":{"type":"object","properties":{"value":{"$ref":"#/components/schemas/DataTypeSamplingSchemeObject"},"key":{"$ref":"#/components/schemas/NamespacedId"}}},"uniqueItems":true},"keys":{"type":"array","items":{"$ref":"#/components/schemas/NamespacedId"},"uniqueItems":true}}},"defaultSamplingConfiguration":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/SamplingConfiguration"}},"registrationClass":{"$ref":"#/components/schemas/KClassObject"},"optional":{"type":"boolean"}}},"DeviceConnection":{"type":"object","properties":{"roleName":{"type":"string"},"connectedToRoleName":{"type":"string"}}},"ExpectedParticipantData":{"type":"object","properties":{"attribute":{"$ref":"#/components/schemas/ParticipantAttribute"},"assignedTo":{"$ref":"#/components/schemas/AssignedTo"},"inputDataType":{"$ref":"#/components/schemas/NamespacedId"}}},"Function1DataTypeSamplingSchemeObjectNamespacedId":{},"KCallableObject":{"type":"object","properties":{"suspend":{"type":"boolean"},"visibility":{"type":["string","null"],"enum":["PUBLIC","PROTECTED","INTERNAL","PRIVATE"]},"name":{"type":"string"},"typeParameters":{"type":"array","items":{"$ref":"#/components/schemas/KTypeParameter"}},"returnType":{"$ref":"#/components/schemas/KType"},"final":{"type":"boolean"},"open":{"type":"boolean"},"parameters":{"type":"array","items":{"$ref":"#/components/schemas/KParameter"}},"abstract":{"type":"boolean"},"annotations":{"type":"array","items":{}}}},"KClassObject":{"type":"object","properties":{"inner":{"type":"boolean"},"fun":{"type":"boolean"},"visibility":{"type":["string","null"],"enum":["PUBLIC","PROTECTED","INTERNAL","PRIVATE"]},"qualifiedName":{"type":["string","null"]},"sealedSubclasses":{"type":"array","items":{"$ref":"#/components/schemas/KClassObject"}},"members":{"type":"array","items":{"$ref":"#/components/schemas/KCallableObject"}},"companion":{"type":"boolean"},"data":{"type":"boolean"},"nestedClasses":{"type":"array","items":{"$ref":"#/components/schemas/KClassObject"}},"supertypes":{"type":"array","items":{"$ref":"#/components/schemas/KType"}},"typeParameters":{"type":"array","items":{"$ref":"#/components/schemas/KTypeParameter"}},"simpleName":{"type":["string","null"]},"final":{"type":"boolean"},"open":{"type":"boolean"},"constructors":{"type":"array","items":{"$ref":"#/components/schemas/KFunctionObject"}},"sealed":{"type":"boolean"},"abstract":{"type":"boolean"},"objectInstance":{"type":"null"},"value":{"type":"boolean"},"annotations":{"type":"array","items":{}}}},"KClassifier":{},"KFunctionObject":{"type":"object","properties":{"operator":{"type":"boolean"},"infix":{"type":"boolean"},"suspend":{"type":"boolean"},"inline":{"type":"boolean"},"external":{"type":"boolean"},"visibility":{"type":["string","null"],"enum":["PUBLIC","PROTECTED","INTERNAL","PRIVATE"]},"name":{"type":"string"},"typeParameters":{"type":"array","items":{"$ref":"#/components/schemas/KTypeParameter"}},"returnType":{"$ref":"#/components/schemas/KType"},"final":{"type":"boolean"},"open":{"type":"boolean"},"parameters":{"type":"array","items":{"$ref":"#/components/schemas/KParameter"}},"abstract":{"type":"boolean"},"annotations":{"type":"array","items":{}}}},"KParameter":{"type":"object","properties":{"vararg":{"type":"boolean"},"optional":{"type":"boolean"},"kind":{"type":"string","enum":["INSTANCE","CONTEXT","EXTENSION_RECEIVER","VALUE"]},"name":{"type":["string","null"]},"type":{"$ref":"#/components/schemas/KType"},"index":{"type":"integer","format":"int32"},"annotations":{"type":"array","items":{}}}},"KType":{"type":"object","properties":{"markedNullable":{"type":"boolean"},"arguments":{"type":"array","items":{"$ref":"#/components/schemas/KTypeProjection"}},"classifier":{"oneOf":[{"$ref":"#/components/schemas/KClassifier"},{"type":"null"}]},"annotations":{"type":"array","items":{}}}},"KTypeParameter":{"type":"object","properties":{"variance":{"type":"string","enum":["INVARIANT","IN","OUT"]},"reified":{"type":"boolean"},"upperBounds":{"type":"array","items":{"$ref":"#/components/schemas/KType"}},"name":{"type":"string"}}},"KTypeProjection":{"type":"object","properties":{"variance":{"type":["string","null"],"enum":["INVARIANT","IN","OUT"]},"type":{"oneOf":[{"$ref":"#/components/schemas/KType"},{"type":"null"}]}}},"Measure":{},"NamespacedId":{"type":"object","properties":{"namespace":{"type":"string"},"name":{"type":"string"}}},"ParticipantAttribute":{"type":"object","properties":{"inputDataType":{"$ref":"#/components/schemas/NamespacedId"}}},"ParticipantRole":{"type":"object","properties":{"role":{"type":"string"},"optional":{"type":"boolean"}}},"PrimaryDeviceConfigurationObjectObject":{"type":"object","properties":{"primaryDevice$dk_cachet_carp_common_carp_common":{"type":"boolean"},"roleName":{"type":"string"},"supportedDataTypes":{"type":"array","items":{"$ref":"#/components/schemas/NamespacedId"},"uniqueItems":true},"dataTypeSamplingSchemes":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/DataTypeSamplingSchemeObject"},"properties":{"keyOf":{"$ref":"#/components/schemas/Function1DataTypeSamplingSchemeObjectNamespacedId"},"values":{"type":"array","items":{"$ref":"#/components/schemas/DataTypeSamplingSchemeObject"}},"empty":{"type":"boolean"},"size":{"type":"integer","format":"int32"},"entries":{"type":"array","items":{"type":"object","properties":{"value":{"$ref":"#/components/schemas/DataTypeSamplingSchemeObject"},"key":{"$ref":"#/components/schemas/NamespacedId"}}},"uniqueItems":true},"keys":{"type":"array","items":{"$ref":"#/components/schemas/NamespacedId"},"uniqueItems":true}}},"defaultSamplingConfiguration":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/SamplingConfiguration"}},"registrationClass":{"$ref":"#/components/schemas/KClassObject"},"optional":{"type":"boolean"}}},"ProtocolOverview":{"type":"object","properties":{"ownerName":{"type":["string","null"]},"firstVersionCreatedDate":{"oneOf":[{"$ref":"#/components/schemas/Instant"},{"type":"null"}]},"lastVersionCreatedDate":{"oneOf":[{"$ref":"#/components/schemas/Instant"},{"type":"null"}]},"versionTag":{"type":"string"},"snapshot":{"$ref":"#/components/schemas/StudyProtocolSnapshot"}}},"SamplingConfiguration":{},"StudyProtocolSnapshot":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/UUID"},"createdOn":{"$ref":"#/components/schemas/Instant"},"version":{"type":"integer","format":"int32"},"ownerId":{"$ref":"#/components/schemas/UUID"},"name":{"type":"string"},"description":{"type":["string","null"]},"primaryDevices":{"type":"array","items":{"$ref":"#/components/schemas/PrimaryDeviceConfigurationObjectObject"},"uniqueItems":true},"connectedDevices":{"type":"array","items":{"$ref":"#/components/schemas/DeviceConfigurationObjectObject"},"uniqueItems":true},"connections":{"type":"array","items":{"$ref":"#/components/schemas/DeviceConnection"},"uniqueItems":true},"tasks":{"type":"array","items":{"$ref":"#/components/schemas/TaskConfigurationObject"},"uniqueItems":true},"triggers":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/TriggerConfigurationObject"}},"taskControls":{"type":"array","items":{"$ref":"#/components/schemas/TaskControl"},"uniqueItems":true},"participantRoles":{"type":"array","items":{"$ref":"#/components/schemas/ParticipantRole"},"uniqueItems":true},"assignedDevices":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"},"uniqueItems":true}},"expectedParticipantData":{"type":"array","items":{"$ref":"#/components/schemas/ExpectedParticipantData"},"uniqueItems":true},"applicationData":{"oneOf":[{"$ref":"#/components/schemas/ApplicationData"},{"type":"null"}]}}},"TaskConfigurationObject":{"type":"object","properties":{"measures":{"type":"array","items":{"$ref":"#/components/schemas/Measure"}},"name":{"type":"string"},"description":{"type":["string","null"]}}},"TaskControl":{"type":"object","properties":{"triggerId":{"type":"integer","format":"int32"},"taskName":{"type":"string"},"destinationDeviceRoleName":{"type":"string"},"control":{"type":"string","enum":["Start","Stop"]}}},"TriggerConfigurationObject":{"type":"object","properties":{"requiresPrimaryDevice":{"type":"boolean"},"sourceDeviceRoleName":{"type":"string"}}},"DailyDataStreamUploadDto":{"type":"object","properties":{"time":{"$ref":"#/components/schemas/Instant"},"value":{"type":"integer","format":"int64"}}},"StatisticsOverviewDto":{"type":"object","properties":{"totalLiveStudies":{"type":"integer","format":"int64"},"totalParticipants":{"type":"integer","format":"int64"},"totalResearchers":{"type":"integer","format":"int64"},"dailyDataStreamUploads":{"type":"array","items":{"$ref":"#/components/schemas/DailyDataStreamUploadDto"}},"studiesByApplications":{"type":"array","items":{"$ref":"#/components/schemas/StudiesByApplicationDto"}}}},"StudiesByApplicationDto":{"type":"object","properties":{"app":{"type":"string"},"value":{"type":"integer","format":"int64"}}},"LocationCoordinatesDto":{"type":"object","properties":{"latitude":{"type":"number","format":"double"},"longitude":{"type":"number","format":"double"}}},"DataPoint":{"type":"object","properties":{"createdBy":{"type":["string","null"]},"createdAt":{"type":["string","null"],"format":"date-time"},"updatedBy":{"type":["string","null"]},"updatedAt":{"type":["string","null"],"format":"date-time"},"id":{"type":["integer","null"],"format":"int32"},"deploymentId":{"type":["string","null"]},"carpHeader":{"oneOf":[{"$ref":"#/components/schemas/DataPointHeaderDto"},{"type":"null"}]},"carpBody":{"type":["object","null"],"additionalProperties":{}},"storageName":{"type":["string","null"]}}},"DataPointHeaderDto":{"type":"object","properties":{"studyId":{"type":["string","null"]},"userId":{"type":["string","null"]},"dataFormat":{"type":["object","null"],"additionalProperties":{}},"triggerId":{"type":["string","null"]},"deviceRoleName":{"type":["string","null"]},"uploadTime":{"type":"string","format":"date-time"},"startTime":{"type":"string","format":"date-time"},"endTime":{"type":"string","format":"date-time"}},"required":["dataFormat","endTime","startTime","studyId","userId"]},"DataStreamsSummaryDto":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/DateTaskQuantityTriple"}},"studyId":{"type":"string"},"deploymentId":{"type":["string","null"]},"participantId":{"type":["string","null"]},"scope":{"type":"string"},"type":{"type":"string"},"from":{"$ref":"#/components/schemas/Instant"},"to":{"$ref":"#/components/schemas/Instant"}}},"DateTaskQuantityTriple":{"type":"object","properties":{"date":{"$ref":"#/components/schemas/Instant"},"task":{"type":"string"},"quantity":{"type":"integer","format":"int64"}}},"ApiVersion":{"type":"object","properties":{"major":{"type":"integer","format":"int32"},"minor":{"type":"integer","format":"int32"}},"required":["major","minor"]},"BOOLEAN":{"allOf":[{"$ref":"#/components/schemas/PrimitiveKind"}]},"BYTE":{"allOf":[{"$ref":"#/components/schemas/PrimitiveKind"}]},"CHAR":{"allOf":[{"$ref":"#/components/schemas/PrimitiveKind"}]},"CLASS":{"allOf":[{"$ref":"#/components/schemas/StructureKind"}]},"CONTEXTUAL":{"allOf":[{"$ref":"#/components/schemas/SerialKind"}]},"CreateStudy":{"type":"object","properties":{"ownerId":{"$ref":"#/components/schemas/UUID"},"name":{"type":"string"},"description":{"type":"string"},"invitation":{"$ref":"#/components/schemas/StudyInvitation"},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerStudyStatus"}},"required":["apiVersion","name","ownerId","responseSerializer"]},"DOUBLE":{"allOf":[{"$ref":"#/components/schemas/PrimitiveKind"}]},"ENUM":{"allOf":[{"$ref":"#/components/schemas/SerialKind"}]},"FLOAT":{"allOf":[{"$ref":"#/components/schemas/PrimitiveKind"}]},"INT":{"allOf":[{"$ref":"#/components/schemas/PrimitiveKind"}]},"KSerializerStudyStatus":{"type":"object","properties":{"descriptor":{"$ref":"#/components/schemas/SerialDescriptor"}},"required":["descriptor"]},"LIST":{"allOf":[{"$ref":"#/components/schemas/StructureKind"}]},"LONG":{"allOf":[{"$ref":"#/components/schemas/PrimitiveKind"}]},"MAP":{"allOf":[{"$ref":"#/components/schemas/StructureKind"}]},"OBJECT":{"allOf":[{"$ref":"#/components/schemas/StructureKind"}]},"OPEN":{"allOf":[{"$ref":"#/components/schemas/PolymorphicKind"}]},"PolymorphicKind":{"allOf":[{"$ref":"#/components/schemas/SerialKind"}]},"PrimitiveKind":{"allOf":[{"$ref":"#/components/schemas/SerialKind"}]},"SEALED":{"allOf":[{"$ref":"#/components/schemas/PolymorphicKind"}]},"SHORT":{"allOf":[{"$ref":"#/components/schemas/PrimitiveKind"}]},"STRING":{"allOf":[{"$ref":"#/components/schemas/PrimitiveKind"}]},"SerialDescriptor":{"type":"object","properties":{"annotations":{"type":"array","items":{"type":"object"}},"serialName":{"type":"string"},"elementsCount":{"type":"integer","format":"int32"},"isInline":{"type":"boolean"},"kind":{"oneOf":[{"$ref":"#/components/schemas/CONTEXTUAL"},{"$ref":"#/components/schemas/ENUM"},{"$ref":"#/components/schemas/PolymorphicKind"},{"$ref":"#/components/schemas/PrimitiveKind"},{"$ref":"#/components/schemas/StructureKind"},{"$ref":"#/components/schemas/OPEN"},{"$ref":"#/components/schemas/SEALED"},{"$ref":"#/components/schemas/BOOLEAN"},{"$ref":"#/components/schemas/BYTE"},{"$ref":"#/components/schemas/CHAR"},{"$ref":"#/components/schemas/DOUBLE"},{"$ref":"#/components/schemas/FLOAT"},{"$ref":"#/components/schemas/INT"},{"$ref":"#/components/schemas/LONG"},{"$ref":"#/components/schemas/SHORT"},{"$ref":"#/components/schemas/STRING"},{"$ref":"#/components/schemas/CLASS"},{"$ref":"#/components/schemas/LIST"},{"$ref":"#/components/schemas/MAP"},{"$ref":"#/components/schemas/OBJECT"}]},"isNullable":{"type":"boolean"}},"required":["annotations","elementsCount","isInline","isNullable","kind","serialName"]},"SerialKind":{"type":"object"},"StructureKind":{"allOf":[{"$ref":"#/components/schemas/SerialKind"}]},"StudyInvitation":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"applicationData":{"type":"string"}},"required":["name"]},"SetInternalDescription":{"type":"object","properties":{"studyId":{"$ref":"#/components/schemas/UUID"},"name":{"type":"string"},"description":{"type":"string"},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerStudyStatus"}},"required":["apiVersion","name","responseSerializer","studyId"]},"GetStudyDetails":{"type":"object","properties":{"studyId":{"$ref":"#/components/schemas/UUID"},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerStudyDetails"}},"required":["apiVersion","responseSerializer","studyId"]},"KSerializerStudyDetails":{"type":"object","properties":{"descriptor":{"$ref":"#/components/schemas/SerialDescriptor"}},"required":["descriptor"]},"GetStudyStatus":{"type":"object","properties":{"studyId":{"$ref":"#/components/schemas/UUID"},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerStudyStatus"}},"required":["apiVersion","responseSerializer","studyId"]},"GetStudiesOverview":{"type":"object","properties":{"ownerId":{"$ref":"#/components/schemas/UUID"},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerListStudyStatus"}},"required":["apiVersion","ownerId","responseSerializer"]},"KSerializerListStudyStatus":{"type":"object","properties":{"descriptor":{"$ref":"#/components/schemas/SerialDescriptor"}},"required":["descriptor"]},"SetInvitation":{"type":"object","properties":{"studyId":{"$ref":"#/components/schemas/UUID"},"invitation":{"$ref":"#/components/schemas/StudyInvitation"},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerStudyStatus"}},"required":["apiVersion","invitation","responseSerializer","studyId"]},"All":{"allOf":[{"$ref":"#/components/schemas/AssignedTo"}]},"CustomParticipantAttribute":{"allOf":[{"$ref":"#/components/schemas/ParticipantAttribute"},{"type":"object","properties":{"input":{"$ref":"#/components/schemas/InputElementObject"}}}],"required":["input","inputDataType"]},"DataStream":{"allOf":[{"$ref":"#/components/schemas/Measure"},{"type":"object","properties":{"type":{"$ref":"#/components/schemas/NamespacedId"},"overrideSamplingConfiguration":{"$ref":"#/components/schemas/SamplingConfiguration"}}}],"required":["type"]},"DefaultParticipantAttribute":{"allOf":[{"$ref":"#/components/schemas/ParticipantAttribute"}],"required":["inputDataType"]},"InputElementObject":{"type":"object","properties":{"dataClass":{"$ref":"#/components/schemas/KClassObject"},"prompt":{"type":"string"}},"required":["dataClass","prompt"]},"Roles":{"allOf":[{"$ref":"#/components/schemas/AssignedTo"},{"type":"object","properties":{"roleNames":{"type":"array","items":{"type":"string"},"uniqueItems":true}}}],"required":["roleNames"]},"SetProtocol":{"type":"object","properties":{"studyId":{"$ref":"#/components/schemas/UUID"},"protocol":{"$ref":"#/components/schemas/StudyProtocolSnapshot"},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerStudyStatus"}},"required":["apiVersion","protocol","responseSerializer","studyId"]},"TriggerData":{"allOf":[{"$ref":"#/components/schemas/Measure"},{"type":"object","properties":{"triggerId":{"type":"integer","format":"int32"}}}],"required":["triggerId"]},"RemoveProtocol":{"type":"object","properties":{"studyId":{"$ref":"#/components/schemas/UUID"},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerStudyStatus"}},"required":["apiVersion","responseSerializer","studyId"]},"GoLive":{"type":"object","properties":{"studyId":{"$ref":"#/components/schemas/UUID"},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerStudyStatus"}},"required":["apiVersion","responseSerializer","studyId"]},"KSerializerBoolean":{"type":"object","properties":{"descriptor":{"$ref":"#/components/schemas/SerialDescriptor"}},"required":["descriptor"]},"Remove":{"type":"object","properties":{"studyId":{"$ref":"#/components/schemas/UUID"},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerBoolean"}},"required":["apiVersion","responseSerializer","studyId"]},"StudyStatus":{"type":"object","properties":{"name":{"type":"string"},"studyProtocolId":{"$ref":"#/components/schemas/UUID"},"createdOn":{"$ref":"#/components/schemas/Instant"},"canSetInvitation":{"type":"boolean"},"canSetStudyProtocol":{"type":"boolean"},"canDeployToParticipants":{"type":"boolean"},"studyId":{"$ref":"#/components/schemas/UUID"}},"required":["canDeployToParticipants","canSetInvitation","canSetStudyProtocol","createdOn","name","studyId"]},"StudyDetails":{"type":"object","properties":{"studyId":{"$ref":"#/components/schemas/UUID"},"ownerId":{"$ref":"#/components/schemas/UUID"},"name":{"type":"string"},"createdOn":{"$ref":"#/components/schemas/Instant"},"description":{"type":"string"},"invitation":{"$ref":"#/components/schemas/StudyInvitation"},"protocolSnapshot":{"$ref":"#/components/schemas/StudyProtocolSnapshot"}},"required":["createdOn","invitation","name","ownerId","studyId"]},"AddParticipantByEmailAddress":{"type":"object","properties":{"studyId":{"$ref":"#/components/schemas/UUID"},"email":{"$ref":"#/components/schemas/EmailAddress"},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerParticipant"}},"required":["apiVersion","email","responseSerializer","studyId"]},"EmailAddress":{"type":"object","properties":{"address":{"type":"string"}},"required":["address"]},"KSerializerParticipant":{"type":"object","properties":{"descriptor":{"$ref":"#/components/schemas/SerialDescriptor"}},"required":["descriptor"]},"AddParticipantByUsername":{"type":"object","properties":{"studyId":{"$ref":"#/components/schemas/UUID"},"username":{"$ref":"#/components/schemas/Username"},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerParticipant"}},"required":["apiVersion","responseSerializer","studyId","username"]},"Username":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"GetParticipant":{"type":"object","properties":{"studyId":{"$ref":"#/components/schemas/UUID"},"participantId":{"$ref":"#/components/schemas/UUID"},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerParticipant"}},"required":["apiVersion","participantId","responseSerializer","studyId"]},"GetParticipants":{"type":"object","properties":{"studyId":{"$ref":"#/components/schemas/UUID"},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerListParticipant"}},"required":["apiVersion","responseSerializer","studyId"]},"KSerializerListParticipant":{"type":"object","properties":{"descriptor":{"$ref":"#/components/schemas/SerialDescriptor"}},"required":["descriptor"]},"AssignedParticipantRoles":{"type":"object","properties":{"participantId":{"$ref":"#/components/schemas/UUID"},"assignedRoles":{"oneOf":[{"$ref":"#/components/schemas/All"},{"$ref":"#/components/schemas/Roles"}]}},"required":["assignedRoles","participantId"]},"InviteNewParticipantGroup":{"type":"object","properties":{"studyId":{"$ref":"#/components/schemas/UUID"},"group":{"type":"array","items":{"$ref":"#/components/schemas/AssignedParticipantRoles"},"uniqueItems":true},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerParticipantGroupStatus"}},"required":["apiVersion","group","responseSerializer","studyId"]},"KSerializerParticipantGroupStatus":{"type":"object","properties":{"descriptor":{"$ref":"#/components/schemas/SerialDescriptor"}},"required":["descriptor"]},"GetParticipantGroupStatusList":{"type":"object","properties":{"studyId":{"$ref":"#/components/schemas/UUID"},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerListParticipantGroupStatus"}},"required":["apiVersion","responseSerializer","studyId"]},"KSerializerListParticipantGroupStatus":{"type":"object","properties":{"descriptor":{"$ref":"#/components/schemas/SerialDescriptor"}},"required":["descriptor"]},"StopParticipantGroup":{"type":"object","properties":{"studyId":{"$ref":"#/components/schemas/UUID"},"groupId":{"$ref":"#/components/schemas/UUID"},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerParticipantGroupStatus"}},"required":["apiVersion","groupId","responseSerializer","studyId"]},"Participant":{"type":"object","properties":{"accountIdentity":{"$ref":"#/components/schemas/AccountIdentity"},"id":{"$ref":"#/components/schemas/UUID"}},"required":["accountIdentity","id"]},"Deployed":{"allOf":[{"$ref":"#/components/schemas/DeviceDeploymentStatus"}],"required":["canBeDeployed","canObtainDeviceDeployment","device"]},"DeployingDevices":{"allOf":[{"$ref":"#/components/schemas/StudyDeploymentStatus"}],"required":["createdOn","deviceStatusList","participantStatusList","remainingDevicesReadyToDeploy","remainingDevicesToRegister","studyDeploymentId"]},"DeviceDeploymentStatus":{"type":"object","properties":{"canObtainDeviceDeployment":{"type":"boolean"},"canBeDeployed":{"type":"boolean"},"device":{"$ref":"#/components/schemas/DeviceConfigurationObjectObject"}},"required":["canBeDeployed","canObtainDeviceDeployment","device"]},"Invited":{"allOf":[{"$ref":"#/components/schemas/StudyDeploymentStatus"}],"required":["createdOn","deviceStatusList","participantStatusList","remainingDevicesReadyToDeploy","remainingDevicesToRegister","studyDeploymentId"]},"NeedsRedeployment":{"allOf":[{"$ref":"#/components/schemas/NotDeployed"}],"required":["canBeDeployed","canObtainDeviceDeployment","device","isReadyForDeployment","remainingDevicesToRegisterBeforeDeployment","remainingDevicesToRegisterToObtainDeployment"]},"NotDeployed":{"allOf":[{"$ref":"#/components/schemas/DeviceDeploymentStatus"},{"type":"object","properties":{"isReadyForDeployment":{"type":"boolean"},"remainingDevicesToRegisterToObtainDeployment":{"type":"array","items":{"type":"string"},"uniqueItems":true},"remainingDevicesToRegisterBeforeDeployment":{"type":"array","items":{"type":"string"},"uniqueItems":true}}}],"required":["canBeDeployed","canObtainDeviceDeployment","device","isReadyForDeployment","remainingDevicesToRegisterBeforeDeployment","remainingDevicesToRegisterToObtainDeployment"]},"ParticipantGroupStatus":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/UUID"},"participants":{"type":"array","items":{"$ref":"#/components/schemas/Participant"},"uniqueItems":true}},"required":["id","participants"]},"ParticipantStatus":{"type":"object","properties":{"participantId":{"$ref":"#/components/schemas/UUID"},"assignedParticipantRoles":{"oneOf":[{"$ref":"#/components/schemas/All"},{"$ref":"#/components/schemas/Roles"}]},"assignedPrimaryDeviceRoleNames":{"type":"array","items":{"type":"string"},"uniqueItems":true}},"required":["assignedParticipantRoles","assignedPrimaryDeviceRoleNames","participantId"]},"Registered":{"allOf":[{"$ref":"#/components/schemas/NotDeployed"}],"required":["canBeDeployed","canObtainDeviceDeployment","device","isReadyForDeployment","remainingDevicesToRegisterBeforeDeployment","remainingDevicesToRegisterToObtainDeployment"]},"Running":{"allOf":[{"$ref":"#/components/schemas/StudyDeploymentStatus"}],"required":["createdOn","deviceStatusList","participantStatusList","remainingDevicesReadyToDeploy","remainingDevicesToRegister","startedOn","studyDeploymentId"]},"Stopped":{"allOf":[{"$ref":"#/components/schemas/StudyDeploymentStatus"},{"type":"object","properties":{"stoppedOn":{"$ref":"#/components/schemas/Instant"}}}],"required":["createdOn","deviceStatusList","participantStatusList","remainingDevicesReadyToDeploy","remainingDevicesToRegister","stoppedOn","studyDeploymentId"]},"StudyDeploymentStatus":{"type":"object","properties":{"remainingDevicesToRegister":{"type":"array","items":{"$ref":"#/components/schemas/DeviceConfigurationObjectObject"},"uniqueItems":true},"remainingDevicesReadyToDeploy":{"type":"array","items":{"$ref":"#/components/schemas/PrimaryDeviceConfigurationObjectObject"},"uniqueItems":true},"studyDeploymentId":{"$ref":"#/components/schemas/UUID"},"deviceStatusList":{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/Deployed"},{"$ref":"#/components/schemas/NotDeployed"},{"$ref":"#/components/schemas/NeedsRedeployment"},{"$ref":"#/components/schemas/Registered"},{"$ref":"#/components/schemas/Unregistered"}]}},"participantStatusList":{"type":"array","items":{"$ref":"#/components/schemas/ParticipantStatus"}},"createdOn":{"$ref":"#/components/schemas/Instant"},"startedOn":{"$ref":"#/components/schemas/Instant"}},"required":["createdOn","deviceStatusList","participantStatusList","remainingDevicesReadyToDeploy","remainingDevicesToRegister","studyDeploymentId"]},"Unregistered":{"allOf":[{"$ref":"#/components/schemas/NotDeployed"}],"required":["canBeDeployed","canObtainDeviceDeployment","device","isReadyForDeployment","remainingDevicesToRegisterBeforeDeployment","remainingDevicesToRegisterToObtainDeployment"]},"Add":{"type":"object","properties":{"protocol":{"$ref":"#/components/schemas/StudyProtocolSnapshot"},"versionTag":{"type":"string"},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerUnit"}},"required":["apiVersion","protocol","responseSerializer","versionTag"]},"KSerializerUnit":{"type":"object","properties":{"descriptor":{"$ref":"#/components/schemas/SerialDescriptor"}},"required":["descriptor"]},"AddVersion":{"type":"object","properties":{"protocol":{"$ref":"#/components/schemas/StudyProtocolSnapshot"},"versionTag":{"type":"string"},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerUnit"}},"required":["apiVersion","protocol","responseSerializer","versionTag"]},"KSerializerStudyProtocolSnapshot":{"type":"object","properties":{"descriptor":{"$ref":"#/components/schemas/SerialDescriptor"}},"required":["descriptor"]},"UpdateParticipantDataConfiguration":{"type":"object","properties":{"protocolId":{"$ref":"#/components/schemas/UUID"},"versionTag":{"type":"string"},"expectedParticipantData":{"type":"array","items":{"$ref":"#/components/schemas/ExpectedParticipantData"},"uniqueItems":true},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerStudyProtocolSnapshot"}},"required":["apiVersion","expectedParticipantData","protocolId","responseSerializer","versionTag"]},"GetBy":{"type":"object","properties":{"protocolId":{"$ref":"#/components/schemas/UUID"},"versionTag":{"type":"string"},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerStudyProtocolSnapshot"}},"required":["apiVersion","protocolId","responseSerializer"]},"GetAllForOwner":{"type":"object","properties":{"ownerId":{"$ref":"#/components/schemas/UUID"},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerListStudyProtocolSnapshot"}},"required":["apiVersion","ownerId","responseSerializer"]},"KSerializerListStudyProtocolSnapshot":{"type":"object","properties":{"descriptor":{"$ref":"#/components/schemas/SerialDescriptor"}},"required":["descriptor"]},"GetVersionHistoryFor":{"type":"object","properties":{"protocolId":{"$ref":"#/components/schemas/UUID"},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerListProtocolVersion"}},"required":["apiVersion","protocolId","responseSerializer"]},"KSerializerListProtocolVersion":{"type":"object","properties":{"descriptor":{"$ref":"#/components/schemas/SerialDescriptor"}},"required":["descriptor"]},"Unit":{"type":"object"},"ProtocolVersion":{"type":"object","properties":{"tag":{"type":"string"},"date":{"$ref":"#/components/schemas/Instant"}},"required":["date","tag"]},"CreateCustomProtocol":{"type":"object","properties":{"ownerId":{"$ref":"#/components/schemas/UUID"},"name":{"type":"string"},"customProtocol":{"type":"string"},"description":{"type":"string"},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerStudyProtocolSnapshot"}},"required":["apiVersion","customProtocol","name","ownerId","responseSerializer"]},"GetActiveParticipationInvitations":{"type":"object","properties":{"accountId":{"$ref":"#/components/schemas/UUID"},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerSetActiveParticipationInvitation"}},"required":["accountId","apiVersion","responseSerializer"]},"KSerializerSetActiveParticipationInvitation":{"type":"object","properties":{"descriptor":{"$ref":"#/components/schemas/SerialDescriptor"}},"required":["descriptor"]},"GetParticipantData":{"type":"object","properties":{"studyDeploymentId":{"$ref":"#/components/schemas/UUID"},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerParticipantData"}},"required":["apiVersion","responseSerializer","studyDeploymentId"]},"KSerializerParticipantData":{"type":"object","properties":{"descriptor":{"$ref":"#/components/schemas/SerialDescriptor"}},"required":["descriptor"]},"GetParticipantDataList":{"type":"object","properties":{"studyDeploymentIds":{"type":"array","items":{"$ref":"#/components/schemas/UUID"},"uniqueItems":true},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerListParticipantData"}},"required":["apiVersion","responseSerializer","studyDeploymentIds"]},"KSerializerListParticipantData":{"type":"object","properties":{"descriptor":{"$ref":"#/components/schemas/SerialDescriptor"}},"required":["descriptor"]},"Data":{"type":"object"},"SetParticipantData":{"type":"object","properties":{"studyDeploymentId":{"$ref":"#/components/schemas/UUID"},"data":{"type":"object","additionalProperties":true},"inputByParticipantRole":{"type":"string"},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerParticipantData"}},"required":["apiVersion","data","responseSerializer","studyDeploymentId"]},"ActiveParticipationInvitation":{"type":"object","properties":{"participation":{"$ref":"#/components/schemas/Participation"},"invitation":{"$ref":"#/components/schemas/StudyInvitation"},"assignedDevices":{"type":"array","items":{"$ref":"#/components/schemas/AssignedPrimaryDevice"},"uniqueItems":true}},"required":["assignedDevices","invitation","participation"]},"AssignedPrimaryDevice":{"type":"object","properties":{"device":{"$ref":"#/components/schemas/PrimaryDeviceConfigurationObjectObject"},"registration":{"$ref":"#/components/schemas/DeviceRegistration"}},"required":["device"]},"DeviceRegistration":{"type":"object","properties":{"registrationCreatedOn":{"$ref":"#/components/schemas/Instant"},"deviceDisplayName":{"type":"string"},"deviceId":{"type":"string"}},"required":["deviceId","registrationCreatedOn"]},"Participation":{"type":"object","properties":{"studyDeploymentId":{"$ref":"#/components/schemas/UUID"},"assignedRoles":{"oneOf":[{"$ref":"#/components/schemas/All"},{"$ref":"#/components/schemas/Roles"}]},"participantId":{"$ref":"#/components/schemas/UUID"}},"required":["assignedRoles","participantId","studyDeploymentId"]},"ParticipantData":{"type":"object","properties":{"studyDeploymentId":{"$ref":"#/components/schemas/UUID"},"common":{"type":"object","additionalProperties":true},"roles":{"type":"array","items":{"$ref":"#/components/schemas/RoleData"}}},"required":["common","roles","studyDeploymentId"]},"RoleData":{"type":"object","properties":{"roleName":{"type":"string"},"data":{"type":"object","additionalProperties":true}},"required":["data","roleName"]},"CreateStudyDeployment":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/UUID"},"protocol":{"$ref":"#/components/schemas/StudyProtocolSnapshot"},"invitations":{"type":"array","items":{"$ref":"#/components/schemas/ParticipantInvitation"}},"connectedDevicePreregistrations":{"type":"object","additionalProperties":true},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerStudyDeploymentStatus"}},"required":["apiVersion","connectedDevicePreregistrations","id","invitations","protocol","responseSerializer"]},"KSerializerStudyDeploymentStatus":{"type":"object","properties":{"descriptor":{"$ref":"#/components/schemas/SerialDescriptor"}},"required":["descriptor"]},"ParticipantInvitation":{"type":"object","properties":{"participantId":{"$ref":"#/components/schemas/UUID"},"assignedRoles":{"oneOf":[{"$ref":"#/components/schemas/All"},{"$ref":"#/components/schemas/Roles"}]},"identity":{"$ref":"#/components/schemas/AccountIdentity"},"invitation":{"$ref":"#/components/schemas/StudyInvitation"}},"required":["assignedRoles","identity","invitation","participantId"]},"KSerializerSetUUID":{"type":"object","properties":{"descriptor":{"$ref":"#/components/schemas/SerialDescriptor"}},"required":["descriptor"]},"RemoveStudyDeployments":{"type":"object","properties":{"studyDeploymentIds":{"type":"array","items":{"$ref":"#/components/schemas/UUID"},"uniqueItems":true},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerSetUUID"}},"required":["apiVersion","responseSerializer","studyDeploymentIds"]},"GetStudyDeploymentStatus":{"type":"object","properties":{"studyDeploymentId":{"$ref":"#/components/schemas/UUID"},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerStudyDeploymentStatus"}},"required":["apiVersion","responseSerializer","studyDeploymentId"]},"GetStudyDeploymentStatusList":{"type":"object","properties":{"studyDeploymentIds":{"type":"array","items":{"$ref":"#/components/schemas/UUID"},"uniqueItems":true},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerListStudyDeploymentStatus"}},"required":["apiVersion","responseSerializer","studyDeploymentIds"]},"KSerializerListStudyDeploymentStatus":{"type":"object","properties":{"descriptor":{"$ref":"#/components/schemas/SerialDescriptor"}},"required":["descriptor"]},"RegisterDevice":{"type":"object","properties":{"studyDeploymentId":{"$ref":"#/components/schemas/UUID"},"deviceRoleName":{"type":"string"},"registration":{"$ref":"#/components/schemas/DeviceRegistration"},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerStudyDeploymentStatus"}},"required":["apiVersion","deviceRoleName","registration","responseSerializer","studyDeploymentId"]},"UnregisterDevice":{"type":"object","properties":{"studyDeploymentId":{"$ref":"#/components/schemas/UUID"},"deviceRoleName":{"type":"string"},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerStudyDeploymentStatus"}},"required":["apiVersion","deviceRoleName","responseSerializer","studyDeploymentId"]},"GetDeviceDeploymentFor":{"type":"object","properties":{"studyDeploymentId":{"$ref":"#/components/schemas/UUID"},"primaryDeviceRoleName":{"type":"string"},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerPrimaryDeviceDeployment"}},"required":["apiVersion","primaryDeviceRoleName","responseSerializer","studyDeploymentId"]},"KSerializerPrimaryDeviceDeployment":{"type":"object","properties":{"descriptor":{"$ref":"#/components/schemas/SerialDescriptor"}},"required":["descriptor"]},"DeviceDeployed":{"type":"object","properties":{"studyDeploymentId":{"$ref":"#/components/schemas/UUID"},"primaryDeviceRoleName":{"type":"string"},"deviceDeploymentLastUpdatedOn":{"$ref":"#/components/schemas/Instant"},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerStudyDeploymentStatus"}},"required":["apiVersion","deviceDeploymentLastUpdatedOn","primaryDeviceRoleName","responseSerializer","studyDeploymentId"]},"Stop":{"type":"object","properties":{"studyDeploymentId":{"$ref":"#/components/schemas/UUID"},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerStudyDeploymentStatus"}},"required":["apiVersion","responseSerializer","studyDeploymentId"]},"PrimaryDeviceDeployment":{"type":"object","properties":{"deviceConfiguration":{"$ref":"#/components/schemas/PrimaryDeviceConfigurationObjectObject"},"registration":{"$ref":"#/components/schemas/DeviceRegistration"},"connectedDevices":{"type":"array","items":{"$ref":"#/components/schemas/DeviceConfigurationObjectObject"},"uniqueItems":true},"connectedDeviceRegistrations":{"type":"object","additionalProperties":true},"tasks":{"type":"array","items":{"$ref":"#/components/schemas/TaskConfigurationObject"},"uniqueItems":true},"triggers":{"type":"object","additionalProperties":true},"taskControls":{"type":"array","items":{"$ref":"#/components/schemas/TaskControl"},"uniqueItems":true},"expectedParticipantData":{"type":"array","items":{"$ref":"#/components/schemas/ExpectedParticipantData"},"uniqueItems":true},"applicationData":{"type":"string"},"lastUpdatedOn":{"$ref":"#/components/schemas/Instant"},"runtimeDeviceInfo":{"type":"array","items":{"$ref":"#/components/schemas/RuntimeDeviceInfo"}}},"required":["connectedDeviceRegistrations","connectedDevices","deviceConfiguration","expectedParticipantData","lastUpdatedOn","registration","runtimeDeviceInfo","taskControls","tasks","triggers"]},"RuntimeDeviceInfo":{"type":"object","properties":{"configuration":{"$ref":"#/components/schemas/DeviceConfigurationObjectObject"},"isConnectedDevice":{"type":"boolean"},"registration":{"$ref":"#/components/schemas/DeviceRegistration"},"defaultSamplingConfiguration":{"type":"object","additionalProperties":true},"tasks":{"type":"array","items":{"$ref":"#/components/schemas/TaskConfigurationObject"},"uniqueItems":true}},"required":["configuration","defaultSamplingConfiguration","isConnectedDevice","tasks"]},"DataStreamId":{"type":"object","properties":{"studyDeploymentId":{"$ref":"#/components/schemas/UUID"},"deviceRoleName":{"type":"string"},"dataType":{"$ref":"#/components/schemas/NamespacedId"}},"required":["dataType","deviceRoleName","studyDeploymentId"]},"DataStreamsConfiguration":{"type":"object","properties":{"studyDeploymentId":{"$ref":"#/components/schemas/UUID"},"expectedDataStreams":{"type":"array","items":{"$ref":"#/components/schemas/ExpectedDataStream"},"uniqueItems":true},"expectedDataStreamIds":{"type":"array","items":{"$ref":"#/components/schemas/DataStreamId"},"uniqueItems":true}},"required":["expectedDataStreamIds","expectedDataStreams","studyDeploymentId"]},"ExpectedDataStream":{"type":"object","properties":{"deviceRoleName":{"type":"string"},"dataType":{"$ref":"#/components/schemas/NamespacedId"}},"required":["dataType","deviceRoleName"]},"OpenDataStreams":{"type":"object","properties":{"configuration":{"$ref":"#/components/schemas/DataStreamsConfiguration"},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerUnit"}},"required":["apiVersion","configuration","responseSerializer"]},"AppendToDataStreams":{"type":"object","properties":{"studyDeploymentId":{"$ref":"#/components/schemas/UUID"},"batch":{"$ref":"#/components/schemas/DataStreamBatch"},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerUnit"}},"required":["apiVersion","batch","responseSerializer","studyDeploymentId"]},"DataStreamBatch":{"type":"object","properties":{"isEmpty":{"type":"boolean"},"sequences":{"$ref":"#/components/schemas/SequenceDataStreamSequenceObject"}},"required":["isEmpty","sequences"]},"SequenceDataStreamSequenceObject":{"type":"object"},"DataStreamBatchSerializer":{"type":"object","properties":{"descriptor":{"$ref":"#/components/schemas/SerialDescriptor"}},"required":["descriptor"]},"GetDataStream":{"type":"object","properties":{"dataStream":{"$ref":"#/components/schemas/DataStreamId"},"fromSequenceId":{"type":"integer","format":"int64"},"toSequenceIdInclusive":{"type":"integer","format":"int64"},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/DataStreamBatchSerializer"}},"required":["apiVersion","dataStream","fromSequenceId","responseSerializer"]},"CloseDataStreams":{"type":"object","properties":{"studyDeploymentIds":{"type":"array","items":{"$ref":"#/components/schemas/UUID"},"uniqueItems":true},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerUnit"}},"required":["apiVersion","responseSerializer","studyDeploymentIds"]},"RemoveDataStreams":{"type":"object","properties":{"studyDeploymentIds":{"type":"array","items":{"$ref":"#/components/schemas/UUID"},"uniqueItems":true},"apiVersion":{"$ref":"#/components/schemas/ApiVersion"},"responseSerializer":{"$ref":"#/components/schemas/KSerializerSetUUID"}},"required":["apiVersion","responseSerializer","studyDeploymentIds"]}},"securitySchemes":{"bearer":{"type":"oauth2","description":"Provide the username and password of the user","scheme":"bearer","bearerFormat":"JWT","flows":{"password":{"tokenUrl":"https://dev.carp.dk/auth/realms/Carp/protocol/openid-connect/token"}}}}}}