updateEntityAssociations: 'updateEntityAssociations' Update entity assoications

Description Usage Arguments Value Author(s) Examples

View source: R/updateEntityAssociations.R

Description

updateEntityAssociations Update entity associations.

Usage

1
updateEntityAssociations(coreApi, entityType, barcode, updateValues, ...)

Arguments

coreApi

coreApi object with valid jsessionid

entityType

entity type to get

barcode

barcode of entity to get

updateValues

values to update as list of associations contex and entity type pair and barcode

...

additional arguments passed to apiPUT

Value

List of length 2, containing entity and response objects:

Author(s)

Craig Parman info@ngsanalytics.com

Adam Wheeler adam.wheeler@thermofisher.com

Scott Russell scott.russell@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(SAMPLE_ENZYME = c("ENZYME", "ENZ2"))
response <- updateEntityAssociations(login$coreApi, "entityType", "barcode", updateValues)
udatedEntity <- response$entity
logOut(login$coreApi)

## End(Not run)

AmundsenJunior/pfsrsdk documentation built on July 18, 2019, 8:10 p.m.