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
createSampleLot(coreApi, sampleType, sampleBarcode, body = NULL,
  useVerbose = FALSE)

Arguments

coreApi

coreApi object with valid jsessionid

sampleType

sample type to create the lot of

sampleBarcode

parent sample barcode

body

attributes as list of key-values pairs (optional)

useVerbose

Use verbose communication for debugging

Details

createSampleLot Creates a sample lot of a sample. Assumes the sample lot entity is in the form samplename_lot

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("PATH TO JSON FILE")
login<- CoreAPIV2::authBasic(api)
lot<-CoreAPIV2::createSampleLot(login$coreApi,"Sample_Name")
logOut(login$coreApi )

## End(Not run)

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