updateEntity
Updates an instance of a entity.
updateEntity(coreApi, entityType, barcode, attributeValues = NULL, locationId = NULL, projectIds = NULL, associations = NULL, useVerbose = FALSE)
coreApi | coreApi object with valid jsessionid |
---|---|
entityType | entity type to get as character string |
barcode | User provided barcode as a 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 |
associations | association as a list of dataframes (see details) |
useVerbose | Use verbose communication for debugging |
RETURN returns a list $entity contains entity information, $response contains the entire http response
updateEntity
Updates an instance of a entity.
# NOT RUN { api<-CoreAPI("PATH TO JSON FILE") login<- CoreAPI::authBasic(api) newitem<-CoreAPI::updateEntity(login$coreApi,entityType,barcode) logOut(login$coreApi ) response<- CoreAPI::authBasic(coreApi) # }