Skip to main content
PATCH
/
api
/
v1
/
tasks
/
{taskId}
Update a task
curl --request PATCH \
  --url https://znift.com/api/v1/tasks/{taskId} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "text": "<string>",
  "dueTime": 123,
  "priority": "high",
  "timeSpent": 123,
  "details": "<string>"
}
'
{
  "success": true
}

Authorizations

x-api-key
string
header
required

API key with znift_ prefix. Create one in Profile > API Keys.

Path Parameters

taskId
string
required

Task ID

Body

application/json
text
string
Minimum string length: 1
dueTime
number | null
priority
enum<string> | null
Available options:
high,
medium,
low
timeSpent
number | null
details
string | null

Response

Task updated

success
boolean