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

createEntity(coreApi, entityType, attributeValues = NULL,
  locationId = NULL, projectIds = NULL, barcode = NULL,
  associations = NULL, useVerbose = FALSE)

Arguments

coreApi

coreApi object with valid jsessionid

entityType

entity type to get as character string

attributeValues

attributes 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

associations

association as a list of dataframes (see vignette for details)

useVerbose

Use verbose communication for debugging

Value

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

Details

createEntity Creates a new instance of an entity.

Examples

# NOT RUN {
api<-CoreAPI("PATH TO JSON FILE")
login<- CoreAPI::authBasic(api)
item<-CoreAPI::createEntity(login$coreApi,"Entity_Type")
logOut(login$coreApi )
# }