http[data-colorid=b998410kpu]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=b998410kpu]{color:#ffac31}[data-colorid=x0szjt8my7]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=x0szjt8my7]{color:#ffac31}[data-colorid=pvhgyxb9o5]{color:#4488aa} html[data-color-mode=dark] [data-colorid=pvhgyxb9o5]{color:#5599bb}[data-colorid=rult3dfwa2]{color:#4488aa} html[data-color-mode=dark] [data-colorid=rult3dfwa2]{color:#5599bb}[data-colorid=zdgrothk7x]{color:#4488aa} html[data-color-mode=dark] [data-colorid=zdgrothk7x]{color:#5599bb}[data-colorid=l0hoijh25i]{color:#4488aa} html[data-color-mode=dark] [data-colorid=l0hoijh25i]{color:#5599bb}[data-colorid=qn6c5brbyp]{color:#4488aa} html[data-color-mode=dark] [data-colorid=qn6c5brbyp]{color:#5599bb}[data-colorid=jt96d4hxx3]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=jt96d4hxx3]{color:#ffac31}[data-colorid=tq1von578d]{color:#4488aa} html[data-color-mode=dark] [data-colorid=tq1von578d]{color:#5599bb}[data-colorid=eh91975opr]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=eh91975opr]{color:#ffac31}[data-colorid=ves03tedpr]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=ves03tedpr]{color:#ffac31}[data-colorid=zysg8j4nze]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=zysg8j4nze]{color:#ffac31}[data-colorid=bf4jjk0x19]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=bf4jjk0x19]{color:#ffac31}[data-colorid=qzgib3kmv3]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=qzgib3kmv3]{color:#ffac31}[data-colorid=jn29zbg9zm]{color:#4488aa} html[data-color-mode=dark] [data-colorid=jn29zbg9zm]{color:#5599bb}[data-colorid=ef8ojqsmk8]{color:#770088} html[data-color-mode=dark] [data-colorid=ef8ojqsmk8]{color:#ee77ff}[data-colorid=vu54hvk0f7]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=vu54hvk0f7]{color:#ffac31}[data-colorid=m4rsa10suv]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=m4rsa10suv]{color:#ffac31}[data-colorid=bh86myokij]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=bh86myokij]{color:#ffac31}[data-colorid=emkinfdwz7]{color:#4488aa} html[data-color-mode=dark] [data-colorid=emkinfdwz7]{color:#5599bb}[data-colorid=uog905gfe0]{color:#4488aa} html[data-color-mode=dark] [data-colorid=uog905gfe0]{color:#5599bb}[data-colorid=fout4hr76w]{color:#4488aa} html[data-color-mode=dark] [data-colorid=fout4hr76w]{color:#5599bb}[data-colorid=x3t2fooc7n]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=x3t2fooc7n]{color:#ffac31}[data-colorid=nqhcsrp669]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=nqhcsrp669]{color:#ffac31}[data-colorid=xdlnq815k4]{color:#4488aa} html[data-color-mode=dark] [data-colorid=xdlnq815k4]{color:#5599bb}[data-colorid=gx6xn4t1ab]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=gx6xn4t1ab]{color:#ffac31}[data-colorid=xscym3k89b]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=xscym3k89b]{color:#ffac31}[data-colorid=nfd726cqkx]{color:#ce7b00} html[data-color-mode=dark] [data-colorid=nfd726cqkx]{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 site,repository,laboratory,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 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 |
| { "name" : "Pune", "coordinatorCollection" : [ { "loginName" : "admin@admin.com", "domainName" :"catissue"}], "type" : "Collection Site", "emailAddress" : "admin@admin.com", "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 |