Teamleader icon

Teamleader

Consume Teamleader API

Actions60

Overview

The "Complete Task" operation in the Teamleader node allows users to mark a specific task as completed within the Teamleader system. This is useful for automating task management workflows, such as updating task statuses after certain triggers or conditions are met in your automation. For example, when a project milestone is reached, you can automatically complete related tasks without manual intervention.

Properties

Name Meaning
ID The unique identifier of the task to be marked as complete. This is required to specify which task should be completed.

Output

The output of this operation is a JSON object representing the updated task data returned from the Teamleader API after marking it as complete. The structure typically includes details about the task such as its ID, status, title, description, and other metadata as provided by the API response.

No binary data output is involved in this operation.

Dependencies

  • Requires an OAuth2 API credential configured for Teamleader with appropriate permissions to update tasks.
  • The node makes HTTP POST requests to the Teamleader API endpoint https://api.focus.teamleader.eu using the /tasks.complete operation path.
  • Proper API authentication token must be available in the node credentials.

Troubleshooting

  • Common issues:

    • Providing an invalid or non-existent task ID will result in an error from the API indicating the task could not be found.
    • Missing or expired API authentication tokens will cause authorization errors.
    • Network connectivity issues may prevent successful API calls.
  • Error messages:

    • "No data got returned": Indicates that the API call succeeded but no task data was returned. Verify the task ID and API endpoint.
    • Authorization errors: Check that the OAuth2 credentials are valid and have the necessary scopes.
    • If the node is set to continue on fail, errors will be included in the output JSON with an error field describing the issue.

Links and References

Discussion