This API is available for Registering a participant
List of mandatory fields:
- participantDetail
- cpId
- ppId
- barcode
- activityStatus
- registrationDate
URL | catissuecore/rest/ng/collection-protocols/{cp_Id}/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" } |
Error Cases :
code | Applies to | Status Message |
---|---|---|
200 | All resources | Participant registered successfully |
400 | All requests | Invalid parameters, e.g duplicate barcode, 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 |