Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

This API is available for Registering a participant

List of mandatory fields:

  1. cpId
  2. ppId
  3. barcode
  4. activityStatus
  5. registrationDate
URLcatissuecore/rest/ng/collection-protocols/{cp_Id}/registrations
Request typeapplication/json
MethodPOST
json

{

   "participantDetail":{

      "id":2

   },

   "cpId":1,

   "ppid":"ASCI123",

   "barcode":"barcode1",

   "activityStatus":"Active",

   "registrationDate":"Jul 1, 2014 8:27:41 PM"

}

Response

{

   "id":5,

   "participantDetail":{

      "id":2

   },

   "cpId":1,

   "ppid":"ASCI123",

   "barcode":"barcode1",

   "activityStatus":"Active",

   "registrationDate":"MAY 1, 2014 8:27:41 PM"

}

 

Error Cases :

code
Applies to
Status Message
200All resourcesParticipant registered successfully
400All requestsInvalid parameters, e.g  duplicate barcode, duplicate PPID etc
401All requestsAuthorization failed, User doesn’t have Authority to register Participant for the given collection protocol
500All requestsInternal server error, Encountered server error while performing operations
  • No labels