Leave a comment at the end of this page or email contact@krishagni.com
Collection Protocol Groups (CPG)
Introduction
From v6.2, similar collection protocols (belonging to a site or department, having the same workflows, forms, and data fields) can be moved under a cp group. (Refer to https://openspecimen.atlassian.net/wiki/x/NQBcGw for more information)
Adding CPs under a CPG
URL: http[s]:<host>:<port>/openspecimen/rest/ng/collection-protocol-groups/{id}
({id} → This is the identifier of the Collection Protocol Group)
Use this resource to add collection protocols under a collection protocol group. Use the HTTP PUT method to call this API by passing the below details in JSON format.
Below are the attributes which need to be sent in the request body:
Parameter | Details |
---|---|
name | Name of the collection protocol group (Optional) |
activityStatus | Activity status of the collection protocol group (Optional) |
cps | List of collection protocol(s) that should be present in the mentioned collection protocol group |
Example
Response code
Code | Applies to | Status Message |
---|---|---|
200 | All resources | Collection protocols successfully added to the group. |
400 | All requests | Invalid parameters. (Ex: Cp group does not exist) |
401 | All requests | Authorization failed, the user doesn’t have authority. |
500 | All requests | Internal server error, encountered server error while performing operations. |
Leave a comment at the end of this page or email contact@krishagni.com