Versions Compared

Key

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

openspecimen/rest/ng/distributionprotocols

...

Below are the attributes which need to be sent in the request body:

Parameter
Details
principalInvestigatorName of investigator
titleTitle of distribution protocol
shortTitleShort Title title of distribution protocol
irbId [optional]IRB ID of of distribution protocol
startDateStarting date of distribution protocol
anticipatedSpecimenCountTotal count of specimen
descriptionUrl [optional]

URL of distribution protocol description

activityStatus

Defines the status of a distribution protocol record

{active, closed, pending, disabled}

...

URLhttp://<host>:<port>/openspecimen/rest/ng/distributionprotocols
MethodPOST
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 created successfully
400All requestsInvalid parameters, e.g  duplicate 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