createEntity: createEntity - Create a new instance of a entity. Used for...

Description Usage Arguments Details Value Author(s) Examples

View source: R/createEntity.R

Description

createEntity Creates a new entity instance. Required inputs are url, jsessionId and entityType.

Usage

1
2
createEntity(coreApi, entityType, body, locationId = NULL,
  projectIds = NULL, barcode = NULL, fullMetadata = FALSE, ...)

Arguments

coreApi

coreApi object with valid jsessionid

entityType

entity type to get as character string

body

values for attributes and associations as a list of key-values pairs

locationId

location ID for initial location as character string

projectIds

project comma separated list of project IDs as character string

barcode

User provided barcode as a character string

fullMetadata

get full metadata, default is FALSE

...

additional arguments passed to apiPOST

Details

createEntity Create a new instance of a entity. Used for standard object or "Plan Old Core Objects" (POCOs)

Value

List of length 2, containing entity and response objects:

Author(s)

Craig Parman info@ngsanalytics.com

Natasha Mora natasha.mora@thermofisher.com

Scott Russell scott.russell@thermofisher.com

Examples

1
2
3
4
5
6
7
## Not run: 
api <- coreAPI("PATH TO JSON FILE")
login <- authBasic(api)
item <- createEntity(login$coreApi, "Entity_Type")
logOut(login$coreApi)

## End(Not run)

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