Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

http[s]:<host>:<port>/catissuecoreopenspecimen/rest/ng/distributionprotocols/title={distributionprotocolTitle}

or

http[s]:<host>:<port>/catissuecoreopenspecimen/rest/ng/distributionprotocols/{distributionprotocolId}

Use this resource to update  distribution protocol in the caTissue openSpecimen application. Use HTTP PUT method to call this API by passing the below details in JSON format.

...

Parameter
Details
Ididentifier of distribution protocol
Principal InvestigatorName of investigator
TitleTitle of distribution protocol
Short TitleShort Title of distribution protocol
IRB ID [optional]IRB ID of of distribution protocol
Start DateStarting date of distribution protocol
Number of Specimen AnticipatedTotal count of specimen
Description URL [optional]

URL of distribution protocol description

 

http[s]:<host>:<port>/catissuecoreopenspecimen/rest/ng/distributionprotocols/title={distributionprotocolTitle}

or

http[s]:<host>:<port>/catissuecoreopenspecimen/rest/ng/distributionprotocols/{distributionprotocolId}

Use this URL to update distribution protocol in caTissue openSpecimen application.

 

Result:

The response of this request will contains the details of the updated distribution protocol.

...

 

URL

http://<host>:<port>/catissuecoreopenspecimen/rest/ng/distributionprotocols/title={distributionprotocolTitle}

or

http://<host>:<port>/catissuecoreopenspecimen/rest/ng/distributionprotocols/{distributionprotocolId}

MethodPUT
Requestapplication/json
json

{
"principalInvestigator" : {"loginName" : "admin@admin.com", "domainName" :"catissue"},
"title" : "DP Protocol",
"shortTitle" : "DP Pro",
"irbId" : "IRB555571",
"startDate" : "2014-06-13",
"descriptionUrl" : "www.simplepr.com",
"anticipatedSpecimenCount" : 20,
"activityStatus" : "Active"
}

Response

{

id20
principalInvestigator
{
loginName"admin@admin.com"
domainName"catissue"
}
-
title"DP Protocol"
shortTitle"DP Pro"
irbId"IRB555571"
startDate1402617600000
anticipatedSpecimenCount20
descriptionUrl"www.simplepr.com"
activityStatus"Active"
}

 

Error Cases :

code
Applies to
Status Message
200All resourcesDistribution Protocol has been update successfully
400All requestsInvalid parameters, e.g  duplicate Protocol Name, blank Protocol Name etc
401All requestsAuthorization failed, User doesn't have Authority
500All requestsInternal server error, Encountered server error while performing operations