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

Description Usage Arguments Details Value Author(s) Examples

Description

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

Usage

1
2
3
createEntity(coreApi, entityType, body, locationId = NULL,
  projectIds = NULL, barcode = NULL, fullMetadata = FALSE,
  useVerbose = 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

useVerbose

Use verbose communication for debugging

Details

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

Value

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

Author(s)

Craig Parman info@ngsanalytics.com

Natasha Mora natasha.mora@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)

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