This API is available for Registering a participant
List of mandatory fields:
- participantDetail
- cpId
- ppId
- barcode
- activityStatus
- registrationDate
...
Below are the attributes which needs to be send along with the request body:
Parameter | Details | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
participant | Details of the participant which is being registered.
| ||||||||||||||||||||||||||||||||||
cpId | Identifier of the protocol to which the participant is being registered. | ||||||||||||||||||||||||||||||||||
cpTitle | Title of the protocol to which the participant is being registered. | ||||||||||||||||||||||||||||||||||
cpShortTitle | ShortTitle of the protocol to which the participant is being registered. | ||||||||||||||||||||||||||||||||||
ppid | Protocol Participant Identifier, this is the identifier to uniquely identify the participant with in a protocol. Note: If PPID is set to auto-generated at protocol level, then please leave this attribute blank. | ||||||||||||||||||||||||||||||||||
registrationDate | Date of the registration of participant |
URL | openspecimen/rest/ng/collection-protocols/{cp_Id}/-protocol-registrations |
Request type | application/json |
Method | POST |
json | { "participantDetail":{ "id":2 }, "cpId":1, "ppid":"ASCI123", "barcode":"barcode1 ", "activityStatus":"Active", "registrationDate":"2014-04-21" } |
Response | { "id":5, "participantDetail":{ "id":2 }, "cpId":1, "ppid":"ASCI123", "barcode ":"barcode1", "activityStatus":"Active", "registrationDate":"2014-04-21" } |
...
code | Applies to | Status Message |
---|---|---|
200 | All resources | Participant registered successfully |
400 | All requests | Invalid parameters, e.g duplicate barcodeUID, duplicate PPID etc |
401 | All requests | Authorization failed, User doesn’t have Authority to register Participant for the given collection protocol |
500 | All requests | Internal server error, Encountered server error while performing operations |