Overview
This node integrates with the Motion API to manage tasks within workspaces. Specifically, for the Task - Delete operation, it deletes a task identified by its Task ID from the Motion platform.
Common scenarios where this node is useful include:
- Automating cleanup of completed or obsolete tasks.
- Integrating task deletion into workflows that synchronize task status across multiple systems.
- Removing tasks programmatically based on external triggers or conditions.
For example, you could use this node in an automation that deletes tasks marked as "Done" after a certain period, helping keep your workspace organized without manual intervention.
Properties
| Name | Meaning |
|---|---|
| Task ID | The unique identifier of the task to delete. This is required to specify which task should be removed. |
Output
The output JSON contains the response from the Motion API after attempting to delete the specified task. Typically, this will confirm whether the deletion was successful or provide error details if it failed.
No binary data is output by this node.
Dependencies
- Requires an active connection to the Motion API via an API key credential.
- The node expects the API key to be configured in n8n credentials for authentication.
- Network access to
https://api.usemotion.com/v1is necessary.
Troubleshooting
Common issues:
- Providing an invalid or non-existent Task ID will result in an error from the API.
- Missing or incorrect API key credentials will cause authentication failures.
- Network connectivity problems can prevent the node from reaching the Motion API.
Error messages and resolutions:
"Task not found": Verify the Task ID is correct and the task exists."Unauthorized"or similar authentication errors: Check that the API key credential is correctly set up and valid."Please specify at least one field to update"(not relevant for delete but seen in update operation): Ensure required fields are provided when updating tasks.
Links and References
- Motion API Documentation (for detailed API endpoints and parameters)
- n8n HTTP Request Node Documentation (for understanding how HTTP requests are made within n8n nodes)