[POST] .../v1/projecttask/setdue
Changes task due date Use this method to set, change or clear the due date of an existing task. The method updates due_date for the task, keeps other task fields unchanged, emits task update side effects from the persistent layer and returns UpdateResult. The request body must contain a valid task id, the caller needs task due-date permission and missing body, invalid id, denied access, missing task, database failures or persistent errors are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| due_date | Int64 | Optional | New due date as Unix time in seconds. Pass 0 or null to clear it. |
| id | Int64 | Required | Task ID. |
Request Example
{
"id": 101,
"due_date": 1772527200
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | Update | Update operation result. |
Response Example
{
"ok": true,
"result": {
"row_affected": 1
}
}