Skip to main content
POST
/
location
/
create
Location - Create
curl --request POST \
  --url https://api.skulabs.com/location/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "warehouse_id": "507f1f77bcf86cd799439011",
  "name": "Shelf A-1"
}
'
{
  "_id": "507f1f77bcf86cd799439011",
  "success": true,
  "warehouse_id": "507f1f77bcf86cd799439011",
  "name": "<string>",
  "note": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
warehouse_id
string
required

Warehouse ID to create the location in

Example:

"507f1f77bcf86cd799439011"

name
string
required

Location name

Example:

"Shelf A-1"

Response

Location created successfully

_id
string
required

Location ID

Example:

"507f1f77bcf86cd799439011"

success
boolean
required

Whether the operation succeeded

warehouse_id
string
required

Parent warehouse ID

Example:

"507f1f77bcf86cd799439011"

name
string
required

Location name

note
string

Additional note, e.g. if location already existed