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
createEntity(coreApi, entityType, body, locationId = NULL,
  projectIds = NULL, barcode = NULL, 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

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 ngsAnalytics, ngsanalytics.com

Examples

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

## End(Not run)

ceparman/Core5.3 documentation built on May 7, 2019, 8:16 a.m.