Create Terminal
Create a new terminal in Last Mile Intelligence.
Operation
Section titled “Operation”createTerminal
Resource
Section titled “Resource”terminal
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Terminal Data | JSON | Yes | - | Terminal object with required fields |
Terminal Data Fields
Section titled “Terminal Data Fields”| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | Terminal name |
| code | string | Yes | Short code identifier |
| address | object | Yes | Terminal address |
| timezone | string | No | Timezone identifier |
Response
Section titled “Response”Success
Section titled “Success”{ "id": "term_new123", "name": "Indianapolis Terminal", "code": "IND", "address": { "street": "500 Terminal Blvd", "city": "Indianapolis", "state": "IN", "zip": "46201" }, "createdAt": "2024-06-21T09:00:00Z"}{ "success": false, "error": "Validation failed", "details": { "code": "Code already exists" }}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Duplicate Code: Terminal code already exists
- Geocoding Failed: Could not geocode the address
- Validation Error: Required fields missing or invalid
- Permission Denied: API token lacks permission for this operation