...
URL | openspecimen/rest/ng/collection-protocol-registrations/ |
Request type | application/json |
Method | POST |
json | { "participant":{ "id":2 }, "cpId":1, "ppid":"ASCI123", "activityStatus":"Active", "registrationDate":"2014-04-21" } |
Response | { "id":5, "participant":{ "id":2 }, "cpId":1, "ppid":"ASCI123", "activityStatus":"Active", "registrationDate":"2014-04-211398105000000" } |
Error Cases :
code | Applies to | Status Message |
---|---|---|
200 | All resources | Participant registered successfully |
400 | All requests | Invalid parameters, e.g duplicate UID, 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 |