http[data-colorid=q3hxg98nab]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=q3hxg98nab]{color:#ffac31}[data-colorid=j4y4ybfuyj]{color:#4488aa} html[data-color-mode=dark] [data-colorid=j4y4ybfuyj]{color:#5599bb}[data-colorid=edhojsl1r9]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=edhojsl1r9]{color:#ffac31}[data-colorid=res34t83jn]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=res34t83jn]{color:#ffac31}[data-colorid=zz78vahhi6]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=zz78vahhi6]{color:#ffac31}[data-colorid=svldzki4qz]{color:#4488aa} html[data-color-mode=dark] [data-colorid=svldzki4qz]{color:#5599bb}[data-colorid=a2u2tcr5ml]{color:#4488aa} html[data-color-mode=dark] [data-colorid=a2u2tcr5ml]{color:#5599bb}[data-colorid=lawj7rgree]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=lawj7rgree]{color:#ffac31}[data-colorid=rvoaicvepe]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=rvoaicvepe]{color:#ffac31}[data-colorid=zumyaiwnhm]{color:#4488aa} html[data-color-mode=dark] [data-colorid=zumyaiwnhm]{color:#5599bb}[data-colorid=n7gkwn92f8]{color:#770088} html[data-color-mode=dark] [data-colorid=n7gkwn92f8]{color:#ee77ff}[data-colorid=rdodd0c811]{color:#4488aa} html[data-color-mode=dark] [data-colorid=rdodd0c811]{color:#5599bb}[data-colorid=dmoj1o2xxn]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=dmoj1o2xxn]{color:#ffac31}[data-colorid=gdjr08t2jn]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=gdjr08t2jn]{color:#ffac31}[data-colorid=wmpbf3cx20]{color:#4488aa} html[data-color-mode=dark] [data-colorid=wmpbf3cx20]{color:#5599bb}[data-colorid=o0p39p79kz]{color:#4488aa} html[data-color-mode=dark] [data-colorid=o0p39p79kz]{color:#5599bb}[data-colorid=gq6m52lbcs]{color:#4488aa} html[data-color-mode=dark] [data-colorid=gq6m52lbcs]{color:#5599bb}[data-colorid=jiyo2fpse5]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=jiyo2fpse5]{color:#ffac31}[data-colorid=l10ciol36f]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=l10ciol36f]{color:#ffac31}[data-colorid=mtsox7hiec]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=mtsox7hiec]{color:#ffac31}[data-colorid=fuvhpazwid]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=fuvhpazwid]{color:#ffac31}[data-colorid=icc19ey43n]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=icc19ey43n]{color:#ffac31}[data-colorid=vnieo1c625]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=vnieo1c625]{color:#ffac31}[data-colorid=v4ujg0xkv3]{color:#4488aa} html[data-color-mode=dark] [data-colorid=v4ujg0xkv3]{color:#5599bb}[data-colorid=zr71wktlba]{color:#4488aa} html[data-color-mode=dark] [data-colorid=zr71wktlba]{color:#5599bb}[data-colorid=rsplo8z4k7]{color:#4488aa} html[data-color-mode=dark] [data-colorid=rsplo8z4k7]{color:#5599bb}[data-colorid=sw6lsclt3f]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=sw6lsclt3f]{color:#ffac31}catissuecores]:<host>:<port>/openspecimen/rest/ng/sites
Use this resource to create new Site site in the caTissue applicationopenSpecimen application. Use HTTP POST method to call this API by passing the below details in JSONformatJSON format.
Below are the attributes which need to be sent in the request body:
Parameter | Details |
---|---|
name | Name of the physical location.coordinatorCollection |
instituteName | Name of the institute which site is belongs to |
coordinators | Collection of user info object. UserInfo User Info contains Login Name and Domain Name |
type | Function of the site. It could be collection, storing, experimentation or it could be unspecified { Collection Sitecollection site,Repositoryrepository,Laboratorylaboratory,Not Specified not specified } |
activityStatus | Defines the status of a Site site record {active, closed, pending, disabled} |
street | Name of street to which the site belongs. |
city | Name of city to which the site belongs. |
state [optional] | Name of the state to which the site belongs |
country | Name of the country to which the site belongs |
zipCode | Zip Code of location |
faxNumber [optional] | Fax number of the site |
phoneNumber [optional] | Phone number of the site |
address | Address of the site |
http[s]:<host>:<port>/catissuecoreopenspecimen/rest/ng/sites
Use this URL to add site in caTissue openSpecimen application.
Result:
The response of this request will contains the details of the created site.
...
URL | http://<host>:<port>/ catissuecoreopenspecimen/rest/ng/sites | |||||||||||||
Method | POST | |||||||||||||
Request | application/json | |||||||||||||
json |
"coordinatorCollection" : [ { "loginName" : "admin@admin.com", "domainName" :"catissue"}], "type" : "Collection Site", "activityStatus" : "Active", "street" : "SB Road", "city" : "Pune", "state" : "Maharashtra", "country" : "India" , "zipCode" : "412312", "faxNumber" : "123321", "phoneNumber" : "213434324" } | Response |
| |||||||||||
Response |
|
Error Cases :
code | Applies to | Status Message |
---|---|---|
200 | All resources | Site has been created successfully |
400 | All requests | Invalid parameters, e.g duplicate Site Name, blank Site Name, blank Site Type etc |
401 | All requests | Authorization failed, User user doesn't have Authority |
500 | All requests | Internal server error, Encountered server error while performing operations |