addInventoryWarehouseRack
The method allows you to add or update a warehouse rack. Providing a rack_id updates the existing rack; omitting it creates a new one.
Input parameters
| rack_id | int | (optional) Rack identifier for update. Leave blank or pass 0 to create a new rack. If provided, the rack with this ID will be updated. |
| name | varchar(100) | Rack name. Maximum 100 characters, cannot be empty. |
| zone_id | int | (optional) Identifier of the zone this rack belongs to. Must be an existing zone for the user. Pass 0 or omit to leave unassigned. Default: 0. |
| layout | int | Picking side layout. Accepted values: 0 (top), 1 (right), 2 (bottom), 3 (left). |
| location_prefix | varchar(10) | (optional) Prefix applied to location names within this rack. Maximum 10 characters. Default: empty string. |
Output data
The method returns the data in JSON format.
| status | varchar(30) | SUCCESS - request executed correctly ERROR - an error occurred during an API request. Error details will be described in 2 additional returned fields: error_message and error_code |
| rack_id | int | ID of the created or updated rack. |
Sample
Input data:Output data:
A sample request in PHP: