API:Inventory Sublocations

From Aligni Wiki

Jump to: navigation, search

Contents

Show

Command: GET /inventory_sublocation/#{inventory_sublocation_id}

Description: Retrieve one particular inventory sublocation by its id.

Request/Response:

<inventory_sublocation>
  ...
</inventory_sublocation>


Create

Command: POST /inventory_sublocation

Description: Create a new inventory sublocation.

Request/Response:

<inventory_sublocation>
  <name>#{name}</name>
  <inventory_location_id>#{inventory_location_id}</inventory_location_id>
</inventory_sublocation>
<inventory_sublocation>
  ...
</inventory_sublocation>


Update

Command: PUT /inventory_sublocation/#{inventory_sublocation_id}

Description: Updates an inventory sublocation record.

Request/Response:

<inventory_sublocation>
  ...
</inventory_sublocation>
<inventory_sublocation>
  ...
</inventory_sublocation>


Delete

Command: DELETE /inventory_sublocation/#{inventory_sublocation_id}

Description: Delete an inventory sublocation by its id.

Request/Response: None


Sample Record

<inventory_sublocation>
  <id>10</id>
  <name>Storage Room</name>
  <created_on>Tue Jul 25 06:57:45 UTC 2006</created_on>
  <updated_on>Tue Jul 25 06:57:45 UTC 2006</updated_on>
</inventory_sublocation>
Views
Personal tools