Add an Empty Container to the System
Code example
Step 1. Define the New Container
// Determine the containers list URI
String containersListURI = "http://${hostname}/api/v2/containers"
def builder = new StreamingMarkupBuilder()
builder.encoding = "UTF-8"
// Create a new container using the Markup Builder
def containerDoc = builder.bind {
mkp.xmlDeclaration()
mkp.declareNamespace(con: 'http://genologics.com/ri/container')
mkp.declareNamespace(udf: 'http://genologics.com/ri/userdefined')
'con:container'{
'name'(containerName)
'type'(uri:"http://${hostname}/api/v2/containertypes/1", name:"96 well plate")
}
}Step 2. Post the New Container
Expected Output and Results
Attachments
Last updated
Was this helpful?
