createSampleLot: createSampleLot - Creates a lot of a sample.

Description Usage Arguments Details Value Author(s) Examples

Description

createSampleLot Creates a new sample lot using the parent sample barcode

Usage

1
2
3
createSampleLot(coreApi, entityType, sampleBarcode,
  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

sampleBarcode

parent sample barcode

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 details)

useVerbose

Use verbose communication for debugging

Details

createSampleLot Creates a lot of a sample.

Value

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

Author(s)

Craig Parman

Examples

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

## End(Not run)

ceparman/CoreAPI documentation built on May 13, 2019, 2:59 p.m.