Versions Compared

Key

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

This page contains documentation for create specimen list API.

 

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

...

Please find request, response details below. 

URLhttp://<host>:<port>/catissuecore/rest/ng/specimen-lists
MethodPOST
Content-Typeapplication/json
Request

{

     "label":"Brain Cancer CP - C123 - S1",

     "sharedWith":[{"id":2},{"id":3}],

     "specimens":[{"id":12},{"id":13}]

}

Response{
       "status": "OK",
       "message": null,
       "exception": null,
       "erroneousFields": null,
       "specimenListDetails":
       {
           "id": 49,
           "label": "Brain Cancer CP - C123 - S1",
           "owner":
           {
               "id": 1,
               "firstName": "current-user",
               "lastName": "current-user",
               "loginName": "currentuser@example.com"
           },
           "sharedWith":
           [
               {
                   "id": 3,
                   "firstName": "tech",
                   "lastName": "tech",
                   "loginName": "tech@tech.com"
               },
               {
                   "id": 2,
                   "firstName": "super",
                   "lastName": "super",
                   "loginName": "super@super.com"
               }
           ],
           "specimens":
           [
               {
                   "id": 12,
                   "label": "2"
               },
               {
                   "id": 13,
                   "label": "3"
               }
           ]
       }
    }

...