{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://raw.githubusercontent.com/api-evangelist/labguru/main/json-schema/createFixedSamplePoolingEvent.json", "title": "Create fixed sample pooling event", "type": "object", "description": "draw a fixed amount from all stocks.", "required": [ "token" ], "properties": { "token": { "type": "string", "example": "YOUR TOKEN IS HERE" }, "item": { "type": "object", "required": [ "name", "pool_type", "unit", "unit_type", "fixed_amount", "stocks_list", "pooled_stock_info" ], "properties": { "name": { "type": "string", "description": "The description of pool purpose" }, "unit_type": { "type": "string", "description": "volume/weight" }, "pool_type": { "type": "string", "example": "fixed" }, "unit": { "type": "string", "description": "Valid units of measurement are:\n\n- For 'volume': 'nL', '\u00b5L', 'mL', 'L'\n- For 'weight': 'ng', '\u00b5g', 'mg', 'g', 'Kg'", "example": "\u00b5L" }, "fixed_amount": { "type": "integer", "description": "Specifies the exact amount to draw" }, "stocks_list": { "type": "array", "description": "List of stock IDs from which to draw", "items": { "type": "integer" }, "example": [ 1291, 1293 ] }, "pooled_stock_info": { "type": "object", "required": [ "name", "stockable_type", "stockable_id", "storage_type", "storage_id" ], "description": "Contains all the necessary stock fields for creating a stock during the pooling event.\n This object may include all the relevant stock properties.", "properties": { "name": { "type": "string" }, "stockable_type": { "type": "string", "description": "Identifies the class name of the stock item, such as 'Biocollections::Bacterium'.\n This indicates the category of the entity and must match valid system-defined class names.", "example": "Biocollections::Bacterium" }, "stockable_id": { "type": "integer" }, "storage_type": { "type": "string", "description": "Specifies the storage classification, such as 'System::Storage::Storage',\n indicating the type of storage facility used for the item.", "example": "System::Storage::Storage" }, "storage_id": { "type": "integer" } } } } } } }