Update a task

patch
Update a task

https://data.salesmachine.io/v2/tasks/:id
This endpoint allows you to get free cakes.
Request
Response
Request
Path Parameters
id
required
string
ID of the task.
Body Parameters
status
optional
string
set as 'close' or 'open'
completed_at
optional
number
Timestamp at which the task is completed
due_at
optional
number
Timestamp at which the task is due
user_id
optional
string
User ID to whom the task is assigned
Response
200: OK
Task successfully updated.
{
"object": "task",
"id": "6120e071155b81197607c55b",
"created_at": 1629544561,
"type": "todo",
"status": "close",
"subject": "remember the milk",
"body": "don't forget",
"due_at": 1632136561,
"completed_at": 1629544561,
"account": {
"object": "account",
"id": "6120e071155b81197607c557"
},
"assignee": {
"object": "user",
"id": "6120e070155b81197607c507"
}
}
404: Not Found
Could not find a task matching this query.
{
"error": "404 Object not found"
}

‚Äč