> ## 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.

# Update task due date

> Set or clear a task's due date.



## OpenAPI

````yaml /openapi.json put /task/due-date/{id}
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/due-date/{id}:
    put:
      tags:
        - Tasks
      summary: Update task due date
      description: Set or clear a task's due date.
      operationId: updateTaskDueDate
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                dueDate:
                  type: string
      responses:
        '200':
          description: The updated task
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Task'
        '400':
          description: Invalid date, or unknown task
          content:
            text/plain:
              schema:
                type: string
        '401':
          description: Missing or invalid credentials
        '403':
          description: No workspace access, or missing task:update permission
          content:
            text/plain:
              schema:
                type: string
components:
  schemas:
    Task:
      type: object
      properties:
        id:
          type: string
        projectId:
          type: string
        position:
          type:
            - number
            - 'null'
          description: Order within its column, ascending.
        number:
          type:
            - number
            - 'null'
          description: Per-project counter shown as {projectSlug}-{number}.
        userId:
          type:
            - string
            - 'null'
          description: The assignee, if any.
        title:
          type: string
        description:
          type:
            - string
            - 'null'
        status:
          type: string
          description: The slug of the column the task sits in.
        priority:
          type: string
          description: 'One of: no-priority, low, medium, high, urgent.'
        startDate:
          type:
            - string
            - 'null'
          format: date-time
        dueDate:
          type:
            - string
            - 'null'
          format: date-time
        createdAt:
          type: string
          format: date-time
      required:
        - id
        - projectId
        - position
        - number
        - userId
        - title
        - description
        - status
        - priority
        - startDate
        - dueDate
        - createdAt
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key or session token (Bearer)

````