Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Summary

This page contains documentation for sharing a specimen-list with other user. A specimen list cannot be shared with self. It has to be shared with other users.

Request Details

Parameter
Details
specimenListIdIdentifier of specimen list.
operationCan be one of the following. UPDATE , REMOVE , ADD . Using UPDATE will clear off the existing list of shared users and add the new users specified in payload. Using ADD will append the users to existing shared list. Using REMOVE will remove the users mentioned in payload from the existing list. This is optional, if this field is not mentioned, default value is taken as UPDATE.

 

Result

Response contains summary of users with whom the list is shared in case of UPDATE operation. In case of ADD operation the response is summary of users that have been newly added, similarly in case of REMOVE response is summary of users whose access has been revoked from the specimen list.

URLhttp://<host>:<port>/catissuecore/rest/ng/specimen-lists/{specimenListId}/users?operation=[UPDATE|REMOVE|ADD]
MethodPUT
Content-Typeapplication/json
Request[ 17 , 15 ,16 ]
Response[
    {
        "id": 17,
        "firstName": "James",
        "lastName": "Smith",
        "loginName": "James.Smith@example.com"
    },
    {
        "id": 15,
        "firstName": "Lina",
        "lastName": "Morris",
        "loginName": "Lina.Morris@example.com"
    },
    {
        "id": 16,
        "firstName": "Tim",
        "lastName": "Jones",
        "loginName": "Tim.Jones@example.com"
    }
]
code
Applies to
Status Message
200All resourcesShare settings for given specimen list have been applied successfully.
400All requestsInvalid parameters, e.g  Invalid User-ids, Invalid Specimen-ids.
401All requestsAuthorization failed, User doesn’t have Authority.
500All requestsInternal server error, Encountered server error while performing operations.
  • No labels