Dismiss Lexi Task
Lexi AI
Dismiss Lexi Task
Dismiss a pending task (cancel without executing)
POST
Dismiss Lexi Task
Request
Path Parameters
Task UUID
Headers
Body Parameters
Optional reason for dismissing the task (used for analytics)
Response
Example Response
When to Dismiss Tasks
Use dismiss when:- The task is no longer relevant
- You want to do it manually instead
- The task parameters are incorrect
- You’re testing and want to clean up pending tasks
Dismissed tasks cannot be re-approved. If you change your mind, ask Lexi to create a new task.
Dismiss Reasons (Analytics)
Common reasons tracked for analytics:| Reason | Use Case |
|---|---|
not_relevant | Task no longer needed |
manual_execution | Will do it manually |
incorrect_params | Wrong search criteria |
duplicate | Task already exists |
testing | Test/development task |
Example: Review and Dismiss Pattern
Bulk Dismiss
Dismiss multiple tasks at once:Errors
| Status | Code | Description |
|---|---|---|
| 400 | validation_error | Task is not in pending status |
| 401 | invalid_key | Invalid API key |
| 403 | insufficient_permissions | Missing lexi permission |
| 404 | not_found | Task not found |
| 429 | rate_limited | Rate limit exceeded |