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

# importTasks

> Import multiple tasks into a project



## OpenAPI

````yaml POST /task/import/{projectId}
openapi: 3.1.0
info:
  title: Kaneo API
  version: 1.0.0
  description: Kaneo Project Management API - Manage projects, tasks, labels, and more
servers:
  - url: https://cloud.kaneo.app/api
    description: Kaneo API Server
security:
  - bearerAuth: []
paths:
  /task/import/{projectId}:
    post:
      tags:
        - Tasks
      summary: Import tasks
      description: >-
        Import tasks into a project. Each task is reported individually, so a
        partial import still returns 200.
      operationId: importTasks
      parameters:
        - schema:
            type: string
          required: true
          name: projectId
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                tasks:
                  type: array
                  items:
                    type: object
                    properties:
                      title:
                        type: string
                      description:
                        type: string
                      status:
                        type: string
                      priority:
                        type: string
                      startDate:
                        type:
                          - string
                          - 'null'
                      dueDate:
                        type:
                          - string
                          - 'null'
                      userId:
                        type:
                          - string
                          - 'null'
                    required:
                      - title
                      - status
              required:
                - tasks
      responses:
        '200':
          description: Per-task import outcome
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskImportResult'
        '400':
          description: Invalid body, or unknown project
          content:
            text/plain:
              schema:
                type: string
        '401':
          description: Missing or invalid credentials
        '403':
          description: No workspace access, or missing task:create permission
          content:
            text/plain:
              schema:
                type: string
components:
  schemas:
    TaskImportResult:
      type: object
      properties:
        results:
          $ref: '#/components/schemas/TaskImportSummary'
      required:
        - results
    TaskImportSummary:
      type: object
      properties:
        total:
          type: number
        successful:
          type: number
        failed:
          type: number
        tasks:
          type: array
          items: {}
          description: Per-task outcome, each carrying a success flag.
      required:
        - total
        - successful
        - failed
        - tasks
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key or session token (Bearer)

````