What JSON attributes to we need to send to the API to register an existing participant to a protocol?
Where can I find documentation for this?
Thank you.
Hi @Kenneth_Buck,
You can register existing participant to another protocol using REST api as below:
URL: http://localhost:8080/openspecimen/rest/ng/collection-protocol-registrations/
Method: POST
Content-Type: application/json
Payload JSON:
{ "participant": { "id":5721 // existing participant id }, "registrationDate":"2016-08-26", // in your date format "cpId":411, // Collection protocol id in which you wants to register "ppid":"PPID09" }
You can refer the documentation on wiki page.