Create Tank
Create a new tank in Last Mile Intelligence.
Operation
Section titled “Operation”createTank
Resource
Section titled “Resource”tank
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Tank Data | JSON | Yes | - | Tank object with required fields |
Tank Data Fields
Section titled “Tank Data Fields”| Field | Type | Required | Description |
|---|---|---|---|
| shipToId | string | Yes | Associated ship-to ID |
| name | string | Yes | Tank name |
| productId | string | Yes | Product stored in tank |
| capacity | number | Yes | Tank capacity |
| unit | string | No | Unit of measure (gallon, liter) |
| reorderPoint | number | No | Level to trigger reorder |
Response
Section titled “Response”Success
Section titled “Success”{ "id": "tank_new123", "shipToId": "ship_xyz789", "name": "New Tank", "productId": "prod_fuel001", "capacity": 8000, "currentLevel": 0, "createdAt": "2024-06-21T09:00:00Z"}{ "success": false, "error": "Validation failed", "details": { "shipToId": "Ship-to not found" }}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Ship-To Not Found: Ship-to ID does not exist
- Product Not Found: Product ID does not exist
- Validation Error: Required fields missing or invalid
- Permission Denied: API token lacks permission for this operation