labbench locations | All commands

labbench locations create-batch

Add several locations at once (managers only)

Add several locations at once (managers only). Adds every location or none, in one transaction (up to 100). The input is a JSON array of {"name": ..., "description": ..., "kind": ..., "kind_label": ..., "temperature_c": ..., "properties": {...}} objects, from --file (a path, or - for stdin) or inline as --data. A refused batch names the 0-based row that caused it. Needs a signed-in session: an API token is refused.

Usage

labbench locations create-batch [flags]

Example

labbench locations create-batch

Flags

FlagTypeDefaultDescription
--datastringJSON array of rows, inline
--filestringJSON file of rows, or - for stdin

Every command also accepts the global flags.