API:Inventory Sublocations
From Aligni Wiki
Contents |
[edit]
Show
Command: GET /inventory_sublocation/#{inventory_sublocation_id}
Description: Retrieve one particular inventory sublocation by its id.
Request/Response:
<inventory_sublocation> ... </inventory_sublocation>
[edit]
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>
[edit]
Update
Command: PUT /inventory_sublocation/#{inventory_sublocation_id}
Description: Updates an inventory sublocation record.
Request/Response:
<inventory_sublocation> ... </inventory_sublocation>
<inventory_sublocation> ... </inventory_sublocation>
[edit]
Delete
Command: DELETE /inventory_sublocation/#{inventory_sublocation_id}
Description: Delete an inventory sublocation by its id.
Request/Response: None
[edit]
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>
