/api/v1/labels/batches (POST)
POST
/api/v1/labels/batches
const url = 'https://example.com/api/v1/labels/batches';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","locationId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","kind":"things","thingIds":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"],"placeIds":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"],"unprinted":{"placeId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"},"blankCount":1,"stock":"example","startCell":1,"dryRun":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/labels/batches \ --header 'Content-Type: application/json' \ --data '{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "locationId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "kind": "things", "thingIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "placeIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "unprinted": { "placeId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }, "blankCount": 1, "stock": "example", "startCell": 1, "dryRun": true }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
id
string format: uuid
locationId
required
string format: uuid
kind
required
string
thingIds
Array<string>
placeIds
Array<string>
unprinted
object
placeId
string format: uuid
blankCount
integer
stock
required
string
startCell
integer
dryRun
boolean
Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
labels
required
Array<object>
object
code
required
string
url
required
string
kind
required
string
name
string
path
string
targetId
string format: uuid
blank
required
number
excluded
required
object
pending
required
number
other
required
number
Example
{ "labels": [ { "kind": "thing" } ]}Default Response
Media typeapplication/json
object
batch
required
object
id
required
string format: uuid
locationId
required
string format: uuid
kind
required
string
stock
required
string
startCell
required
number
createdAt
required
string
printedConfirmedAt
required
string | null
labels
required
Array<object>
object
code
required
string
url
required
string
kind
required
string
name
string
path
string
targetId
string format: uuid
excluded
required
object
pending
required
number
other
required
number
Example
{ "batch": { "kind": "things", "labels": [ { "kind": "thing" } ] }}