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

# Move a task to a different date

> Moves a task to a new date. The original date is tracked in previousDates. The task is appended to the end of the target date's list.



## OpenAPI

````yaml https://znift.com/api/v1/openapi.json post /api/v1/tasks/{taskId}/move
openapi: 3.1.0
info:
  title: Znift Tasks API
  version: 1.0.0
  description: >-
    Public REST API for managing Znift tasks. Designed for AI agents, CLI tools,
    and automation. Authenticate with an API key via the x-api-key header.
servers:
  - url: https://znift.com
    description: Znift Production API
security:
  - apiKey: []
paths:
  /api/v1/tasks/{taskId}/move:
    post:
      summary: Move a task to a different date
      description: >-
        Moves a task to a new date. The original date is tracked in
        previousDates. The task is appended to the end of the target date's
        list.
      operationId: moveTask
      parameters:
        - name: taskId
          in: path
          required: true
          schema:
            type: string
          description: Task ID
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - newDate
              properties:
                newDate:
                  type: string
                  format: date
                  description: Target date (YYYY-MM-DD)
      responses:
        '200':
          description: Move a task to a different date successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Success'
        '400':
          description: Invalid date format
        '401':
          description: Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Task not found
components:
  schemas:
    Success:
      type: object
      properties:
        success:
          type: boolean
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
          required:
            - code
            - message
      required:
        - error
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: API key with znift_ prefix. Create one in Profile > API Keys.

````