Versions Compared

Key

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

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.
Request PayloadIs a list of user-identifiers.

 

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"
    }
]

Error Cases

code
Applies to
Status Message
200All resourcesShare settings for given specimen list have been applied successfully.
400All requestsInvalid parameters, e.g  duplicate Specimen-list label, Invalid User-ids, Invalid Specimen-idsspecimenListid.
401All requestsAuthorization failed, User doesn’t have Authority.
500All requestsInternal server error, Encountered server error while performing operations.