Update Expiration Type
Update an existing expiration type in Last Mile Intelligence.
Operation
Section titled “Operation”updateExpirationType
Resource
Section titled “Resource”expirationType
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Expiration Type ID | string | Yes | - | The ID of the type to update |
| Expiration Type Data | JSON | Yes | - | Fields to update |
Response
Section titled “Response”Success
Section titled “Success”{ "id": "exptype_cdl", "name": "CDL License Updated", "description": "Updated description", "defaultReminderDays": 45, "updatedAt": "2024-06-21T10:30:00Z"}{ "success": false, "error": "Expiration type not found", "expirationTypeId": "invalid_id"}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Expiration Type Not Found: Type with specified ID does not exist
- Validation Error: Invalid data format in update fields
- Permission Denied: API token lacks permission for this operation