> ## Documentation Index
> Fetch the complete documentation index at: https://docs.enginy.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Complete tasks batch

> Complete multiple tasks at once

<Card title="Your Implementation Required" icon="triangle-exclamation" color="#f59e0b">
  This endpoint must be implemented on **your server**
</Card>

Enginy calls this endpoint to mark multiple tasks as completed in a single request.

## Request

<ParamField body="ids" type="array" required>
  Array of task CRM IDs to complete
</ParamField>

<ParamField body="completed" type="boolean" required>
  Set to `true` to mark tasks as completed
</ParamField>

<RequestExample>
  ```json theme={null}
  {
    "ids": ["task-abc123", "task-def456"],
    "completed": true
  }
  ```
</RequestExample>

## Response

Return an array of updated task objects.

<ResponseExample>
  ```json theme={null}
  [
    {
      "id": "task-abc123",
      "subject": "Follow up call",
      "completed": true,
      "completedAt": "2024-12-20T14:30:00Z"
    },
    {
      "id": "task-def456",
      "subject": "Send proposal",
      "completed": true,
      "completedAt": "2024-12-20T14:30:00Z"
    }
  ]
  ```
</ResponseExample>

<Tip>Auto-set `completedAt` timestamp for each task when marking as completed.</Tip>
