Back to Aligni.com
Also see show action for detailed XML inventory location response example.

Create a new inventory location. Each inventory location must have at least one sublocation.

Required permission: Can manage data.

Examples

# request
curl -X POST -H 'Accept: application/xml' -H 'Content-Type: application/xml' -d "
<inventory_location>
  <name>Aligni</name>
  <shortname>ALGN</shortname>
  <timezone>Pacific Time (US & Canada)</timezone>
  <description>Aligni storage</description>
  <inventory_sublocations type='array'>
    <inventory_sublocation>
      <name>Pearl District</name>
      <has_bins>true</has_bins>
    </inventory_sublocation>
    <inventory_sublocation>
      <name>Central Eastside</name>
      <has_bins>false</has_bins>
    </inventory_sublocation>
  </inventory_sublocations>
</inventory_location>" \
https://demo.aligni.com/api/v2/oid3vLgynoy_Yl1gZkrgkLEq3J/inventory_location

# response (for detailed inventory location XML see show action)
<inventory_location>
  ...
</inventory_location>

Params

Param name Description
api_token
required

Your API token.


Value: Must be a String