---
title: "Create or update a task's date"
method: POST
path: "/setTaskDate"
tags: ["Task"]
---

# Create or update a task's date

`POST /setTaskDate`

## Request

- Base URL: `https://www.taskade.com/api/v2`
- URL: `https://www.taskade.com/api/v2/setTaskDate`
- Auth: OAuth 2 and HTTP bearer
  - Authorization code: `https://www.taskade.com/oauth2/authorize`
  - Token URL: `https://www.taskade.com/oauth2/token`

An omitted timezone defaults to the calling user's timezone.

## Request body

- object
  - `projectId` string, required: The project the task lives in
  - `taskId` string, required: The task ID (from `listTasks`)
  - `start` Date, required
    - `date` string, required: ISO date format (YYYY-MM-DD), e.g. "2021-12-31"
    - `time` string, nullable: Optional time component in 24-hour format (HH:MM:SS), e.g. "15:30:45". Can be null or omitted for date-only representations
    - `timezone` string, nullable: Optional timezone identifier (IANA timezone name), e.g. "America/New_York", "Asia/Singapore". Can be null or omitted for timezone-naive representations
  - `end` Date
    - `date` string, required: ISO date format (YYYY-MM-DD), e.g. "2021-12-31"
    - `time` string, nullable: Optional time component in 24-hour format (HH:MM:SS), e.g. "15:30:45". Can be null or omitted for date-only representations
    - `timezone` string, nullable: Optional timezone identifier (IANA timezone name), e.g. "America/New_York", "Asia/Singapore". Can be null or omitted for timezone-naive representations

## Response `200`

Default response

- object
  - `ok` true, required
  - `item` object, required
    - `id` string, required
    - `text` string
    - `completed` boolean

---

[API](https://skmtc.dev/taskade/apis/taskade-public-api-v2.md) - [All operations](https://skmtc.dev/taskade/apis/taskade-public-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/taskade/apis/taskade-public-api-v2/revisions/45f0e74ec083?raw)
