Back to Aligni.com

GET /api/v2/:api_token/inventory_sublocation/:id
Show a inventory sublocation.

Retrieve one particular inventory sublocation by its id.

Required permission: Can view inventory.

Examples

# request
curl -H 'Accept: application/xml' -H 'Content-Type: application/xml' \
https://demo.aligni.com/api/v2/oid3vLgynoy_Yl1gZkrgkLEq3J/inventory_sublocation/5

# response
<?xml version="1.0" encoding="UTF-8"?>
<inventory_sublocation>
  <id>5</id>
  <inventory_location_id>1</inventory_location_id>
  <name>Bin 10</name>
  <created_on>2006-07-24 23:57:42 -0700</created_on>
  <updated_on>2006-07-24 23:57:42 -0700</updated_on>
</inventory_sublocation>

Params

Param name Description
api_token
required

Your API token.


Value: Must be a String
id
required

Value: Must be a number.

POST /api/v2/:api_token/inventory_sublocation
Create a new inventory sublocation.

Also see show action for detailed XML inventory sublocation response example.

Create a new inventory sublocation.

Required permission: Can manage data.

Examples

# request
curl -X POST -H 'Accept: application/xml' -H 'Content-Type: application/xml' -d "
<inventory_sublocation>
  <name>Bin 51</name>
  <inventory_location_id>1</inventory_location_id>
</inventory_sublocation>" \
https://demo.aligni.com/api/v2/oid3vLgynoy_Yl1gZkrgkLEq3J/inventory_sublocation

# response (for detailed inventory sublocation XML see show action)
<inventory_sublocation>
  ...
</inventory_sublocation>

Params

Param name Description
api_token
required

Your API token.


Value: Must be a String

PUT /api/v2/:api_token/inventory_sublocation/:id
Update a inventory sublocation.

Also see show action for detailed XML inventory sublocation response example.

Updates a inventory sublocation record.

Required permission: Can manage data.

Examples

# request
curl -X PUT -H 'Accept: application/xml' -H 'Content-Type: application/xml' -d "
<inventory_sublocation>
  <name>Bin 51b</name>
</inventory_sublocation>" \
https://demo.aligni.com/api/v2/oid3vLgynoy_Yl1gZkrgkLEq3J/inventory_sublocation/16

# response (for detailed inventory sublocation XML see show action)
<inventory_sublocation>
  ...
</inventory_sublocation>

Params

Param name Description
api_token
required

Your API token.


Value: Must be a String
id
required

Value: Must be a number.

DELETE /api/v2/:api_token/inventory_sublocation/:id
Delete a inventory sublocation.

Delete a inventory sublocation by its id.

Required permission: Can manage data.

Examples

# request
curl -X DELETE -H 'Accept: application/xml' -H 'Content-Type: application/xml' \
https://demo.aligni.com/api/v2/oid3vLgynoy_Yl1gZkrgkLEq3J/inventory_sublocation/16

# no response

Params

Param name Description
api_token
required

Your API token.


Value: Must be a String
id
required

Value: Must be a number.