catissuecore/rest/ng/collection-protocols/{cpIdid}
Use this resource for update the Collection Protocol. Use 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 | |
---|---|---|
title | Collection Collection protocol title. Unique Should be unique in the application | |
shortTitle | Collection protocol short title. Unique Should be unique in the application | |
code[optional] | Collection protocol code | |
startDate[optional] | Collection protocol starting date | |
endDate[optional] | Collection protocol end dateprincipalInvestigatorId. If given then, the endDate should be later than start date. | |
principalInvestigator | Principal investigator on of CP Mainly contains following parameters : loginName : User login name. For this specified user must be present in application. domainName: Name of domain to which user belongs to. By default it will be catissue. | cpSiteRoles |
coordinators [optional] | Collection of coordinators. It is collection of Sites and Roles with respect to CPuser info mainly contains following parameters : loginName : User login name. For this specified user must be present in application. domainName: Name of domain to which user belongs to. By default it will be none. i.e. Blank collectioncatissue. | |
irbId[optional] | Ethics approval id | |
anticipatedParticipantsCount[optional] | Anticipated participants count | |
activityStatus | Activity status of a collection protocol | |
visitNameFmt[optional] | Visit name format | |
specimenLabelFmt[optional] | Specimen label format | |
derivedLabelFormat[optional] | Derived label format | |
aliquotLabelFormat[optional] | Aliquot label format | |
ppIdFormat[optional] | PPId format | |
cpSites | It is collection of Sites. Mainly contains following parameters : roleName : Role of user like Scientist, Admin etcsiteName: Site name. For this attribute role Site must be present in application.siteName: Site name. For this attribute Site must be present in code[optional]: Site code
| |
manualPpidEnabled[optional] | User inputs allowed for ppid | |
manualVisitNameEnabled[optional] | User inputs allowed for visit name | |
manualSpecLabelEnabled[optional] | User inputs allowed for specimen label |
Use this URL to update collection protocol in caTissue application.
...
http[s]:<host>:<port>/catissuecore/rest/ng/collection-protocols/{cpId}
Use this URL to update collection protocol in caTissue application.
id}
Result:
The response of this request will contains the details of the updated collection protocol.
Below is the example of the update collection protocol:
URL |
2 | |||||||||||||
Method | PUT | |||||||||||||
Request | application/json | |||||||||||||
json |
{
"shortTitle": "CpM", "startDate" : "2014-07-23", "endDate" : "2018-07-23", "principalInvestigator" : {"loginName" : "admin@admin.com", "domainName" :"catissue"}, "cpSiteRoles" : { "siteName" : "My Site", "roleName" : "Scientist" } } | Response |
| |||||||||||
Response |
|
Error Cases :
code | Applies to | Status Message |
---|---|---|
200 | All resources | Collection Protocol has been updated successfully |
400 | All requests | Invalid parameters, e.g duplicate CP title, blank CP Title etc |
401 | All requests | Authorization failed, User doesn’t have Authority |
404 | All requests | CP not found, CP with given details not present in the system |
500 | All requests | Internal server error, Encountered server error while performing operations |