Versions Compared

Key

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

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

or

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

Use this resource to patch distribution protocol in the caTissue openSpecimen application. Use HTTP PATCH 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
Ididentifier of distribution protocol
Principal InvestigatorprincipalInvestigatorName of investigator
TitletitleTitle of distribution protocolShort Title
shortTitleShort Title title of distribution protocol
IRB ID irbId [optional]IRB ID of of distribution protocol
Start DatestartDateStarting date of distribution protocol
Number of Specimen AnticipatedanticipatedSpecimenCountTotal count of specimen
Description URL descriptionUrl [optional]

URL of distribution protocol description

...

activityStatus

Defines the status of a distribution protocol record

{active, closed, pending, disabled}

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

or

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

Use this URL to update distribution protocol in caTissue application.

 

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

 

Result:

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

...

URL

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

or

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

Use this URL to update distribution protocol in caTissue application.

 

MethodPUT
Requestapplication/json
json

{

"activityStatus" : "Active"

}

Response

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

 

Error Cases :

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