Create Task
Create a new task in Last Mile Intelligence.
Operation
Section titled “Operation”createTask
Resource
Section titled “Resource”task
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Task Data | JSON | Yes | - | Task object with required fields |
Task Data Fields
Section titled “Task Data Fields”| Field | Type | Required | Description |
|---|---|---|---|
| title | string | Yes | Task title |
| description | string | No | Task description |
| priority | string | No | Priority (low, medium, high, urgent) |
| assignedTo | string | No | Assigned resource ID |
| dueDate | string | No | Due date (YYYY-MM-DD) |
| entityType | string | No | Related entity type |
| entityId | string | No | Related entity ID |
Response
Section titled “Response”Success
Section titled “Success”{ "id": "task_new123", "title": "New Task", "status": "pending", "priority": "medium", "createdAt": "2024-06-21T09:00:00Z"}{ "success": false, "error": "Validation failed", "details": { "title": "Title is required" }}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Assignee Not Found: Assigned resource does not exist
- Validation Error: Required fields missing or invalid
- Permission Denied: API token lacks permission for this operation