Skip to main content
POST
/
location
/
add_item
Location - Add Item
curl --request POST \
  --url https://api.skulabs.com/location/add_item \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "507f1f77bcf86cd799439011",
  "item_id": "507f1f77bcf86cd799439011",
  "on_hand": 10,
  "alert": 5
}
'
{
  "success": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
id
string
required

Location ID

Example:

"507f1f77bcf86cd799439011"

item_id
string
required

SKULabs item ID to add

Example:

"507f1f77bcf86cd799439011"

on_hand
number
required

Initial on-hand quantity

Example:

10

alert
number

Low-stock alert level

Example:

5

Response

Item added to location successfully

success
boolean
required

Whether the operation succeeded