updateEntityAttributes: 'updateEntityAttributes' Update entity assoications.

Description Usage Arguments Value Author(s) Examples

Description

updateEntityAttributes Update entity attributes.

Usage

1
2
updateEntityAttributes(coreApi, entityType, barcode, updateValues,
  useVerbose = FALSE)

Arguments

coreApi

coreApi object with valid jsessionid

entityType

entity type to get

barcode

barcode of entity to get

updateValues

vaules to update as list of value pairs

useVerbose

TRUE or FALSE to indicate if verbose options should be used in http

Value

returns a list $entity contains entity information, $response contains the entire http response

Author(s)

Craig Parman info@ngsanalytics.com

Adam Wheeler adam.wheeler@thermofisher.com

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
api <- coreAPI("PATH TO JSON FILE")
login <- authBasic(api)
updateValues <- list(SOURCE_LAB = "My Lab", REQUESTOR = "you")
response <- updateEntityAttributes(login$coreApi, "entityType", "barcode", updateValues)
updatedEntity <- response$entity
logOut(login$coreApi)

## End(Not run)

ajwtech/pfsrsdk documentation built on June 14, 2019, 10:34 a.m.